wrong token

Problem: claude setup-token generates tokens that return "HTTP 401: Invalid
bearer token"

Details:
- I have Claude Pro subscription
- Running claude setup-token successfully generates a token
- Token is saved to ~/.clawdbot/agents/main/agent/auth-profiles.json
- But when clawdbot tries to use it: error: HTTP 401: Invalid bearer token
- Testing token directly against api.anthropic.com/api/oauth/usage also
returns 401
- This happens with every new token generated

Environment:
- macOS
- Claude Code version: 2.1.9
- Clawdbot version: 2026.1.15


Question: Is there a workaround to authenticate clawdbot with Claude
subscription while setup-token is broken?
Was this page helpful?