Guide ▪ Guides

How to use Gemini CLI and Claude Code together

Gemini CLI and Claude Code are both good terminal agents, and plenty of people run them side by side. This guide covers why you might mix them, the free do it yourself approach, and how to link them with Synapse, including what works for Gemini today and what does not.

Updated 6 min readWritten by the Synapse team
Short answer

You can use Gemini CLI and Claude Code together by giving them a shared notes file, or by linking them with Synapse. A notes file is free and works anywhere, but agents only see what someone wrote down. Synapse finds a running Gemini CLI session automatically, lets Claude Code read Gemini's recent conversation (and the other way round), and lets them message each other. Gemini gets messages through the synapse_inbox MCP tool rather than on its next prompt, and it shows no terminal line when they arrive.

Why use Gemini CLI and Claude Code together

People run Gemini CLI next to Claude Code for ordinary reasons:

  • A second opinion from a different model. Two models trained by different companies tend to miss different things. One builds, the other reviews.
  • Splitting the work. One agent implements, another writes docs or tests in a separate git worktree.
  • Spreading usage. When you hit a limit on one subscription, the other agent can keep going.

The catch is the same as with any two agents: neither knows the other exists. You end up carrying stack traces and decisions between terminals by hand.

The DIY way: a shared notes file and copy paste

The free approach needs no tools.

  1. Create a NOTES.md in the repo.
  2. Add a rule to CLAUDE.md and to Gemini CLI's own instructions: "Before starting, read NOTES.md. After each decision, append one line to it."
  3. When something urgent happens, copy it from one terminal and paste it into the other.
echo "## Decisions" > NOTES.md
echo "- auth: moved session refresh to src/auth/refresh.ts (Claude)" >> NOTES.md

Good: free, local, works with any agent, leaves a record.

Bad: agents see only what someone wrote, and only when they read the file. Notes go stale. Two agents appending at once can collide. And you are still the messenger for anything that just happened.

This is a fine baseline for long-lived decisions. For more on this and the message bus options, see how to make Claude Code and Codex talk to each other. Most of it applies to Gemini too.

The Synapse way

Synapse connects coding agents on your machine to each other, with shared context and messages. Gemini CLI is one of the supported agents. Synapse is what we build, so here is exactly what works for Gemini and what does not.

What works for Gemini CLI

FeatureClaude CodeGemini CLI
Shows up automaticallyYes, from Claude Code's session registryYes, by process scan
Peers can read its contextYesYes
Receives messagesWith the next promptThrough the synapse_inbox MCP tool
Terminal line when context or messages arriveYesNo
Native forks with /sforkYesNo
Can be started from the Synapse Mac appYesYes

In plain words:

  • It shows up. Start gemini in any terminal, tmux pane or the Mac app. Synapse finds it by scanning processes. Nothing to wrap or relaunch.
  • Its context is readable. Link Gemini to Claude Code, and on every prompt Claude Code gets what Gemini said since last time, up to 8,000 characters per link. Transcripts are read from disk.
  • It gets messages through MCP. Gemini does not see messages on its next prompt the way Claude Code and Codex do. It calls the synapse_inbox tool. Ask it to check its inbox, or tell it to do so after each step.
  • No terminal line. Claude Code and Codex print a line when context or messages arrive. Gemini does not, so you will not see a notice in its terminal.
  • No forks. /sfork works for Claude Code and Codex only.

Setup

Download the Synapse Mac app and open it from Applications. On first launch it adds its MCP server, hooks and the synapse skill to installed CLIs, Gemini included, and backs up each config as <file>.bak-synapse. Restart a Gemini or Claude session that was already running so it picks up the change. You can also do this by hand from Settings > Set up.

Prefer the browser workspace? It runs from source on Node 18 or later:

git clone https://github.com/VishiATChoudhary/synapse && cd synapse && node install.mjs && npm start

That opens the canvas at localhost:4747. Local use needs no account.

On the canvas, every live agent is a node, grouped by git repo. Drag from Gemini's ring to Claude Code's node so Claude Code gets Gemini's context, and back again for the other direction. Links are directional and stored in ~/.synapse/edges.json.

Or do it from the CLI:

synapse peers            # find the Gemini agent's name, here gemini-docs
synapse link gemini-docs
synapse read gemini-docs
synapse send gemini-docs "I moved session refresh to src/auth/refresh.ts. Update the auth docs."

Example workflow

  1. Claude Code implements a change in src/auth.
  2. Gemini CLI, linked to Claude Code, writes the docs. Because the link goes from Claude to Gemini, Gemini can read what Claude did with synapse_read.
  3. Claude Code sends Gemini a message when the API changes.
  4. You tell Gemini: "check your synapse inbox and update the docs for anything that changed".
  5. Gemini replies with synapse_send. Claude Code sees that reply on its next prompt and prints a line in its terminal.

From inside Claude Code you can skip the commands and say "connect to the gemini agent and ask what it changed". The /synapse skill and MCP tools handle the rest.

Limits to know

  • Pull, not push. An agent you did not start in the app sees a message on its next prompt or inbox check. An idle Gemini session does not wake up on its own.
  • No file locks. If both agents edit the same files, use separate worktrees. MCP Agent Mail has advisory file leases if you need them.
  • Young project. Synapse is from October 2026 with a small community, Mac first, with an unsigned Windows build.
  • Friends' Gemini agents. If a friend shares a Gemini agent for questions, the answer comes from a tool-less Claude that reads the Gemini conversation, using the owner's Claude usage. See friends.

You can also follow both agents from the iPhone app (TestFlight beta). Every agent on the Mac shows up there, grouped by project.

FAQ

Can Gemini CLI and Claude Code talk to each other?

Not natively. With Synapse, any two linked agents can message each other. Claude Code gets messages on its next prompt, and Gemini CLI reads them through the synapse_inbox MCP tool.

Can Claude Code read what Gemini CLI is doing?

Yes, with Synapse. Gemini CLI is one of the agents whose context peers can read. Link Gemini to Claude Code and Claude Code gets Gemini's recent conversation on every prompt, up to 8,000 characters per link.

Do I have to launch Gemini CLI in a special way?

No. Synapse finds Gemini by scanning processes, so a session started in any terminal or tmux pane shows up. Restart sessions that were running before setup so they pick up the MCP server.

Why does Gemini not show a line when a message arrives?

The terminal line is only available for Claude Code and Codex today. Gemini CLI gets messages through the synapse_inbox MCP tool, so ask it to check its inbox.

Can I fork a Gemini CLI session in Synapse?

No. Synapse forks with /sfork or ⇧⌘F work for Claude Code and Codex only.

Is there a free way to use Gemini CLI and Claude Code together?

Yes. A shared notes file that both agents read costs nothing. Synapse is also free and MIT licensed, needs no account for local use, and its local UI makes no third-party requests.

Link your agents.

Open source and MIT. No account needed on your own machine. Works next to whatever you use today.