Everything you need to know about ContextSync CLI commands and features.
The fastest way to install ContextSync on macOS or Linux:
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.
Get up and running in under a minute:
# Login to your account
contextsync login
# Initialize and configure your AI tools
contextsync init
# Start the MCP server (usually auto-started by AI tools)
contextsync server
contextsync loginLogin to your ContextSync account using email verification. You will receive a 6-digit verification code via email.
contextsync login
After verification, your account will be linked to your device.
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 structurecontextsync init
Pro users can configure unlimited tools. Free tier is limited to 2 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:
contextsync server
This is typically called automatically by AI tools configured with ContextSync.
contextsync upgradeUpgrade to ContextSync Pro. Opens the pricing page in your browser.
contextsync upgrade
Pro unlocks unlimited tools, permanent memory, and cloud sync.
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.
# Edit rules file
contextsync rules edit
# Display current rules
contextsync rules show
# Sync rules to all tools
contextsync rules sync
Rules file is located at ~/.contextsync/rules.md
contextsync memoriesManage your stored memories.
# List all memories
contextsync memories list
# Show a specific memory
contextsync memories show <id>
# Delete a memory
contextsync memories delete <id>
contextsync versionPrint version information.
contextsync version
contextsync updateUpdate ContextSync CLI to the latest version from GitHub releases. This command will:
contextsync update
If installed in a system directory like /usr/local/bin, you may need to run with sudo.
ContextSync integrates with the following AI coding tools via MCP protocol:
~/.contextsync/
├── config.json # Configuration file
├── rules.md # Coding rules
├── data/
│ └── memories.db # SQLite database
├── backups/ # Backup directory
└── logs/ # Log files
--config string Config file (default is $HOME/.contextsync/config.json)
-v, --verbose Verbose output
If you have questions or encounter issues: