OAuth Pool Setup
import Screenshot from ’../../../components/Screenshot.astro’
Kanna’s OAuth pool lets you register one or more Claude OAuth tokens. Kanna rotates across them per chat and falls over on rate limits.
Why OAuth pool
- Subscription billing — Pro/Max plans charged instead of API rates (via PTY driver)
- Rate-limit fallover — automatic switch to a different token when one hits limits
- Per-token labels — tag tokens (e.g.,
personal,work-1,work-2)
Add a token
- Open Settings → OAuth Pool
- Click Add Token
- Paste a Claude OAuth token (from
claude /loginon a machine where the CLI is interactive) - Give it a label
- Save
Enable PTY driver
To actually use subscription billing, set KANNA_CLAUDE_DRIVER=pty in your shell before running Kanna:
export KANNA_CLAUDE_DRIVER=ptykannaPTY mode is OAuth-only — ANTHROPIC_API_KEY is stripped from the spawned child env regardless of what’s in your shell.
See Features → Security & Sandboxing for the sandbox profile applied to PTY spawns.