Docs/Getting started

Connect a model

Providers, sign-in, LiteLLM, the model picker, effort and usage.

A provider is how pi reaches models: a subscription, an API key, a local server or a LiteLLM proxy. A thread uses one model from your providers. Adding a provider does not change the default model or the model of an existing thread.

Add a provider#

Open Settings → Providers and choose +.
OptionUse it for
RadiusOne sign-in to pi's own gateway, with many models. Usage and limits in one place.
A subscription you haveChatGPT, GitHub Copilot and others, through the provider's sign-in in your browser.
An API keyOpenRouter, OpenAI, Anthropic, Google, Azure, Bedrock and more.
A local modelOllama, llama-swap, LM Studio or any OpenAI-compatible server on this machine. See Run a local model.
LiteLLMA LiteLLM proxy and the models available to your key.
A Claude subscription does not include API access: Anthropic needs a separately billed API key.
The add-provider wizard with its five options.
The add-provider wizard with its five options.

Video walkthrough · English captions

Add a local provider

Add a local provider

Fictional demo data · Qwen3-TTS · Aiden (English)

Connect an already-running local server, discover its model, save the provider, and send a test greeting to check the connection.

From a terminal:
pi-kit login                                   # choose a provider
pi-kit login openrouter --api-key
pi-kit login --local http://127.0.0.1:8080/v1  # a local server
pi-kit model llama-swap/qwen3-4b               # default model for new threads

Sign in#

For Radius or a subscription:
  1. Select the provider.
  2. Finish the sign-in in the browser page that opens, or use the fallback link and code.
  3. Return to pi-kit. The provider appears under Signed in.
  4. Pick a model in the composer.
For an API key, paste the key in the form. pi-kit shows only its last four characters afterwards.
Where keys go depends on credential storage: on a fresh Mac they are saved as plain text in pi's private auth.json until you opt in; Windows and Linux use the system's credential store by default. Subscription and Radius sign-ins stay in pi's files. See Credential storage.
Settings → Providers with a local llama.cpp connection.
Settings → Providers with a local llama.cpp connection.
Local llama.cpp and llama-swap connections are grouped under llama.cpp with a model and connection count. Expand the group to refresh, edit or remove a server.

Connect LiteLLM#

  1. Choose LiteLLM in the wizard.
  2. Enter the Proxy URL, for example http://localhost:4000/v1.
  3. Under Authentication, choose API key (usually a proxy virtual key), Use saved API key, or No API key required.
  4. Choose Discover models, then Save and use models.
Discovery reads the proxy's catalog; it does not test each model. Context limits and capabilities come from the proxy. The model picker refreshes the catalog when it opens.
The LiteLLM form before discovery.
The LiteLLM form before discovery.

Choose a model#

Open the model chip in the composer and search.
KeyAction
↑ ↓Move through the list.
EnterUse the model.
Shift+EnterPin or unpin it.
⌘⇧M (Ctrl+Shift+M)Cycle through pinned models; with none pinned, through all.
Changing the model keeps the conversation. The new model may have a smaller context window or no tool support.
Settings → Chat models has three tabs:
TabContents
Chat defaultsDefault model and effort for new threads, and the default model per provider.
Pinned modelsThe ⌘⇧M cycle, in order. Drag to reorder.
CatalogContext window and price per million tokens of every model, and catalog updates.

Effort#

The flask button next to the model chip sets the thinking effort. The levels depend on the model; models without reasoning ignore it. The default for new threads is in Chat models → Chat defaults.

Usage and cost#

ShownSource
Context ringHow much of the model's context window the thread uses.
Provider usageLimits or credit reported by Radius, OpenRouter, or a ChatGPT subscription through OpenAI Codex.
CostAn estimate from token counts, not an invoice. Local models cost nothing.
Missing data is left blank. Turn on Settings → Appearance → Transcript → Show usage under every turn to see tokens, cost and time per turn.

Remove a provider#

Open Settings → Providers, expand the provider and choose Remove provider. This removes the connection, its models and its stored credential. Downloaded model files, chat history and environment variables stay.
pi-kit logout openrouter