Self-Hosting ConfigSync: Run Your Own Sync Server
ConfigSync's CLI is open source and supports custom API endpoints. Here is how to run your own sync server for full data sovereignty and control.
Why Self-Host?
The hosted ConfigSync service at configsync.dev handles everything — infrastructure, updates, availability, and scaling. For most developers and teams, it is the right choice. But some organizations have constraints that a hosted service cannot satisfy.
Data sovereignty requirements may mandate that all data stays within a specific country or on-premises network. Regulatory compliance may require audit logs with specific retention policies. Air-gapped environments may have no internet access at all. For these scenarios, self-hosting is the answer.
Pointing the CLI at Your Server
The ConfigSync CLI accepts a custom API URL. Once configured, all operations use your server:
The --api-url setting persists in your local configuration file. You set it once and every subsequent command routes to your server automatically.
The API You Need to Implement
ConfigSync's API surface is intentionally small. You need to implement six endpoints:
| Endpoint | Method | Purpose |
|---|---|---|
| /api/auth/login | POST | Authenticate user, return JWT token |
| /api/machines | GET | List registered machines |
| /api/machines | POST | Register a new machine |
| /api/machines/snapshot | POST | Receive encrypted state (push) |
| /api/machines/snapshot | GET | Serve encrypted state (pull) |
| /api/machines/history | GET | List previous push snapshots |
Using the Reference Implementation
The configsync-web project (this website and API) is the reference implementation. You can fork it and deploy to your own infrastructure:
Infrastructure Requirements
A self-hosted ConfigSync deployment needs three components:
For a small team (under 20 developers), a single VM with SQLite and filesystem storage is sufficient. The encrypted snapshots are typically a few megabytes per user. For larger deployments, use a managed database and S3-compatible storage.
Benefits and Tradeoffs
| Factor | Self-Hosted | Hosted (configsync.dev) |
|---|---|---|
| Data location | Your servers/network | Cloudflare global network |
| Maintenance | Your responsibility | Fully managed |
| Customization | Full control | Standard configuration |
| Network access | Can be internal-only | Requires internet |
| Cost | Your infrastructure costs | Free tier available |
| Uptime | Your SLA | Managed availability |
Self-hosting gives you complete control at the cost of operational overhead. You handle backups, updates, monitoring, and availability. For organizations with strict compliance requirements or air-gapped networks, this tradeoff makes sense. For everyone else, the hosted service removes the operational burden so you can focus on development.
Ready to try ConfigSync?
Sync your entire dev environment across machines in minutes. Free forever for up to 3 devices.