Skip to content

Commit 0ec1bf1

Browse files
authored
Merge pull request #25708 from dvdksn/codex/update-sbx-secret-syntax
docs: update sbx secret scope syntax
2 parents ec58e08 + d21845a commit 0ec1bf1

13 files changed

Lines changed: 78 additions & 74 deletions

File tree

content/manuals/ai/sandboxes/agents/claude-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Claude Code requires either an Anthropic API key or a Claude subscription.
3535
[stored secrets](../security/credentials.md#stored-secrets):
3636

3737
```console
38-
$ sbx secret set -g anthropic
38+
$ sbx secret set anthropic
3939
```
4040

4141
**Claude subscription**: If no API key is set, use the `/login` command inside

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To set up authentication ahead of time, choose one of the following methods.
3838
**OAuth**: Start the OAuth flow on your host with:
3939

4040
```console
41-
$ sbx secret set -g openai --oauth
41+
$ sbx secret set openai --oauth
4242
```
4343

4444
This opens a browser window for authentication and stores the resulting tokens
@@ -49,7 +49,7 @@ so browser-based authentication works without any extra setup.
4949
[stored secrets](../security/credentials.md#stored-secrets):
5050

5151
```console
52-
$ sbx secret set -g openai
52+
$ sbx secret set openai
5353
```
5454

5555
See [Credentials](../security/credentials.md) for more details.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Copilot requires a GitHub token with Copilot access. Store your token using
3333
[stored secrets](../security/credentials.md#stored-secrets):
3434

3535
```console
36-
$ echo "$(gh auth token)" | sbx secret set -g github
36+
$ echo "$(gh auth token)" | sbx secret set github
3737
```
3838

3939
## Configuration

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Cursor supports two authentication methods: an API key or OAuth.
3535
[stored secrets](../security/credentials.md#stored-secrets):
3636

3737
```console
38-
$ sbx secret set -g cursor
38+
$ sbx secret set cursor
3939
```
4040

4141
**OAuth**: If no API key is set, Cursor prompts you to sign in interactively

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ Docker Agent supports multiple providers. Store keys for the providers you want
2626
to use with [stored secrets](../security/credentials.md#stored-secrets):
2727

2828
```console
29-
$ sbx secret set -g openai
30-
$ sbx secret set -g anthropic
31-
$ sbx secret set -g google
32-
$ sbx secret set -g xai
33-
$ sbx secret set -g nebius
34-
$ sbx secret set -g mistral
35-
$ sbx secret set -g openrouter
29+
$ sbx secret set openai
30+
$ sbx secret set anthropic
31+
$ sbx secret set google
32+
$ sbx secret set xai
33+
$ sbx secret set nebius
34+
$ sbx secret set mistral
35+
$ sbx secret set openrouter
3636
```
3737

3838
You only need to configure the providers you want to use. Docker Agent detects

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ your Factory account.
3737
[stored secrets](../security/credentials.md#stored-secrets):
3838

3939
```console
40-
$ sbx secret set -g droid
40+
$ sbx secret set droid
4141
```
4242

4343
**OAuth**: If no API key is set, Droid prompts you to authenticate

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Gemini requires either a Google API key or a Google account with Gemini access.
3535
[stored secrets](../security/credentials.md#stored-secrets):
3636

3737
```console
38-
$ sbx secret set -g google
38+
$ sbx secret set google
3939
```
4040

4141
**Google account**: If no API key is set, Gemini prompts you to sign in

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ OpenCode supports multiple providers. Store keys for the providers you want to
3636
use with [stored secrets](../security/credentials.md#stored-secrets):
3737

3838
```console
39-
$ sbx secret set -g openai
40-
$ sbx secret set -g anthropic
41-
$ sbx secret set -g google
42-
$ sbx secret set -g xai
43-
$ sbx secret set -g groq
44-
$ sbx secret set -g aws
45-
$ sbx secret set -g openrouter
39+
$ sbx secret set openai
40+
$ sbx secret set anthropic
41+
$ sbx secret set google
42+
$ sbx secret set xai
43+
$ sbx secret set groq
44+
$ sbx secret set aws
45+
$ sbx secret set openrouter
4646
```
4747

4848
You only need to configure the providers you want to use. OpenCode detects
@@ -57,7 +57,7 @@ OpenCode Zen API keys aren't part of the built-in OpenCode credentials that
5757
Set the `OPENCODE_API_KEY` environment variable on the host, then store it:
5858

5959
```console
60-
$ sbx secret set-custom -g \
60+
$ sbx secret set-custom \
6161
--host opencode.ai \
6262
--env OPENCODE_API_KEY \
6363
--value "$OPENCODE_API_KEY"
@@ -73,8 +73,8 @@ OpenCode Zen also requires network access to `opencode.ai`:
7373
$ sbx policy allow network opencode.ai:443
7474
```
7575

76-
If you add the custom secret globally with `-g`, recreate existing OpenCode
77-
sandboxes so the new environment variable is available inside the sandbox.
76+
If you add a global custom secret, recreate existing OpenCode sandboxes so the
77+
new environment variable is available inside the sandbox.
7878

7979
## Configuration
8080

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ before running the sandbox. The proxy injects them into outbound API requests;
3838
credentials are never stored inside the VM:
3939

4040
```console
41-
$ sbx secret set -g anthropic
42-
$ sbx secret set -g openai
41+
$ sbx secret set anthropic
42+
$ sbx secret set openai
4343
```
4444

4545
Once inside the shell, you can install agents using their standard methods,

content/manuals/ai/sandboxes/customize/build-an-agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ to look like a real Amp key. Pick a placeholder shape that matches Amp's
223223
expected format:
224224

225225
```console
226-
$ sbx secret set-custom -g \
226+
$ sbx secret set-custom \
227227
--host ampcode.com \
228228
--env AMP_API_KEY \
229229
--placeholder "sgamp-{rand}" \
@@ -320,7 +320,7 @@ To remove the entry created earlier with `sbx secret set-custom`, pass
320320
the host to `sbx secret rm`:
321321

322322
```console
323-
$ sbx secret rm -g --host ampcode.com
323+
$ sbx secret rm --host ampcode.com
324324
```
325325

326326
The `--host` flag is part of the experimental `set-custom` surface and doesn't appear in `sbx secret rm --help`.

0 commit comments

Comments
 (0)