Skip to main content
Glama

Gemini <-> Claude Sync (gemini-claude-sync)

Zero-dependency Node.js Plugin + MCP Server + CLI for bidirectional (both-side) chat history sync, import, and export across:

  • Gemini CLI (~/.gemini/tmp/*/chats/session-*.jsonl)

  • Antigravity CLI (~/.gemini/antigravity-cli/brain/*/transcript.jsonl)

  • Gemini Desktop App / Gemini Web (Google Takeout MyActivity.json & JSON exports)

  • Claude Code (~/.claude/projects/*/*.jsonl + ~/.claude/history.jsonl)

  • Claude Desktop (claude_desktop_config.json MCP + conversations.json export/import + Markdown)

Supports SHA-256 content-hash deduplication, automatic state backups, dry-run previews, and email-account profile binding (geminiEmail <-> claudeEmail).


Install from Plugin Marketplaces

1. Claude Code / Claude Plugin Marketplace

This repository ships .claude-plugin/marketplace.json, .claude-plugin/plugin.json, and .mcp.json:

/plugin marketplace add Happyjainmatigarg/gemini-claude-sync
/plugin install gemini-claude-sync@gemini-claude-sync

2. Gemini CLI Extension

This repository ships gemini-extension.json:

gemini extensions install https://github.com/Happyjainmatigarg/gemini-claude-sync

3. Antigravity Plugin

Clone or copy into ~/.gemini/config/plugins/gemini-claude-sync/ (or .agents/plugins/gemini-claude-sync/). Antigravity auto-discovers plugin.json, mcp_config.json, hooks.json, rules/AGENTS.md, and skills/*/SKILL.md.

4. Claude Desktop (Electron App)

Run the built-in installer to merge the stdio MCP server into %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

node src/cli.js install-claude-desktop

Then restart Claude Desktop.


Related MCP server: Dev Tool Config Sync MCP Server

Email-Account Sync (Gemini Desktop/Web <-> Claude Desktop)

  1. Bind your email profile (auto-detects Google email from ~/.gemini/google_accounts.json):

    node src/cli.js profile
    node src/cli.js set-profile --gemini-email you@gmail.com --claude-email you@example.com
  2. Import Gemini Desktop App / Web history (Google Takeout MyActivity.json):

    node src/cli.js import-takeout --file /path/to/MyActivity.json --dry-run
    node src/cli.js import-takeout --file /path/to/MyActivity.json
  3. Two-way sync (including a Claude Desktop conversations.json export):

    node src/cli.js sync --file /path/to/conversations.json --dry-run
    node src/cli.js sync --file /path/to/conversations.json --markdown

Exported Claude Desktop bundles are saved to ~/.gemini-claude-sync/exports/latest-claude-desktop.json.


MCP Tools (10) & Resources (2)

Tool

Description

sync_status

Counts, active email profile, pending sync items, and paths

list_conversations

List conversations across Gemini CLI, Antigravity, Claude Code, and exports

read_conversation

Read normalized messages for a conversationId

search_conversations

Keyword search across titles and message text on both sides

export_gemini_to_claude

Export Gemini/Antigravity chats to Claude Code + Claude Desktop JSON/Markdown

import_claude_to_gemini

Import Claude Code or Claude Desktop conversations.json into Gemini CLI

import_gemini_takeout

Import Google Takeout MyActivity.json / Gemini Web JSON into both sides

sync_bidirectional

Full two-way sync with content-hash deduplication

get_account_profiles

View configured geminiEmail <-> claudeEmail profiles

configure_account_profile

Bind Google/Gemini and Claude email logins to a profile

Resources: sync://status, sync://conversations.


Testing

Requires Node.js >=20.0.0 (no npm install needed):

npm test

See docs/GUIDE.md for the full step-by-step guide.

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Enables conversation history sharing between ChatGPT and Claude with secure multi-user support. Allows users to save, load, search, and manage conversations across different AI platforms with cloud deployment options.
      5
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Bridges Claude Code terminal sessions with Claude Chat by exposing session logs as tools, enabling seamless context transfer and two-way communication via a cooperative inbox and optional Google Drive sync.
      98 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Desktop to synchronize and manage your CLI setup (skills, settings, sessions, projects) across machines via encrypted Google Drive, with conflict resolution and version history.
      GPL 3.0