First install Visual Studio Code, then search the Extensions Marketplace for Claude Code (publisher: Anthropic) and install it. If it's already installed, skip to step 2.
Download VS Code → Claude Code extension →Open Terminal, then paste and run the command. If you've already run the CLI setup on this computer (you have ~/.opusclaude/config), your key is reused directly; otherwise your browser opens so you can sign in and authorize.
If this computer doesn't have a setup configuration yet, your browser opens automatically. Sign in with the account you bought the plan with, then click "Authorize this device". Once authorized, the terminal finishes writing the configuration automatically.
Closing all windows isn't enough; use Quit / Exit from the menu, then reopen VS Code and open the Claude Code panel.
Install Visual Studio Code, search the Extensions Marketplace for Claude Code (Anthropic) and install it. If it's already installed, skip to step 2.
Download VS Code → Claude Code extension →Open PowerShell (usually no administrator rights needed), then paste and run:
If there's no local CLI configuration, your browser opens. Sign in with the account you bought the plan with and authorize, then go back to PowerShell and wait for the completion message.
If VS Code is also in the system tray, quit it there too. Then reopen VS Code and open the Claude Code panel to test.
Most likely the extension didn't pick up the setup configuration. After confirming you've run the setup command, fully quit VS Code and reopen it. Don't set it only in system environment variables: the official extension's sign-in check only looks at claudeCode.environmentVariables in user settings. If you use Remote-SSH / WSL / containers, see the next item.
In a remote window, the Claude Code extension runs on the remote machine and only reads that machine's "Remote Settings"; the setup command you ran on your own computer can't write there. The symptom: the command reports "written successfully", but the extension still asks you to sign in to Anthropic, or shows Anthropic's official 403 (Verification Portal).
What to do: In the VS Code remote window, open a terminal (menu "Terminal → New Terminal") and run curl -fsSL https://claude.opusapi.xyz/vscode-install.sh | bash. If authorization is needed and the browser doesn't open automatically, copy the authorization link from the terminal and open it in the browser on your own computer. When it finishes, press Ctrl+Shift+P (Mac: Cmd+Shift+P) and run Developer: Reload Window.
Manual method: First run the setup command above on your local computer. In a local window, press Ctrl/Cmd+Shift+P and run Preferences: Open User Settings (JSON), then copy the whole claudeCode.environmentVariables block; then, in the remote window, run Preferences: Open Remote Settings (JSON), paste it in and save, and finally run Developer: Reload Window.
How to tell it worked: the Claude Code panel no longer asks you to sign in to Anthropic, and the model dropdown includes Fable 5. The remote machine takes up one device slot; with Dev Containers, run it again after rebuilding the container.
Your local proxy (Clash, etc.) isn't running. Temporarily turn off the proxy and install again: unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY, or start your proxy software and then run the command again.
No. They share the same subscription's quota; on the same computer the device_id is the same, so it takes up only 1 device slot. The VS Code script is independent and doesn't change the CLI install script or the desktop setup script.
macOS/Linux: curl -fsSL https://claude.opusapi.xyz/vscode-install.sh | bash -s -- --uninstall
Windows: change the install command so it downloads the script, then add -Uninstall, or run the script locally with -Uninstall. This only removes the extension's setup configuration and doesn't touch the CLI / desktop app.
The key is written to your VS Code user settings.json (the extension's sign-in check needs it). Don't commit that file to a public repository. It's backed up automatically before writing.