Extract Claude config from Bedrock doc (#820)

This commit is contained in:
Misha Bragin
2026-06-30 11:31:46 +02:00
committed by GitHub
parent 3ba16e82b4
commit 1bfa2d1e8b
5 changed files with 50 additions and 30 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

View File

@@ -64,36 +64,11 @@ before anyone can route through it.
See [Policies](/agent-network/policies) for details.
## Use Claude Code with AWS Bedrock
## Use with Claude Code
If you run [Claude Code](/agent-network/integrations/claude-code) with its **Bedrock backend**
instead of the Anthropic API, point it at your agent network endpoint. NetBird holds the
Bedrock API key server-side and injects it, so Claude Code skips AWS authentication entirely
— the client stays keyless.
First connect an **AWS Bedrock** provider in NetBird (steps above). Then add the following to
`~/.claude/settings.json`:
```json
{
"env": {
"ANTHROPIC_MODEL": "eu.anthropic.claude-sonnet-4-5-20250929-v1:0",
"ANTHROPIC_BEDROCK_BASE_URL": "https://<your-endpoint>/bedrock",
"CLAUDE_CODE_USE_BEDROCK": "1",
"CLAUDE_CODE_SKIP_BEDROCK_AUTH": "1"
}
}
```
- `CLAUDE_CODE_USE_BEDROCK=1` routes Claude Code through the Bedrock backend.
- `CLAUDE_CODE_SKIP_BEDROCK_AUTH=1` skips AWS auth on the client — NetBird injects the
Bedrock API key server-side.
- `ANTHROPIC_BEDROCK_BASE_URL` is your agent network endpoint with the `/bedrock` suffix
(the optional gateway-namespace prefix that disambiguates Bedrock from other providers).
- `ANTHROPIC_MODEL` is the full Bedrock model ID including the region prefix (e.g.
`eu.anthropic.claude-sonnet-4-5-20250929-v1:0`). Some models may not be available in all
regions — if the model above doesn't work, switch to one in your provider's allowed list,
or change it in Claude Code with `/model <model-id>`.
To route [Claude Code](/agent-network/integrations/claude-code) through this Bedrock provider
instead of the Anthropic API, see [Use Claude on AWS Bedrock](/agent-network/integrations/claude-code#use-claude-on-aws-bedrock)
on the Claude Code integration page.
<Note>
Rotating the key is a single server-side change in NetBird: generate a new Bedrock API key,

View File

@@ -59,6 +59,14 @@ See [Policies](/agent-network/policies) for details.
## Configure with `settings.json`
Next to your agent network endpoint in the NetBird dashboard, click **Agent Config**. The
modal shows tabs for Claude Code, Codex, OpenAI SDK, and cURL — pick **Claude Code** and copy
the pre-filled configuration.
<p>
<img src="/docs-static/img/agent-network/integrations/agent-network-configure-agent-claude-code.png" alt="NetBird Configure Your Agent modal showing Claude Code settings.json configuration" className="imagewrapper" />
</p>
Add the following to `~/.claude/settings.json`. The `apiKeyHelper` returns a dummy value so
Claude Code doesn't prompt for a key — NetBird supplies the real one.
@@ -120,3 +128,34 @@ Then add the following to `~/.claude/settings.json`:
OAuth token server-side.
- `ANTHROPIC_VERTEX_BASE_URL` is your agent network endpoint with the `/v1` suffix.
- `CLOUD_ML_REGION=global` pairs with the region-less provider URL above.
## Use Claude on AWS Bedrock
If you reach Claude through **AWS Bedrock** instead of the Anthropic API, point Claude Code's
Bedrock backend at your agent network endpoint. NetBird holds the Bedrock API key
server-side and injects it, so Claude Code skips AWS authentication entirely — the client
stays keyless.
First connect an [AWS Bedrock provider](/agent-network/integrations/bedrock) in NetBird.
Then add the following to `~/.claude/settings.json`:
```json
{
"env": {
"ANTHROPIC_MODEL": "eu.anthropic.claude-sonnet-4-5-20250929-v1:0",
"ANTHROPIC_BEDROCK_BASE_URL": "https://<your-endpoint>/bedrock",
"CLAUDE_CODE_USE_BEDROCK": "1",
"CLAUDE_CODE_SKIP_BEDROCK_AUTH": "1"
}
}
```
- `CLAUDE_CODE_USE_BEDROCK=1` routes Claude Code through the Bedrock backend.
- `CLAUDE_CODE_SKIP_BEDROCK_AUTH=1` skips AWS auth on the client — NetBird injects the
Bedrock API key server-side.
- `ANTHROPIC_BEDROCK_BASE_URL` is your agent network endpoint with the `/bedrock` suffix
(the optional gateway-namespace prefix that disambiguates Bedrock from other providers).
- `ANTHROPIC_MODEL` is the full Bedrock model ID including the region prefix (e.g.
`eu.anthropic.claude-sonnet-4-5-20250929-v1:0`). Some models may not be available in all
regions — if the model above doesn't work, switch to one in your provider's allowed list,
or change it in Claude Code with `/model <model-id>`.

View File

@@ -111,6 +111,12 @@ provider before anyone can route through it.
See [Policies](/agent-network/policies) for details.
## Use with Claude Code
To route [Claude Code](/agent-network/integrations/claude-code) through this Vertex AI
provider instead of the Anthropic API, see [Use Claude on Vertex AI](/agent-network/integrations/claude-code#use-claude-on-vertex-ai)
on the Claude Code integration page.
## Manage Service Account Keys
List the keys for the service account, and revoke any you no longer need:

View File

@@ -102,7 +102,7 @@ injects the upstream provider key server-side.
reads `~/.codex/config.toml`.
<p>
<img src="/docs-static/img/agent-network/quickstart/agent-network-agent-config.png" alt="agent network agent config" className="imagewrapper" />
<img src="/docs-static/img/agent-network/integrations/agent-network-configure-agent-claude-code.png" alt="NetBird Configure Your Agent modal showing Claude Code configuration" className="imagewrapper" />
</p>
## Create a Policy