Skip to content

Commit 9eb3718

Browse files
committed
docs: refresh token auth command mirrors
1 parent 5c5c82d commit 9eb3718

5 files changed

Lines changed: 26 additions & 2 deletions

File tree

docs/cli/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,8 @@ Options:
16071607
Notes:
16081608

16091609
- `setup-token` and `paste-token` are generic token commands for providers that expose token auth methods.
1610+
- `setup-token` requires an interactive TTY and runs the provider's token-auth method.
1611+
- `paste-token` prompts for the token value and defaults to auth profile id `<provider>:manual` when `--profile-id` is omitted.
16101612
- Anthropic legacy token profiles still run if already configured, but Anthropic no longer supports `setup-token` or `paste-token` as a new OpenClaw auth path.
16111613

16121614
### `models auth order get|set|clear`

docs/cli/models.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ openclaw models fallbacks list
9999
openclaw models auth add
100100
openclaw models auth login --provider <id>
101101
openclaw models auth setup-token --provider <id>
102-
openclaw models auth paste-token
102+
openclaw models auth paste-token --provider <id>
103103
```
104104

105105
`models auth add` is the interactive auth helper. It can launch a provider auth
@@ -122,6 +122,13 @@ Notes:
122122
CLI login and rewrites the main Anthropic default-model path to `claude-cli/...`.
123123
- `setup-token` and `paste-token` remain generic token commands for providers
124124
that expose token auth methods.
125-
- `paste-token` accepts a token string generated elsewhere or from automation.
125+
- `setup-token` requires an interactive TTY and runs the provider's token-auth
126+
method (defaulting to that provider's `setup-token` method when it exposes
127+
one).
128+
- `paste-token` requires `--provider`, prompts for the token value, and writes
129+
it to the default profile id `<provider>:manual` unless you pass
130+
`--profile-id`.
131+
- `paste-token --expires-in <duration>` stores an absolute token expiry from a
132+
relative duration such as `365d` or `12h`.
126133
- Anthropic billing note: Anthropic changed third-party harness billing on **April 4, 2026 at 12:00 PM PT / 8:00 PM BST**. Anthropic says Claude subscription limits no longer cover OpenClaw, and Claude CLI traffic in OpenClaw now requires **Extra Usage** billed separately from the subscription.
127134
- Existing legacy Anthropic token profiles still run if already configured, but Anthropic no longer supports `setup-token` or `paste-token` as a new OpenClaw auth path.

docs/concepts/oauth.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ OpenClaw no longer offers Anthropic setup-token onboarding or auth commands for
8484
new setup. Existing legacy Anthropic token profiles are still honored at
8585
runtime if they are already configured.
8686

87+
The generic token helpers still exist for other providers:
88+
`openclaw models auth setup-token --provider <id>` and
89+
`openclaw models auth paste-token --provider <id>`.
90+
8791
## Anthropic Claude CLI migration
8892

8993
If Claude CLI is already installed and signed in on the gateway host, you can

docs/gateway/authentication.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ for new setup via onboarding or `models auth` commands.
6868
For new setup, use an Anthropic API key or migrate to Claude CLI on the gateway
6969
host.
7070

71+
Other providers can still use the generic token helpers:
72+
73+
- `openclaw models auth setup-token --provider <id>` runs the provider's token
74+
auth flow (interactive TTY required).
75+
- `openclaw models auth paste-token --provider <id>` prompts for a token value
76+
and writes it to `auth-profiles.json` (default profile id:
77+
`<provider>:manual`).
78+
7179
Manual token entry (any provider; writes `auth-profiles.json` + updates config):
7280

7381
```bash

docs/help/faq.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,9 @@ Quick answers plus deeper troubleshooting for real-world setups (local dev, VPS,
614614
Yes. Reuse a local **Claude CLI** login on the gateway host with `openclaw models auth login --provider anthropic --method cli --set-default`.
615615

616616
Existing legacy Anthropic token profiles still run if they are already configured, but OpenClaw no longer offers Anthropic setup-token as a new setup path. See [Anthropic](/providers/anthropic) and [OAuth](/concepts/oauth).
617+
Other providers can still use the generic token helpers with
618+
`openclaw models auth setup-token --provider <id>` or
619+
`openclaw models auth paste-token --provider <id>`.
617620

618621
Important: Anthropic changed third-party harness billing on **April 4, 2026
619622
at 12:00 PM PT / 8:00 PM BST**. Anthropic says Claude subscription limits no

0 commit comments

Comments
 (0)