Other providers and subscriptions
Jouzu uses the provider support of its embedded Pi runtime (Pi 1.5.2 in Jouzu 0.2.6). Most providers accept an API key; some also offer sign-in with a subscription.
/loginChoose a provider, then a sign-in method. Jouzu guides you through the browser, device, or API-key flow and stores the credential in auth.json in the Jouzu agent directory. On a remote machine, the provider may ask you to paste the final redirect URL or code back into the terminal.
Run /logout to remove a stored credential. This does not unset environment variables or revoke the credential at the provider.
The embedded Pi 1.5.2 runtime offers these subscription sign-in options in /login:
| Option shown | Provider |
|---|---|
| Anthropic (Claude Pro/Max) | Anthropic |
| OpenAI (ChatGPT Plus/Pro) | OpenAI Codex |
| OpenAI (ChatGPT subscription) | OpenAI |
| GitHub Copilot | GitHub Copilot |
| Kimi Code (subscription) | Kimi For Coding |
| xAI (Grok/X subscription) | xAI |
| Meta (Muse subscription) | Meta |
Which models and limits you get, and whether a plan allows this use, are set by the provider and your plan. Jouzu does not check plan eligibility before you sign in.
Set the provider’s variable in the shell that starts Jouzu. Environment keys are not written to disk.
export ANTHROPIC_API_KEY="your-key"
jz| Provider | Variable |
|---|---|
| Anthropic | ANTHROPIC_API_KEY |
| OpenAI | OPENAI_API_KEY |
| Google Gemini | GEMINI_API_KEY |
| GitHub Copilot | COPILOT_GITHUB_TOKEN |
| OpenRouter | OPENROUTER_API_KEY |
| DeepSeek | DEEPSEEK_API_KEY |
| Moonshot AI | MOONSHOT_API_KEY |
| Kimi For Coding | KIMI_API_KEY |
| xAI | XAI_API_KEY |
| Mistral | MISTRAL_API_KEY |
| Groq | GROQ_API_KEY |
| Hugging Face | HF_TOKEN |
The Pi provider reference lists every variable, plus setup for Amazon Bedrock, Google Vertex AI, Azure OpenAI, and other providers with extra configuration.
When several credentials exist, a stored auth.json credential is used before an apiKey in models.json, which is used before environment variables.
Add an endpoint that speaks an OpenAI, Anthropic, or Google API to models.json in the Jouzu agent directory. Values in apiKey and headers can be literal, $NAME environment references, or !command output.
{
"providers": {
"my-gateway": {
"baseUrl": "https://llm.example.com/v1",
"api": "openai-completions",
"apiKey": "$MY_GATEWAY_KEY",
"models": [
{ "id": "example-model", "contextWindow": 128000 }
]
}
}
}To send a built-in provider through a proxy, set only its baseUrl. Opening /model reloads the file. Jouzu never rewrites models.json. The models.json reference lists every field.
An organization can also publish a model catalog that Jouzu adds as a source in Settings / Catalogs; see Configuration.
Jouzu keeps its own configuration, separate from a standalone Pi installation. On first interactive setup, it offers to copy Pi’s models.json and saved provider credentials. Each question defaults to no, and an existing Jouzu file is never replaced. Settings, extensions, and sessions are not imported.
| Symptom | Check |
|---|---|
A model does not appear in /model | Its provider needs a usable credential. Custom models stay hidden until Jouzu can resolve their key. |
| A key works in one shell only | The key came from an environment variable. Set it in the shell that starts Jouzu, or store it with /login. |
| A custom endpoint rejects requests | Check the api value and compatibility settings for that server. |