Skip to content

Use OpusVIP in VS Code and JetBrains

The Claude Code integration in your IDE runs the same official CLI as your terminal. Put the configuration in settings.json and both will use it.

Last updated:

OpusVIP accepts requests only from the official Claude Code. Use the extension or plugin published by Anthropic, not a third-party client.

How it works

An IDE usually doesn't inherit variables you export in a terminal, especially when you launch it from a desktop icon. The most reliable fix is to put the variables in the env field of Claude Code's own config file, ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json), so they apply however Claude Code is launched:

~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.opusvip.dev",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-key"
  }
}

Create the key on the console token page. If the file already has other settings, merge in only the env entries rather than overwriting the file.

VS Code

  1. Install the CLI in a terminal first (npm install -g @anthropic-ai/claude-code), then install Anthropic's official Claude Code extension from the Marketplace.
  2. Add the settings.json entries shown above.
  3. Quit VS Code completely and reopen it, then open the Claude Code panel and send a message.
  4. Check the usage log in the console to confirm the request appears.

JetBrains

  1. Install the CLI first here too, then install the official Claude Code plugin from the IDE's plugin marketplace.
  2. Add the settings.json entries, then restart the IDE.
  3. You can also run claude in the IDE's built-in terminal; it behaves the same as a standalone terminal.

FAQ

  • The IDE still asks me to sign in to Anthropic: make sure settings.json is valid JSON and restart the IDE. If that doesn't help, see the hasCompletedOnboarding setting in Troubleshooting.
  • 401: the key is incomplete or has been deleted. If ANTHROPIC_API_KEY is set, unset it.
  • setx has no effect on Windows: setx only affects new processes. The simplest fix is settings.json.