Skip to content
Merged
Show file tree
Hide file tree
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 5 additions & 30 deletions src/pages/agent-network/integrations/bedrock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,36 +64,11 @@ before anyone can route through it.

See [Policies](/agent-network/policies) for details.

## Use Claude Code with AWS Bedrock

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>`.
## Use with Claude Code

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,
Expand Down
39 changes: 39 additions & 0 deletions src/pages/agent-network/integrations/claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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>`.
6 changes: 6 additions & 0 deletions src/pages/agent-network/integrations/vertex-ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/pages/agent-network/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading