docs: emphasize setup-token

This commit is contained in:
Peter Steinberger
2026-01-09 15:29:50 +01:00
parent e612aedbff
commit 4b7d9c72df
3 changed files with 30 additions and 0 deletions

View File

@@ -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`.

View File

@@ -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 OpenRouters **free model catalog** and can

View File

@@ -13,6 +13,22 @@ credentials**, including the 1year 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: longlived Claude Code token
Run this on the **gateway host** (the machine running the Gateway):