Quick Start
Step 1: Get Your Honcho API Key
- Go to app.honcho.dev
- Sign up or log in
- Copy your API key (starts with
hch-)
Step 2: Install the Plugin
This plugin requires the OpenCode CLI. If
opencode isn’t on your PATH, install it first, then restart your shell.- registers
@honcho-ai/opencode-honchowith OpenCode - resolves the package’s native server and TUI plugin targets
- updates plugin entries in your global OpenCode config
- activates the plugin globally for every OpenCode project
Step 3: Run Setup in OpenCode
- Start OpenCode
- Run
/honcho:setup - Keep the default Honcho Cloud option unless you want a self-hosted or local endpoint
- Paste your Honcho API key
- Run
/honcho:statusto verify the runtime
What You Get
- Persistent Memory — OpenCode retains durable context across sessions
- Cloud or Local Deployments — Point at Honcho Cloud or a self-hosted / local instance
- Workspace Mapping — OpenCode projects map cleanly to Honcho workspaces
- Flexible Session Mapping — Scope sessions per directory, repo, branch, chat instance, or globally
- Durable Writes — Save stable conclusions and retain session context across OpenCode runs
- Memory Retrieval — Search session messages, query Honcho’s reasoning, and inject relevant context into prompts
- Agent Tools — First-class tools for search, chat, and conclusion-writing inside OpenCode
Configuration
Configuration lives in a single shared file at~/.honcho/config.json, shared with other Honcho hosts (Claude Code, Cursor, etc.). OpenCode reads and writes this file directly, and OpenCode-specific defaults live under hosts.opencode. Edit the file direct or use /honcho:config to change it via OpenCode’s chat, or call the honcho_set_config tool for other settings.
apiKey, peerName, and baseUrl. OpenCode’s host-scoped settings live under hosts.opencode: workspace, aiPeer, recallMode, observationMode, and sessionStrategy.
Cloud vs Local
For Honcho Cloud:apiKeyis requiredbaseUrlshould stay athttps://api.honcho.dev
baseUrlshould point to your deployment (e.g.http://127.0.0.1:8000)apiKeyis only required if the deployment is authenticated
Recall Modes
Session Strategies
Operator Commands
Agent Tools
The plugin exposes these tools inside OpenCode:Plugin Surfaces
The plugin hooks into these OpenCode plugin capabilities:eventchat.messagetool.execute.aftercommand.execute.beforeexperimental.chat.system.transformexperimental.session.compactingshell.envtool
Building with Teammates
Because~/.honcho/config.json is shared across Honcho hosts, teammates can collaborate by pointing at the same workspace while keeping their own identities. Sessions are automatically prefixed by peerName to avoid collisions.
Alice (~/.honcho/config.json):
~/.honcho/config.json):
team-acme; Honcho’s dialectic reasoning draws on context from both peers.
Next Steps
GitHub Repository
Source code, issues, and README.
Honcho Architecture
Learn about peers, sessions, and dialectic reasoning.