- Download and set up the OpenCode CLI.
- Sign into Pioneer and get your API key from agent.pioneer.ai/api-keys
- In a fresh terminal, start OpenCode:
- Type
/connectcommand and selectPioneerfrom the drop-down list.

- Add in your Pioneer API key.
- Choose
Pioneer Autoto use Pioneer’s model router. Learn more about our model router here. - To switch between models, use the
/modelscommand and select one from our catalog of 70+ models (and growing).