Skip to Content

opencode

Connect opencode to conciv, and what conciv runs when it is the session's agent.

opencode connects to conciv as an MCP server. In the panel it chats with the models opencode can use.

Connect opencode

Run this once, in any folder:

Terminal
npx @conciv/cli mcp connect opencode

It adds conciv's MCP server, named conciv-hub, to opencode. Under the hood it runs opencode mcp add. On success it prints:

Output
{"ok": true, "data": {"connected": "opencode"}}

Then drive the tab you have open from opencode in your terminal. The walkthrough, from the first prompt to picking a tab and troubleshooting, is in Outside agent.

What conciv runs in the chat

When opencode is the session's harness, conciv runs it on your machine, in your project, with your own login:

What conciv passes opencode
model   opencode/claude-sonnet-4-5   <- the default, unless you pick another

The model menu lists the models opencode reports as usable, newest first. Past opencode sessions in this project show in the session list.

Disconnect

Terminal
npx @conciv/cli mcp disconnect opencode

This stops conciv answering opencode. The conciv-hub entry stays in opencode.json. conciv refuses it until you connect again.

Next steps

  • Harnesses: compare what each harness can do.
  • Approvals: what asks before the agent acts.
  • Pi: the same for Pi.

On this page