Skip to content

Connect a model

View as markdown

The agents are Pi, an open-source coding agent (more about Pi here). It’s built into Solipsist, so there’s nothing extra to install. Pi needs a model, and there are two ways to give it one.

If you ask for something before a model is connected, you get this dialog instead of a request that would fail:

Connect a model
The Connect a model dialog: an OpenRouter key, or a login saved in PiThe Connect a model dialog: an OpenRouter key, or a login saved in Pi

Set the key in your environment, in your shell’s profile (~/.zshrc, ~/.bashrc) to keep it:

Terminal window
export SOLIPSIST_OPENROUTER_KEY=sk-or-...

Solipsist doesn’t read a .env from the folder it runs in: that folder may be someone else’s.

More on OpenRouter. You can also put it in solipsist.yaml as pi.openrouter_key, but that file is easy to commit by accident. The server never prints a key. Errors and --print-config only say whether one is set.

If you already use Pi in a terminal, Solipsist picks up Pi’s own configuration, the same way the pi command does in that folder (~/.pi/agent, plus a project .pi). Your saved logins, skills and connected tools work here too. To add a login, run pi and then /login.

Pi can also run through Ollama, LM Studio, llama.cpp or vLLM. See Local models.

Each page has its own model. You pick it in the agent panel, next to the switch that turns the page’s agents on and off, and the status bar shows which model the page is using. The picker shows a shortlist first, and you can search every model Pi can run. To pin your favourites to the top of the list on every page:

agent:
preferred_models:
- pi:openrouter/~deepseek/deepseek-flash-latest

If a run is in progress when you change the model, it finishes on the old one. If no model can run yet, the status bar’s model reads Connect a model instead.

Status bar
The status bar: editing mode, the agent on, the model, what the page has costThe status bar: editing mode, the agent on, the model, what the page has cost

For Solipsist 0.1