Integrations
pi
Point pi at Token Harbor manually — Base URL, API key, and exact steps. One key, every model, no CLI required.
pi + Token Harbor
The open-source BYOK coding agent. Route it through Token Harbor to use every model with a single key.
Get a thk_… key from /dashboard/api-keys (a free account works), then:
pi reads ~/.pi/agent/models.json. Add a provider (the $OPENAI_API_KEY is
resolved from your environment at runtime):
{
"providers": {
"tokenharbor": {
"name": "Token Harbor",
"baseUrl": "https://tokenharbor.ai/v1",
"api": "openai-completions",
"apiKey": "$OPENAI_API_KEY",
"models": [{ "id": "th-orchestra", "name": "Token Harbor" }]
}
}
}
Export OPENAI_API_KEY=YOUR_thk_KEY, start pi, and choose the model with
/model.
Prefer one command? The tokenharbor CLI configures pi
automatically (and can undo it).