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.

Sign in with /login

Jouzu
/login

Choose 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.

Subscription sign-in

The embedded Pi 1.5.2 runtime offers these subscription sign-in options in /login:

Option shownProvider
Anthropic (Claude Pro/Max)Anthropic
OpenAI (ChatGPT Plus/Pro)OpenAI Codex
OpenAI (ChatGPT subscription)OpenAI
GitHub CopilotGitHub 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.

API keys from the environment

Set the provider’s variable in the shell that starts Jouzu. Environment keys are not written to disk.

Terminal
export ANTHROPIC_API_KEY="your-key"
jz
ProviderVariable
AnthropicANTHROPIC_API_KEY
OpenAIOPENAI_API_KEY
Google GeminiGEMINI_API_KEY
GitHub CopilotCOPILOT_GITHUB_TOKEN
OpenRouterOPENROUTER_API_KEY
DeepSeekDEEPSEEK_API_KEY
Moonshot AIMOONSHOT_API_KEY
Kimi For CodingKIMI_API_KEY
xAIXAI_API_KEY
MistralMISTRAL_API_KEY
GroqGROQ_API_KEY
Hugging FaceHF_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.

Custom endpoints

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.

JSON
{
  "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.

Import from Pi

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.

Troubleshooting

SymptomCheck
A model does not appear in /modelIts provider needs a usable credential. Custom models stay hidden until Jouzu can resolve their key.
A key works in one shell onlyThe key came from an environment variable. Set it in the shell that starts Jouzu, or store it with /login.
A custom endpoint rejects requestsCheck the api value and compatibility settings for that server.