Real-time collaborative filesystem for AI agents. Two people, two AI agents, one codebase.
You and your friend can both work on the same project in real-time through your AI agents (Claude, Gemini, etc.). When your friend edits a file, it instantly appears on your computer. When you edit a file, it instantly appears on theirs.
Add this to your AI agent's MCP config:
For Claude Code (~/.config/claude-code/mcp.json):
{
"mcpServers": {
"collabfs": {
"command": "npx",
"args": ["collabfs-mcp@latest"],
"env": {
"COLLABFS_SERVER_URL": "wss://collabfs-server-production.up.railway.app"
}
}
}
}For other AI agents: Same config, just use their MCP configuration location.
Restart your AI agent.
Tell your AI agent:
Start CollabFS session on /path/to/your/project
Your AI will respond with a join code like: purple-tiger-2025-11-18-abc123
Share this code with your friend.
Tell their AI agent:
Join CollabFS with code purple-tiger-2025-11-18-abc123
Download all files to /path/where/they/want/files
- You edit files locally → friend sees changes instantly
- Friend tells their AI to edit files → you see changes instantly
- Works with any file type (code, images, PDFs, etc.)
- No manual session ID configuration needed
You:
You: Start CollabFS session on /Users/me/webapp
AI: 🎉 CollabFS session started!
JOIN CODE: purple-tiger-2025-11-18-abc123
Share this code with your friend!
Friend:
Friend: Join CollabFS with code purple-tiger-2025-11-18-abc123
Friend: Download all files to /Users/friend/webapp
AI: ✅ Connected! Synced 47 files to /Users/friend/webapp
Result: Both of you are now editing the same codebase through your AI agents in real-time.
Your AI agent has these tools:
collabfs_host_session- Start a NEW session and get a join code (host only)collabfs_connect- Join an EXISTING session with a join code (collaborators)collabfs_sync_directory- Load your local files (usewatch=trueandautoSync=true)collabfs_sync_from_crdt- Download all files from sessioncollabfs_read_file- Read a specific filecollabfs_write_file- Write/edit a filecollabfs_list_files- See all files in sessioncollabfs_watch_activity- See what others are doingcollabfs_disconnect- Leave session
- CRDT-based: Automatic conflict resolution for concurrent edits
- WebSocket sync: Real-time updates with 300ms debouncing
- Binary support: Images, PDFs, fonts, media files work automatically
- Persistence: Server snapshots every 5 minutes
- No setup: Just
npx collabfs-mcp@latest- no installation needed
Q: Does this work across different AI providers? A: Yes. Claude + Gemini in the same session works perfectly.
Q: How many people can collaborate? A: No hard limit. Tested with 10+ concurrent users.
Q: What happens if two people edit the same line? A: CRDT automatically merges changes. Both edits are preserved.
Q: Is my code stored on the server? A: Yes, session snapshots are stored on the server. Don't use for proprietary code without self-hosting.
Q: Can I self-host?
A: Yes. Server code is in packages/server/. Deploy anywhere that runs Node.js + Docker.
Q: Does this work offline? A: No. Requires WebSocket connection to server.
"Not connected to CollabFS"
- Host: Run
collabfs_host_sessionto start a new session - Collaborator: Run
collabfs_connectwith the join code from the host
Changes not syncing Make sure:
- Both users are using the same join code
- Same
COLLABFS_SERVER_URLin MCP config - Host used
watch=trueandautoSync=truewhen syncing directory
File not found
Run collabfs_list_files to see what's actually in the session.
Join codes are auto-generated with format: {adjective}-{animal}-{date}-{random}
Examples:
purple-tiger-2025-11-18-abc123golden-dragon-2025-11-18-xyz789
Anyone with the join code can connect to your session. Keep join codes private.
MIT
collabfs/
├── packages/
│ ├── server/ # WebSocket server (deploy this if self-hosting)
│ └── mcp-client/ # MCP client (published to npm as collabfs-mcp)
├── CHANGELOG.md # Version history
├── USAGE_GUIDE.md # Detailed documentation
└── README.md # This file
Current: v1.3.0
- Zero-config join codes (no manual session ID setup)
collabfs_host_sessiontool for starting sessions- Human-readable session IDs
- Binary file support
- Automatic bidirectional sync
- File watcher debouncing
- Server-side persistence
See CHANGELOG.md for full history.
Issues: https://github.com/theonlypal/collabfs/issues
Rayan Pal (@theonlypal)