AgentSync Docs

Self-Hosting

Run the reference coordinator on your own Cloudflare account

The reference coordinator (apps/agentsync-coordinator) is a Cloudflare Worker with a per-repo Durable Object as the arbiter. It's the reference implementation of the coordinator API, MIT licensed, and free to self-host on your own Cloudflare account forever — no RemoteHost account, no billing, no strings.

The Durable Object's single-threaded execution makes claim-granting naturally linearizable, and lease expiry uses Durable Object alarms rather than setInterval, so it keeps working correctly across hibernation.

Deploy it

git clone https://github.com/remotehostai/agentsync.git
cd agentsync/apps/agentsync-coordinator
pnpm install
npx wrangler deploy

This publishes the worker to <name>.<your-subdomain>.workers.dev.

The worker deploys open (no auth) by default. Before it's reachable from outside your own machine, set an auth token:

npx wrangler secret put AUTH_TOKEN

Point your repo at it

agentsync init --coordinator https://<name>.<your-subdomain>.workers.dev

Or set coordinator.url directly in .agentsync/config.yaml. Every actor working in the repo now gets the deterministic guarantee: claims are arbitrated in a total order, and a change that violates a live claim cannot land on a protected branch. See Protocol for the full contract.

Free forever, self-hosted

Everything you need for the deterministic guarantee is open source and free, run on your own infrastructure:

  • The agentsync CLI (init, task, claim, status, conflicts, ready, merge-plan, commit, hooks).
  • Autonomous skill-file authoring locally — the daemon that keeps a repo's skill files current.
  • Plain-git advisory mode for a zero-setup trial (labeled non-deterministic, since there's no arbiter).
  • The reference coordinator, self-hosted on your own Cloudflare account.

What RemoteHost adds

RemoteHost is the premium host for the same protocol — not a proprietary fork of the coordination layer. There's no licensing gate on the coordinator contract itself; RemoteHost monetizes by being the best place to run a swarm once it outgrows one machine:

  • A hosted coordinator with zero setup — no Cloudflare account, no ops.
  • Multi-user shared live environments, where a team's humans and agents work in the same place at once.
  • Cross-member, cross-device real-time sync inside a team.
  • A live dashboard — who's touching what, conflict heat, the merge queue.
  • Org policy — protected paths, approval gates, an audit trail.
  • Fleet orchestration — spawn N agents from a task list, automated merge ordering, analytics.

If your swarm still fits on one machine, self-hosting the reference coordinator gets you the full guarantee for free.

On this page