diff --git a/public/docs-static/img/agent-network/integrations/agent-network-configure-agent-claude-code.png b/public/docs-static/img/agent-network/integrations/agent-network-configure-agent-claude-code.png new file mode 100644 index 00000000..99e34809 Binary files /dev/null and b/public/docs-static/img/agent-network/integrations/agent-network-configure-agent-claude-code.png differ diff --git a/src/pages/agent-network/integrations/bedrock.mdx b/src/pages/agent-network/integrations/bedrock.mdx index 1c022d39..1f8cce08 100644 --- a/src/pages/agent-network/integrations/bedrock.mdx +++ b/src/pages/agent-network/integrations/bedrock.mdx @@ -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:///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 `. +## 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. Rotating the key is a single server-side change in NetBird: generate a new Bedrock API key, diff --git a/src/pages/agent-network/integrations/claude-code.mdx b/src/pages/agent-network/integrations/claude-code.mdx index ef3196a1..06ab7dfe 100644 --- a/src/pages/agent-network/integrations/claude-code.mdx +++ b/src/pages/agent-network/integrations/claude-code.mdx @@ -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. + +

+ NetBird Configure Your Agent modal showing Claude Code settings.json configuration +

+ 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:///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 `. diff --git a/src/pages/agent-network/integrations/vertex-ai.mdx b/src/pages/agent-network/integrations/vertex-ai.mdx index 3598d635..afdfbfff 100644 --- a/src/pages/agent-network/integrations/vertex-ai.mdx +++ b/src/pages/agent-network/integrations/vertex-ai.mdx @@ -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: diff --git a/src/pages/agent-network/quickstart.mdx b/src/pages/agent-network/quickstart.mdx index f17c5445..4c5a755e 100644 --- a/src/pages/agent-network/quickstart.mdx +++ b/src/pages/agent-network/quickstart.mdx @@ -102,7 +102,7 @@ injects the upstream provider key server-side. reads `~/.codex/config.toml`.

- agent network agent config + NetBird Configure Your Agent modal showing Claude Code configuration

## Create a Policy