# Configuring Pi with OpenRouter
[OpenRouter](https://openrouter.ai) gives you hundreds of models (Claude, GPT, Gemini, Qwen,
DeepSeek and more) with one key and one bill.
## Steps
1. Create a key on [openrouter.ai/keys](https://openrouter.ai/keys) and add credit to your
account.
2. In rightcommit open **Personal settings** → **Agents** → **Pi Agent**.
3. Set **Pi provider** to *OpenRouter*. The app loads the OpenRouter model list.
4. In **Model**, start typing to search, for example `claude` or `qwen`, and pick a model.
IDs look like `vendor/model`. If the list does not load, type the ID by hand (copy it from
the model page on openrouter.ai).
5. Paste the key in **Personal API key** and press **Save**.
Pick a model that supports **tool calling**: Pi needs tools to read and edit files.
## Other ways to give the key
- **Installation-wide:** set `OPENROUTER_API_KEY` in `.env` (Docker or Podman, then
`docker compose up -d`) or in the shell before starting `rightcommit`. It is used by accounts
without a personal key.
- **Pi login:** run Pi as shown in [HOW_TO_CONFIGURE_PI.md](HOW_TO_CONFIGURE_PI.md#2-pi-login)
and type `/login openrouter`. A Pi login takes priority over the personal key.
## Good to know
- **No `web_search`:** OpenRouter has no built-in web search, so Pi does not get the
`web_search` tool. `web_fetch` still works, so the agent can read pages you name.
- **Limits:** OpenRouter applies the guardrails and provider restrictions set on your key.
- **Costs:** the FinOps panel uses OpenRouter's public prices for its estimates.