Models
Models
PARI calls the provider you sign in to. There is no separate hosted model.
Providers
| Provider | Default model | Environment variable | Sign in |
|---|---|---|---|
| OpenAI | gpt-4o | OPENAI_API_KEY | pari-cli login openai --api-key <key> |
| DeepSeek | deepseek-chat | DEEPSEEK_API_KEY | pari-cli login deepseek --api-key <key> |
| Anthropic | claude-3-7-sonnet-20250219 | ANTHROPIC_API_KEY | pari-cli login anthropic --api-key <key> |
| Grok | grok-3 | XAI_API_KEY | pari-cli login grok --api-key <key> |
| OpenRouter | openrouter/openai/gpt-4o-mini | OPENROUTER_API_KEY | pari-cli login openrouter --api-key <key> |
OpenAI, Anthropic, Grok, and OpenRouter also accept --account <token>. DeepSeek does not. An interactive terminal can use pari-cli login with no flags and pick from the menu.
Which credential is used
- If
--modelwas passed, that id selects the provider. - Otherwise
PARI_MODELselects it. - Otherwise the latest saved sign-in is used.
- Otherwise an API key already exported in the environment selects that provider’s default model.
- For a chosen provider, an environment key is sent before the saved sign-in.
export PARI_MODEL="claude-3-7-sonnet-20250219"
pari-cliInside a session:
/model
/model gpt-4oOffline model
--model pari-core selects a local mock provider. It does not call an API and it is there for development. A real task needs one of the providers above.
Sign out
pari-cli logout deepseek
pari-cli logoutNaming a provider removes that row. With no name, the terminal picker lists what is saved.
Next
- First session →
Use the signed-in model on a repository.
- Troubleshooting →
Fix a rejected key or a missing provider.