Skip to content

Commit 793acb5

Browse files
dvdksnclaude
andcommitted
docs(sandboxes): move non-interactive login to usage.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a5f2ee9 commit 793acb5

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

content/manuals/ai/sandboxes/get-started.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,6 @@ option.
123123
> See the [FAQ](faq.md) for details on why sign-in is required and what
124124
> happens with your data.
125125
126-
### Non-interactive login
127-
128-
For CI environments and scripts where a browser is not available, use a
129-
Docker Personal Access Token (PAT) with `--username` and `--password-stdin`:
130-
131-
```console
132-
$ echo "$DOCKER_PAT" | sbx login --username <your-docker-id> --password-stdin
133-
```
134-
135-
`--password-stdin` reads the token from standard input to keep it out of
136-
your shell history. Generate a PAT from your
137-
[Docker account settings](https://app.docker.com/settings/personal-access-tokens)
138-
with at least **Read** scope.
139-
140126
## Authenticate your agent
141127

142128
Agents need credentials for their model provider. How you provide them depends

content/manuals/ai/sandboxes/usage.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ $ sbx rm my-sandbox
3535
$ sbx run claude
3636
```
3737

38+
## Non-interactive login
39+
40+
For CI environments and scripts where a browser is not available, use a
41+
Docker Personal Access Token (PAT) with `--username` and `--password-stdin`:
42+
43+
```console
44+
$ echo "$DOCKER_PAT" | sbx login --username <your-docker-id> --password-stdin
45+
```
46+
47+
`--password-stdin` reads the token from standard input to keep it out of
48+
your shell history. Generate a PAT from your
49+
[Docker account settings](https://app.docker.com/settings/personal-access-tokens)
50+
with at least **Read** scope.
51+
3852
## Interactive mode
3953

4054
Running `sbx` with no subcommands opens an interactive terminal dashboard:

0 commit comments

Comments
 (0)