pots init sets up the model, and pots login signs in to others or adds keys, one after another, for every bot on the computer. Each bot's bot.json names its model and, if you want one, a judge, and you can change them at any time; edits apply within seconds. Logins, API keys and local endpoints are stored in pi's files in ~/.pi/agent/, so the pi command line, if you use it, shares them.
The bot's children, which do its longer work, have the bot's model unless it chooses another one for a child, by the work, with Pots' notes on the models signed in. At its first start it asks you which models you want for which work, and your answer comes first; sign in to those with pots login too.
| Field | What it does | Values |
|---|---|---|
model |
The agent that reads, thinks and acts | Any pi model as provider/modelId, for example openai/gpt-6.2-sol or anthropic/claude-opus-5-5 |
thinking |
How hard the agent thinks. A level the model does not have becomes the nearest one it has, as in pi | off, minimal, low, medium (default), high, xhigh, max |
judge |
Decides which messages that do not mention the bot should wake it | off (default): every message wakes the bot, and the agent decidesprovider/modelId of a classifier: typesafe/jev-latest, openrouter/typesafe/jev-1.14, opencode/jev-1.13-free, or a llama.cpp modelmain: the bot's own model judges, no extra account, but slower |
With off, each group of messages is a wake of the main model, which then decides. A fast classifier keeps the messages that are not for the bot away from it, and is cheaper and quicker than the main model: Jev answers in about 0.3 seconds. With main, each group of messages costs one short request to the main model before the bot hears of it.
A network that needs a proxy. The gateway sets up its network as the pi command line does: a proxy from HTTP_PROXY, HTTPS_PROXY and NO_PROXY, or from httpProxy in pi's ~/.pi/agent/settings.json, and pi's httpIdleTimeoutMs. Model requests, MCP servers over HTTP and the chat apps that use fetch go through it; Slack's Socket Mode and Discord's gateway connection do not.
Requests through OpenRouter, NVIDIA NIM and OpenCode name Pots (https://pots.sh) as the app, where pi would name itself; subscription logins send no such name.
OpenAI-compatible and local endpoints (Ollama, LM Studio, vLLM, a proxy): pots init and pots login add them for you. By hand, they go in pi's ~/.pi/agent/models.json (fields):
{
"providers": {
"ollama": {
"baseUrl": "http://localhost:11434/v1",
"api": "openai-completions",
"apiKey": "ollama",
"compat": { "supportsDeveloperRole": false, "supportsReasoningEffort": false },
"models": [{ "id": "qwen3:8b", "contextWindow": 32768 }]
}
}
}Then set "model": "ollama/qwen3:8b". The agent needs a model that calls tools well and a context window of 32K tokens or more. In our tests a 4B model judged well but was too small to do the work alone; use the largest model your machine runs well.
llama.cpp can be both the agent and the judge. Start llama-server in router mode, then log in once with the pi command line: run pi, then /login llama.cpp (guide). Its chat models appear as llama.cpp/<model>. For the judge, use a decision model such as Kev-4B (3 GB), which answers through llama.cpp's /v1/systemone; any chat model also works as a judge.
{ "model": "llama.cpp/<your chat model>", "judge": "llama.cpp/Kev-4B-Q4_K_M" }Providers from pi extensions. A pi extension can bring a model provider, such as pi-claude-code, which uses a Claude Pro or Max subscription through the Claude Code CLI. Pots loads no pi extension that pi itself has installed. It loads only the extensions in "extensions" in ~/.pots/settings.json, as pi's -e takes them: paths, relative to ~/.pots, or package sources. From them it takes only their providers, for every bot on the computer; their tools and commands are for pi's own sessions. For example, after git clone https://github.com/earendil-works/pi-claude-code ~/.pots/extensions/pi-claude-code and claude auth login:
{ "extensions": ["./extensions/pi-claude-code"] }Then pots login --list shows the claude-code/... models, and a bot uses one as "model": "claude-code/claude-sonnet-5-5". A running gateway loads an extension added to the list within a few seconds. One taken out of the list or changed stays as it was loaded until pots service restart.
Gemini with a Google AI Pro or Ultra subscription. Run bots on Gemini 4 Neon and the rest of the Google plan you already pay for, with no API key. pots login → "Sign in with a subscription" → "Google AI Pro or Ultra: Gemini and more through Antigravity". It adds the pi extension pi-agy (npm:@pots/pi-agy) to "extensions", installs Google's Antigravity CLI (agy) with Google's own install script when it is missing, and signs in with Antigravity's own sign-in. Then a bot uses "model": "agy/gemini-4-neon", or Carbon, Hydrogen, an Orchestrator or a Claude model the account has. Each run of the bot is a turn of Google's own agent through agy acp, as Antigravity's terms allow: AGY's own tools do files, commands and web search, and the bot's other tools reach it over MCP. Antigravity's AI credits must stay off; pi-agy does not run while they are on. It is about twice as fast as pi-antigravity-acp-provider on the same task, and one agy process serves every bot. The pi-agy README has the numbers and the details.
Images. A bot makes and edits images in codemode scripts with models.generateImages(); models.getAvailableOfType("image") lists the image models it can use. With the ChatGPT subscription signed in to pi (openai-codex), that is openai-codex/gpt-image-2, through the same endpoint the Codex CLI uses, on the subscription's Codex usage. ChatGPT decides which accounts may: when it answers 403, the Codex CLI's own image tool is refused too. OpenRouter's image models work with an OpenRouter key.