Models

Models

PARI calls the provider you sign in to. There is no separate hosted model.

Providers

ProviderDefault modelEnvironment variableSign in
OpenAIgpt-4oOPENAI_API_KEYpari-cli login openai --api-key <key>
DeepSeekdeepseek-chatDEEPSEEK_API_KEYpari-cli login deepseek --api-key <key>
Anthropicclaude-3-7-sonnet-20250219ANTHROPIC_API_KEYpari-cli login anthropic --api-key <key>
Grokgrok-3XAI_API_KEYpari-cli login grok --api-key <key>
OpenRouteropenrouter/openai/gpt-4o-miniOPENROUTER_API_KEYpari-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

  1. If --model was passed, that id selects the provider.
  2. Otherwise PARI_MODEL selects it.
  3. Otherwise the latest saved sign-in is used.
  4. Otherwise an API key already exported in the environment selects that provider’s default model.
  5. For a chosen provider, an environment key is sent before the saved sign-in.
export PARI_MODEL="claude-3-7-sonnet-20250219"
pari-cli

Inside a session:

/model
/model gpt-4o

Offline 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 logout

Naming a provider removes that row. With no name, the terminal picker lists what is saved.

Next