Your first sync
This is the greenfield path: start clean, end with an MCP server live in two agents. About five minutes.
-
Create
~/.agentsync/and its layout.Terminal window agentsync init -
Register the agents you use.
Terminal window agentsync agent add claudeagentsync agent add opencode -
Add an MCP server once — it will fan out to both agents.
Terminal window agentsync mcp add github \--command npx \--args "-y,@modelcontextprotocol/server-github" -
Preview before writing anything. Always safe; never touches disk.
Terminal window agentsync apply --dry-run -
Apply for real.
Terminal window agentsync apply
Confirm it landed
Section titled “Confirm it landed”The one server you added now lives in both agents’ native configs, each in its own shape:
jq '.mcpServers.github' ~/.claude.jsonjq '.mcp.github' ~/.config/opencode/opencode.jsonWhat just happened
Section titled “What just happened”flowchart LR
SRC["~/.agentsync/mcp/github.toml<br/>(one file you own)"]
SRC -->|apply| CLAUDE["~/.claude.json<br/>.mcpServers.github"]
SRC -->|apply| OC["opencode.json<br/>.mcp.github"]
You wrote one small TOML file. apply rendered it into each agent’s native
schema — Claude’s mcpServers, OpenCode’s mcp (with its different transport and
command shape). That’s the fan-out.
Next steps
Section titled “Next steps” The daily loop The four commands you'll actually use day to day.
Add a plugin Install once from a marketplace; every agent gets the components it understands.
Reference a secret Stop hard-coding tokens. Pull them from an age-encrypted vault at apply time.
Already have configs? Import an existing Claude / OpenCode setup instead of retyping it.