🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ 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.

Versionv1.1.1
πŸ“‹ 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

View on ClawHub
TERMINAL
clawhub install oauth-disguise

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’