Skip to content

IDE extensions

The Claude Code extensions for VS Code, Cursor, Windsurf and JetBrains IDEs work with Not Diamond Code. Set each editor up once. After that, every Claude Code session you open from the editor starts on Not Diamond.

Editor Extension Setup
VS Code, Cursor Claude Code (anthropic.claude-code) notdiamond vscode setup
Windsurf, Kiro and other VS Code forks The same extension Manual, see below
JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, GoLand, Android Studio) Claude Code [Beta] Manual, see below

Run notdiamond init first if you have not set up your credentials.

Terminal window
notdiamond vscode setup # every installed editor
notdiamond vscode setup --editor cursor # one editor only (vscode or cursor)

Only sessions the editor opens use Not Diamond. A terminal claude on the same machine is unaffected. The command warns if your Claude Code extension is older than the recommended version. Reload the editor window afterwards.

Open the Claude Code panel and start a session. The model picker shows Not Diamond selected, and each prompt is routed to a model and effort. Pick any other model with /model to send requests to it without routing. Once the conversation has a reply from another model, switching back to Not Diamond is refused. Start a new session, or /clear, to use it again.

Check notdiamond logs -f or the dashboard to confirm requests are routed. notdiamond doctor shows one row per installed editor.

Sign in to Claude Code in the extension as usual. Do not add an ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY entry to the editor’s Claude Code settings. notdiamond doctor warns about either.

Terminal window
notdiamond vscode remove # stops the editor from using Not Diamond
notdiamond hooks uninstall # removes the rest of the setup from Claude Code

Prepare Claude Code, then add two entries to the editor’s settings.json (Command Palette → Preferences: Open User Settings (JSON)) and reload the window.

Terminal window
notdiamond hooks install
{
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:8082" },
{ "name": "ANTHROPIC_MODEL", "value": "notdiamond[1m]" }
]
}

Match the port to your server.port if you changed it in Configuration. Sign in to Claude Code in the extension as usual.

Prepare Claude Code, then add the proxy address to ~/.claude/settings.json.

Terminal window
notdiamond hooks install
{
"env": {
"ANTHROPIC_BASE_URL": "http://127.0.0.1:8082"
}
}

This setting applies to every Claude Code session on the machine, terminal included. Sign in to Claude Code in the plugin as usual. Pick Not Diamond in the model picker before the first message of each session. If the plugin does not find Claude Code, point it at the binary under Settings → Tools → Claude Code [Beta] → Claude command.

Setup adds a Not Diamond entry to the Claude Code model picker on this machine. It appears in every Claude Code session, and it only works in sessions that use Not Diamond Code. If you had your own custom picker entry, setup replaces it, and undoing the setup does not bring it back.

Start with notdiamond doctor.

Requests don’t appear in notdiamond logs -f. For VS Code and Cursor, re-run notdiamond vscode setup. For the manual setups, check that the entries are in the right file: the editor’s own settings.json for VS Code forks, and ~/.claude/settings.json for JetBrains. Update the Claude Code extension, since some older releases ignored these settings. If you open the editor from the Dock or Finder, try launching it from a terminal (code .).

Every prompt in a session gets the same model. Re-run the setup command for your editor, then start a new session. Do this again after any change to server.port.

Switching to Not Diamond is refused. The conversation already has a reply from another model. Start a new session or /clear.

Every session fails to connect. Not Diamond Code is not running and could not start, usually because your login expired. Run notdiamond login, then notdiamond start.