π¦ ClawHub
Oauth Disguise
by @jiafar
Configure Anthropic OAuth tokens (sk-ant-oat01-*) to work as API keys in OpenClaw via environment variable injection, enabling Claude Pro/Team API access.
π Tips & Best Practices
| Symptom | Cause | Fix |
|---------|-------|-----|
| Still shows custom-proxy/* | defaults.model.primary wrong | Set to anthropic-official/MODEL_ID |
| Fallback after token switch | Auth cooldown from rapid switching | Wait 5 min, restart gateway |
| env variable missing | Gateway not restarted | openclaw gateway restart |
| Works then stops | Token expired | Replace token in env.vars, restart |
Critical: Do not rapidly switch between tokens. OpenClaw tracks auth failures and applies cooldown periods. If stuck in fallback, use session_status with model parameter to force reset:
/model anthropic-official/claude-opus-4-6
TERMINAL
clawhub install oauth-disguise