Environment
- OpenClaw: 2026.2.21-2 (35a57bc)
- OS: macOS 26.3 (arm64)
- Node: 25.5.0
Summary
Anthropic auth via setup-token is accepted and stored, but runtime agent calls fail with:
HTTP 401 authentication_error: Invalid bearer token
I can reproduce this in a clean isolated profile, so this does not appear to be session/model leakage.
Repro steps
-
Create/use isolated profile:
openclaw --profile anth-test status
-
Configure Anthropic model/auth in that profile (token flow):
openclaw --profile anth-test models auth setup-token
-
Confirm model/auth state:
openclaw --profile anth-test models status
- Default model: anthropic/claude-sonnet-4-6
- Auth store shows anthropic token profile(s)
- Run agent turn:
openclaw --profile anth-test agent --agent main --message "Reply with exactly: anthropic test ok" --json
Observed
- agentMeta.provider = anthropic
- agentMeta.model = claude-sonnet-4-6
- payload text:
HTTP 401 authentication_error: Invalid bearer token (request_id: req_...)
Expected
- Successful Anthropic model response for valid setup-token auth.
Additional notes
- I also tested with a separate anth-test gateway port and explicit gateway env targeting; same 401 behavior once provider/model were Anthropic.
- Tokens were rotated during testing.
models auth login is not usable in this environment because CLI reports:
“No provider plugins found. Install one via openclaw --profile anth-test plugins install”.
Potentially relevant
- setup-token flow writes auth profile(s), but runtime bearer appears rejected by Anthropic API.
- Could be token type mismatch, token ingestion/normalization issue, or provider auth handling regression in 2026.2.21-2.
Environment
Summary
Anthropic auth via setup-token is accepted and stored, but runtime agent calls fail with:
HTTP 401 authentication_error: Invalid bearer token
I can reproduce this in a clean isolated profile, so this does not appear to be session/model leakage.
Repro steps
Create/use isolated profile:
openclaw --profile anth-test status
Configure Anthropic model/auth in that profile (token flow):
openclaw --profile anth-test models auth setup-token
Confirm model/auth state:
openclaw --profile anth-test models status
openclaw --profile anth-test agent --agent main --message "Reply with exactly: anthropic test ok" --json
Observed
HTTP 401 authentication_error: Invalid bearer token (request_id: req_...)
Expected
Additional notes
models auth loginis not usable in this environment because CLI reports:“No provider plugins found. Install one via
openclaw --profile anth-test plugins install”.Potentially relevant