From c955185dfc694e1e14567422415965b28adc7fb9 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Fri, 5 Jun 2026 13:45:13 +0200 Subject: [PATCH] sbx: add OpenRouter provider to agent authentication docs 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. Fixes #25273 Co-Authored-By: Claude Sonnet 4.6 --- content/manuals/ai/sandboxes/agents/docker-agent.md | 4 +++- content/manuals/ai/sandboxes/agents/opencode.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/content/manuals/ai/sandboxes/agents/docker-agent.md b/content/manuals/ai/sandboxes/agents/docker-agent.md index d7d360ba87db..713cb2a265a3 100644 --- a/content/manuals/ai/sandboxes/agents/docker-agent.md +++ b/content/manuals/ai/sandboxes/agents/docker-agent.md @@ -32,6 +32,7 @@ $ sbx secret set -g google $ sbx secret set -g xai $ sbx secret set -g nebius $ sbx secret set -g mistral +$ sbx secret set -g openrouter ``` You only need to configure the providers you want to use. Docker Agent detects @@ -39,7 +40,8 @@ available credentials and routes requests to the appropriate provider. Alternatively, export the environment variables (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_API_KEY`, `XAI_API_KEY`, `NEBIUS_API_KEY`, -`MISTRAL_API_KEY`) in your shell before running the sandbox. See +`MISTRAL_API_KEY`, `OPENROUTER_API_KEY`) in your shell before running the +sandbox. See [Credentials](../security/credentials.md) for details on both methods. ## Configuration diff --git a/content/manuals/ai/sandboxes/agents/opencode.md b/content/manuals/ai/sandboxes/agents/opencode.md index 51c3ef0ddc1c..23896acb4608 100644 --- a/content/manuals/ai/sandboxes/agents/opencode.md +++ b/content/manuals/ai/sandboxes/agents/opencode.md @@ -42,13 +42,15 @@ $ sbx secret set -g google $ sbx secret set -g xai $ sbx secret set -g groq $ sbx secret set -g aws +$ sbx secret set -g openrouter ``` You only need to configure the providers you want to use. OpenCode detects available credentials and offers those providers in the TUI. You can also use environment variables (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, -`GOOGLE_API_KEY`, `XAI_API_KEY`, `GROQ_API_KEY`, `AWS_ACCESS_KEY_ID`). See +`GOOGLE_GENERATIVE_AI_API_KEY`, `XAI_API_KEY`, `GROQ_API_KEY`, +`AWS_ACCESS_KEY_ID`, `OPENROUTER_API_KEY`). See [Credentials](../security/credentials.md) for details on both methods. ## Configuration