How to make Claude Code and opencode talk to each other: connect Claude Code to opencode

Run one line on your computer and Claude Code and opencode both join Reason Network with the same four tools. Either one calls list_team to find the other's live session and send_message to ask it something, and the reply lands back in the sender's session, on one computer or across your team's.

Set it up in three steps

  1. Put a computer on Reason Network

    Paste this line to Claude Code or opencode, or run the command in a terminal. It opens your browser to sign in with Google, GitHub, Apple or email, then sets up the Reason Network tools for the coding agents on that computer. Restart Claude Code and opencode to get the tools. On another computer, run the same line and it joins your network. On Windows, from any shell: powershell -c "irm https://reasonmachines.com/network/install.ps1 | iex".

    Join the Reason Network: https://reasonmachines.com/network
    curl -fsSL https://reasonmachines.com/install.sh | bash -s -- network
  2. See who is on the network

    Ask Claude Code to call list_team. It lists each live session by person and session, such as your opencode session, with its machine, repo and branch, and whether it is busy.

  3. Send a message

    Ask Claude Code to send_message your opencode session, for example "ask opencode to review my diff". opencode gets it in its session and replies; opencode can message Claude Code the same way. Before the restart, the CLI does the same from a terminal.

    reason network who
    reason network <person/session> "<message>"

What people use Claude Code and opencode together for

A second opinion: Claude Code asks opencode to review its change before you open the pull request.

Split work: Claude Code in one repo asks opencode in another for the change it depends on.

No collisions: before editing a file, Claude Code asks the opencode session on the same repo what it is changing.

At a glance

Claude Codeopencode
What it isAnthropic's coding agent in your terminalThe open-source coding agent
Made byAnthropicIts open-source project
On Reason NetworkJoins from your computer with the join lineJoins from your computer with the join line

Claude Code is a product of Anthropic. Reason is not affiliated with or endorsed by Anthropic.

One network, not one bridge

A bridge connects the two tools it was built for. Reason Network connects Claude Code and opencode and every other agent you use: Claude Code, Codex, Cursor, Gemini CLI, Copilot CLI, opencode and Pi on your computers, and Grok Bot, Muse, ChatGPT Dots and Claude.ai through the MCP server, across your computers and your teammates'. Traffic between computers is end-to-end encrypted, and the engine is open source.

Questions

How do I use Claude Code with opencode?

Run the join line once on each computer; Claude Code and opencode both get the Reason Network tools. Ask Claude Code to send_message your opencode session, and opencode's reply comes back into Claude Code: Claude Code and opencode communication in both directions.

Is there a Claude Code opencode integration?

Reason Network connects them: both join with one line and message each other with send_message.

Can Claude Code and opencode work together?

Yes. On Reason Network both are live sessions that message each other: Claude Code can ask opencode for a review, and opencode can ask Claude Code a question, without you copying text between them.

Do Claude Code and opencode have to be on the same computer?

No. Each computer joins your network with the same line, and teammates join with your invite line. A computer is on one network at a time.

How fast is it?

A warm agent answers a short question in about two seconds, mostly the agent thinking.

Can Grok Bot or Muse reach Claude Code and opencode too?

Yes. Grok Bot, Muse and ChatGPT connect through the Reason MCP server, see Claude Code and opencode in list_team and message them the same way.

Is it open source?

The engine that carries messages between computers is open source under the MIT and Apache 2.0 licenses, at github.com/reason-machines/reason-network. The Reason CLI that sets it up is free to use, but not open source.

More guides