One-command setup
Bring Token Harbor to the agent you already use
Token Harbor speaks the OpenAI and Anthropic APIs, so your coding agent already works with it. One command wires it up — no base-URL, no key wrangling.
macOS / Linux
$ curl -fsSL https://tokenharbor.ai/connect.sh | shWindows (PowerShell)
$ irm https://tokenharbor.ai/connect.ps1 | iexNothing to install first — even Node.js is provisioned automatically if your machine doesn't have it. It opens a menu: connect all your agents, pick them one by one, or restore your original setup anytime.
zsh — tokenharbor connect
$ curl -fsSL https://tokenharbor.ai/connect.sh | sh Downloading the Token Harbor CLI… done Verifying key… ok (28 models available) Detected: Claude Code, Codex CLI, Cursor ✓ Claude Code — configured ✓ Codex CLI — configured ✓ Cursor — manual steps ↓ Done. Open a new terminal and your agents use Token Harbor.
Your agent
Claude Code, Cursor, Codex…
→
Token Harbor
one key · smart routing
→
Every model
2
Run one command
Paste the install command above into your terminal, then paste the key when asked.
3
Start building
Open a new terminal — your agent now routes through us.
Works with your stack
Auto = the CLI writes the config for you. Guided = it prints the exact Base URL + key to paste.
Claude Codeauto
Codex CLIauto
opencodeauto
Continueauto
Aiderauto
Cursorguided
Cline / Rooguided
Windsurfguided
Zedguided
Cherry Studioguided
More commands
After installing, tokenharbor is on your PATH:
$ tokenharbor status$ tokenharbor models$ tokenharbor disconnectSafe by design
- Reversible. disconnect restores your previous config exactly.
- Non-destructive. Existing files are backed up first, never clobbered.
- Yours only. Your key stays local in ~/.tokenharbor/.