Getting started
agentsync is a fast, portable CLI tool for synchronizing AI agent configurations across multiple coding assistants using symbolic links.
Installation
Section titled “Installation”Node.js Package Managers (Recommended)
Section titled “Node.js Package Managers (Recommended)”If you have Node.js (>=18) installed, the easiest way to install AgentSync is through a package manager.
Global Installation
Section titled “Global Installation”# Using npm
npm install -g @dallay/agentsync
# Using pnpm
pnpm add -g @dallay/agentsync
# Using yarn (Classic v1)
yarn global add @dallay/agentsync
# Using bun
bun i -g @dallay/agentsyncOne-off Execution
Section titled “One-off Execution”# Using npx (npm)
npx @dallay/agentsync apply
# Using dlx (pnpm)
pnpm dlx @dallay/agentsync apply
# Using dlx (yarn v2+)
yarn dlx @dallay/agentsync apply
# Using bunx (bun)
bunx @dallay/agentsync applyFrom GitHub Releases
Section titled “From GitHub Releases”Download the latest release for your platform:
macOS (Apple Silicon)
Section titled “macOS (Apple Silicon)”curl -LO https://github.com/dallay/agentsync/releases/latest/download/agentsync-aarch64-apple-darwin.tar.gztar xzf agentsync-aarch64-apple-darwin.tar.gzsudo mv agentsync-*/agentsync /usr/local/bin/Linux (x86_64)
Section titled “Linux (x86_64)”curl -LO https://github.com/dallay/agentsync/releases/latest/download/agentsync-x86_64-unknown-linux-gnu.tar.gztar xzf agentsync-x86_64-unknown-linux-gnu.tar.gzsudo mv agentsync-*/agentsync /usr/local/bin/From Source (Requires Rust 1.89+)
Section titled “From Source (Requires Rust 1.89+)”If you have Rust (1.89+) and Node.js (22.22.0+) installed, you can install directly from crates.io or from the repository:
# From crates.io
cargo install agentsync
# From GitHub
cargo install --git https://github.com/dallay/agentsyncBasic Usage
Section titled “Basic Usage”1. Initialize Configuration
Section titled “1. Initialize Configuration”New Projects
Section titled “New Projects”Run init in your project root to create the default structure:
agentsync initThis creates a .agents/ directory with an initial agentsync.toml and an AGENTS.md file.
Existing Projects with Agent Files
Section titled “Existing Projects with Agent Files”If you already have agent configuration files (like CLAUDE.md, .cursor/, or .github/copilot-instructions.md), use the interactive wizard:
agentsync init --wizardThe wizard will:
- Scan your project for existing agent-related files — instruction files (CLAUDE.md, .windsurfrules, OPENCODE.md, etc.), skill directories (.claude/skills/, .cursor/skills/, .codex/skills/, and more), command directories (.claude/commands/, .gemini/commands/, .opencode/command/), and MCP configurations
- Let you select which files to migrate to
.agents/ - Migrate skills from any detected agent into
.agents/skills/(with collision detection — duplicates are skipped with a warning) - Migrate commands into
.agents/commands/as the canonical location - Note MCP configs found in agent directories and suggest manual migration to
[mcp_servers]in your config - Optionally create backups of your original files (with confirmation)
- Generate a configuration that manages everything with symlinks
This makes it easy to transition from manual file management to AgentSync — even if you already have skills, commands, or configs spread across multiple agent directories!
2. Configure your Agents
Section titled “2. Configure your Agents”Edit .agents/agentsync.toml to define which assistants you use. By default, it includes configurations for Claude Code, GitHub Copilot, Cursor, Codex CLI, and a root AGENTS.md target.
[agents.claude]enabled = true
# ... configuration ...Optional: Limit default agents
If you work with many agents but only want a subset to run by default, add the default_agents field:
# Only these agents will run when using 'agentsync apply' without --agentsdefault_agents = ["copilot", "claude"]
[agents.copilot]enabled = true
[agents.claude]enabled = true
[agents.gemini]enabled = true # Enabled, but won't run by defaultSee Configuration Reference for more options.
3. Apply Symlinks
Section titled “3. Apply Symlinks”Create the symbolic links in your project root:
agentsync applyThis will create files like CLAUDE.md and .github/copilot-instructions.md that point back to your single source of truth in .agents/.
4. Integration with pnpm/npm
Section titled “4. Integration with pnpm/npm”We recommend adding the apply command to your prepare script to ensure symlinks are always present for your team:
{ "scripts": { "prepare": "agentsync apply || true" }}Note:
|| trueensures the install process does not fail ifagentsyncis not yet installed, such as on a fresh clone or in CI environments.
Next Steps
Section titled “Next Steps”- Learn more about Configuration Options
- Explore MCP Integration
- See the CLI Reference
- Learn about Skills — how to install, author, and manage AgentSync skills (SKILL.md manifest, registry, and CLI usage)