Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions docs/cli-agents/claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ icon: "star-of-life"

<Note>
All examples below use `ANTHROPIC_CUSTOM_HEADERS` to pass your Bifrost virtual key. This is the recommended approach and works across all
tested Claude Code versions. If you are on an older version that does not support custom headers, you can fall back to `ANTHROPIC_API_KEY`
instead.
tested Claude Code versions.
</Note>

## Installing Claude Code
Expand Down Expand Up @@ -86,17 +85,6 @@ You will need to update the most granular `settings.json`.
standalone file, or you will overwrite other settings like `permissions`, `model`, and `apiKeyHelper`.
</Note>

```json
"env": {
"ANTHROPIC_BASE_URL": "http://localhost:8080/anthropic",
"ANTHROPIC_API_KEY": "your-virtual-key",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "haiku-model",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "sonnet-model"
}
```

For a more reliable approach, use the `ANTHROPIC_CUSTOM_HEADERS` environment variable as shown below.

```json
"env": {
"ANTHROPIC_BASE_URL": "http://localhost:8080/anthropic",
Expand Down
Loading