docs: emphasize setup-token
This commit is contained in:
@@ -468,6 +468,13 @@ Common RPCs:
|
||||
|
||||
See [/concepts/models](/concepts/models) for fallback behavior and scanning strategy.
|
||||
|
||||
Preferred Anthropic auth (CLI token, not API key):
|
||||
|
||||
```bash
|
||||
claude setup-token
|
||||
clawdbot models status
|
||||
```
|
||||
|
||||
### `models` (root)
|
||||
`clawdbot models` is an alias for `models status`.
|
||||
|
||||
|
||||
@@ -111,6 +111,13 @@ JSON includes `auth.oauth` (warn window + profiles) and `auth.providers`
|
||||
(effective auth per provider).
|
||||
Use `--check` for automation (exit `1` when missing/expired, `2` when expiring).
|
||||
|
||||
Preferred Anthropic auth is the Claude CLI setup-token (run on the gateway host):
|
||||
|
||||
```bash
|
||||
claude setup-token
|
||||
clawdbot models status
|
||||
```
|
||||
|
||||
## Scanning (OpenRouter free models)
|
||||
|
||||
`clawdbot models scan` inspects OpenRouter’s **free model catalog** and can
|
||||
|
||||
@@ -13,6 +13,22 @@ credentials**, including the 1‑year token created by `claude setup-token`.
|
||||
See [/concepts/oauth](/concepts/oauth) for the full OAuth flow and storage
|
||||
layout.
|
||||
|
||||
## Preferred Anthropic setup (Claude CLI setup-token)
|
||||
|
||||
For Anthropic, the **preferred** path is the Claude CLI setup-token, not an API key.
|
||||
Run it on the **gateway host**:
|
||||
|
||||
```bash
|
||||
claude setup-token
|
||||
```
|
||||
|
||||
Then verify and sync into Clawdbot:
|
||||
|
||||
```bash
|
||||
clawdbot models status
|
||||
clawdbot doctor
|
||||
```
|
||||
|
||||
## Recommended: long‑lived Claude Code token
|
||||
|
||||
Run this on the **gateway host** (the machine running the Gateway):
|
||||
|
||||
Reference in New Issue
Block a user