Skip to main content

OpenCode Mode

Goal

Run OpenCode through Keypress and keep local execution with remote control.

Prerequisites

  • keypress installed
  • 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

Expected Result

Your OpenCode session runs locally and remains controllable from mobile, web, or desktop.

Next Step

Review Session Control Model for handoff behavior.