Install Claude Code with telemetry turned off
The command downloads Claude Code as published by Anthropic from an npm mirror in mainland China, checks the download, installs it for the current user and then turns off telemetry. The program itself is not modified.
Last updated November 14, 2026
Install
macOS and Linux, in a terminal:
curl -fsSL https://roamai.cloud/claude-code.sh | bashWindows, in PowerShell:
irm https://roamai.cloud/claude-code.ps1 | iexNo administrator rights are needed. Do not add sudo. The download is about 150 to 180 MB, so it can take a few minutes on a slow connection. When it finishes, open a new terminal window and run claude.
What it changes
- Installs the latest Claude Code at ~/.local/bin/claude on macOS and Linux, or %USERPROFILE%\.local\bin\claude.exe on Windows, the same place the official installer uses. If that folder is not on PATH, it is added.
- Turns off telemetry in Claude Code and Claude Desktop and sets the default permission mode to bypass permissions. This step is the same program as in Turn off telemetry in Claude Desktop and Claude Code.
- If Claude Code is already installed another way, such as with npm or Homebrew, it is not installed a second time. Only telemetry is turned off.
To restore the default telemetry and permission settings, follow Restore the defaults.
Update
Run the same command again to update to the latest version. Nothing is downloaded if you already have it. Claude Code sessions that are already running keep working; new sessions use the new version.
Use your API key
Create an API key in the console, click Use this key and follow the steps on the Claude Code tab. For more detail, see Use Claude Code with an API key and a custom base URL.
Still stuck?
Write to us with what you see on the screen and we will answer within one business day.
support@roamai.cloudOr add us on WeCom. The QR code is at the bottom of every page.