Everything you need to know about ContextSync — from setup to architecture.
When you use multiple AI coding tools, each one maintains its own isolated memory. Claude Code remembers what you tell Claude, Cursor remembers what you tell Cursor, and Windsurf starts fresh every time. This is called context isolation — and it's the single biggest pain point for developers using AI coding assistants.
The consequences of context isolation:
ContextSync solves context isolation by creating a unified memory layer that all your AI tools share.
ContextSync uses the Model Context Protocol (MCP) to provide shared memory to each AI coding tool. Here's the flow:
--tool parameter, enabling tool-specific validation.When an AI tool starts, it launches contextsync server --tool "Claude Code". The server validates the tool name against your configured list and license tier before starting the MCP connection.
The fastest way to install ContextSync on macOS or Linux. The installer automatically launches login and initialization after downloading:
curl -fsSL https://contextsync.yangqing.one/install | sh
Install via Homebrew on macOS:
brew install contextsync
Download the latest release for your platform from GitHub Releases.
After installation, the setup process is fully automated. Login chains into initialization:
# Login (automatically starts init after success)
contextsync login
That's it. The login command will:
contextsync initIf you need to re-initialize later:
contextsync init
You use Claude Code for complex reasoning and Cursor for fast edits. Without ContextSync, each tool has no idea what the other knows about your project. With ContextSync, architectural decisions you discuss with Claude are immediately available when you switch to Cursor.
You maintain coding standards in a rules file. Without ContextSync, you need to maintain separate copies: CLAUDE.md, .cursorrules, .windsurfrules. With ContextSync, you write rules once in ~/.contextsync/rules.md and they're automatically compiled to each tool's format.
You code on a desktop and a laptop. Without ContextSync, your AI context is trapped on one machine. Pro users can sync memories and rules across up to 3 devices via cloud sync.
Re-explaining your project to each AI tool burns tokens. With ContextSync's shared memory, each tool already has your project context, reducing the tokens needed for each conversation.
contextsync loginLogin to your ContextSync account using email verification. You will receive a 6-digit verification code via email. After successful login, initialization runs automatically.
contextsync login
Login (1/2) chains into init (2/2) automatically — no manual steps needed.
contextsync logoutLogout from your ContextSync account on this device.
contextsync logout
contextsync initInitialize ContextSync and configure all detected AI coding tools. This command will:
~/.contextsync directory structure--tool validationcontextsync init
Free tier users see an interactive selector to choose which 2 tools to configure. Pro users can configure all tools.
contextsync statusShow current status including version, account, license tier, device info, memory stats, and configured tools.
contextsync status
contextsync doctorRun diagnostics to check your ContextSync installation, configuration, and detected AI tools.
contextsync doctor
Use this command to troubleshoot issues with your installation.
contextsync serverStart the Model Context Protocol (MCP) server. This provides tools and resources for AI coding assistants:
The server accepts a --tool flag for license validation:
contextsync server --tool "Claude Code"
The --tool flag is set automatically by each AI tool's MCP configuration. It validates that the tool is in your configured list before starting.
contextsync upgradeUpgrade to ContextSync Pro. Opens the pricing page in your browser.
contextsync upgrade
Pro unlocks unlimited tools, permanent memory, cloud sync, and up to 3 devices.
contextsync activate <license-key>Activate a Pro license key on your device.
contextsync activate YOUR_LICENSE_KEY
contextsync rulesManage your coding rules. Rules are synced across all configured AI tools automatically via a background daemon.
contextsync rules edit
contextsync rules show
contextsync rules sync
Rules file is located at ~/.contextsync/rules.md. Changes are auto-compiled to CLAUDE.md, .cursorrules, .windsurfrules, etc.
contextsync memoriesManage your stored memories.
contextsync memories list
contextsync memories show <id>
contextsync memories delete <id>
contextsync versionPrint version information.
contextsync version
contextsync updateUpdate ContextSync CLI to the latest version from GitHub releases.
contextsync update
If installed in a system directory like /usr/local/bin, you may need to run with sudo.
ContextSync uses a local-first architecture built on the MCP standard:
~/.contextsync/data/memories.dbcontextsync server --tool "ToolName" as a child process via stdio~/.contextsync/rules.md and auto-compiles to tool-specific formats~/.contextsync/tools.enc) + cloud API ensure only configured tools can startEach AI tool connects independently to the same SQLite database through its own MCP server instance. There is no single point of failure — if one tool's server crashes, others continue working.
ContextSync integrates with the following AI coding tools via MCP protocol:
~/.contextsync/
├── config.json # Configuration file
├── rules.md # Coding rules (single source of truth)
├── tools.enc # Encrypted tool list (AES-GCM)
├── data/
│ └── memories.db # SQLite database with FTS5
├── backups/ # Backup directory
└── logs/ # Log files
--config string Config file (default is $HOME/.contextsync/config.json)
-v, --verbose Verbose output
If contextsync server --tool "ToolName" fails with "Tool not configured", it means the tool is not in your configured list. Run contextsync init to reconfigure your tools.
Free tier supports a maximum of 2 AI tools. If you need more, upgrade to Pro with contextsync upgrade to unlock all 10 tools.
Make sure the background daemon is running. Check with contextsync doctor. The daemon watches for changes to ~/.contextsync/rules.md and auto-compiles them.
Free tier supports 1 device. If you've already registered on another device, remove it from your dashboard first. Pro supports up to 3 devices.
Memory saving is a Pro feature. Free tier has read-only access to memories with 14-day retention. Upgrade to Pro to save new memories permanently.
If you have questions or encounter issues:
contextsync doctor for automated diagnostics