Skip to content

Commit 5384164

Browse files
dvdksnclaude
andauthored
sbx: add OpenRouter provider to agent authentication docs (#25276)
## Summary Adds `sbx secret set -g openrouter` and `OPENROUTER_API_KEY` to the Authentication sections of `docker-agent.md` and `opencode.md`, matching the OpenRouter support added in docker/sandboxes#3244. Also corrects the Google env var in `opencode.md` from `GOOGLE_API_KEY` to `GOOGLE_GENERATIVE_AI_API_KEY`, which is the name OpenCode actually uses. Closes #25273 Generated by Claude Code Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2 parents 07f907f + c955185 commit 5384164

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

content/manuals/ai/sandboxes/agents/docker-agent.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ $ sbx secret set -g google
3232
$ sbx secret set -g xai
3333
$ sbx secret set -g nebius
3434
$ sbx secret set -g mistral
35+
$ sbx secret set -g openrouter
3536
```
3637

3738
You only need to configure the providers you want to use. Docker Agent detects
3839
available credentials and routes requests to the appropriate provider.
3940

4041
Alternatively, export the environment variables (`OPENAI_API_KEY`,
4142
`ANTHROPIC_API_KEY`, `GOOGLE_API_KEY`, `XAI_API_KEY`, `NEBIUS_API_KEY`,
42-
`MISTRAL_API_KEY`) in your shell before running the sandbox. See
43+
`MISTRAL_API_KEY`, `OPENROUTER_API_KEY`) in your shell before running the
44+
sandbox. See
4345
[Credentials](../security/credentials.md) for details on both methods.
4446

4547
## Configuration

content/manuals/ai/sandboxes/agents/opencode.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ $ sbx secret set -g google
4242
$ sbx secret set -g xai
4343
$ sbx secret set -g groq
4444
$ sbx secret set -g aws
45+
$ sbx secret set -g openrouter
4546
```
4647

4748
You only need to configure the providers you want to use. OpenCode detects
4849
available credentials and offers those providers in the TUI.
4950

5051
You can also use environment variables (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`,
51-
`GOOGLE_API_KEY`, `XAI_API_KEY`, `GROQ_API_KEY`, `AWS_ACCESS_KEY_ID`). See
52+
`GOOGLE_GENERATIVE_AI_API_KEY`, `XAI_API_KEY`, `GROQ_API_KEY`,
53+
`AWS_ACCESS_KEY_ID`, `OPENROUTER_API_KEY`). See
5254
[Credentials](../security/credentials.md) for details on both methods.
5355

5456
## Configuration

0 commit comments

Comments
 (0)