OpenCode Mode
Goal
Run OpenCode through Keypress and keep local execution with remote control.
Prerequisites
keypressinstalled- Node.js 20+
- OpenCode-compatible provider account (configured in OpenCode)
Install OpenCode CLI
npm install -g opencode-ai
Sign Up and Authenticate
OpenCode manages provider auth in its own config file. Configure your provider/API key in:
~/.config/opencode/opencode.json
Then run a Keypress setup check:
keypress connect opencode
Start OpenCode Mode
keypress opencode
Verify Setup
opencode --version
keypress connect opencode
Official Links
- OpenCode docs: https://opencode.ai/docs/
- OpenCode config docs: https://opencode.ai/docs/config/
Expected Result
Your OpenCode session runs locally and remains controllable from mobile, web, or desktop.
Next Step
Review Session Control Model for handoff behavior.