Setup
Pi and Opencode share one OpenRouter API key.- Create a key from the OpenRouter keys page.
- Paste it under Pi → OpenRouter API Key in Organization → Coding Agents. The same credential also appears under Opencode → OpenRouter API Key.
- Set organization credentials for the team, or add a personal key under Personal to override the organization default.
Models
Pi and Opencode use the same OpenRouter model catalog:
Choose an organization default under Defaults, a personal default in account preferences, or a model for the active chat from the workspace composer.
Using Pi in Workspaces
Choose Pi from the composer’s harness/model picker when creating a chat. Pi can:- Read, write, and edit repository files
- Run shell commands with Replicas command protection
- Accept image attachments
- Persist sessions and tool history across workspace sleep
- Discover provisioned and repository skills through Pi’s global
.agents/skillsdirectory - Run skills explicitly with
/skill:<name>