clodfarm
A self-hosted farm of Claude Code agents that splits missions into sub-agents and paces them on each account's real 5-hour and weekly usage.
At a Glance
About clodfarm
clodfarm is an open-source (MIT) project by Matan Kotick, creator of thetowers.ai, that runs Claude Code agents around the clock in a Docker container. You give your Claude work from the Claude app on your phone, and it either does the job or splits it into sub-agents, each on its own git branch. The latest release listed is v1.13.0, which adds an X connector and lets your computer's sessions join the farm.
What It Is
clodfarm is an operations layer for Claude Code. Each Claude on the farm is one person's account, kept reachable through Remote Control, and sub-agents run as headless claude -p sessions in their own git worktrees. A web UI shows every Claude, its sub-agents and its usage, and the same CLI is used by you and by the Claudes. State lives in a SQLite file on a single box or in a shared DynamoDB table when several boxes and accounts form one farm.
How the work flows
A parent Claude starts sub-agents with clodfarm spawn, and any account with free budget can run them unless a job is pinned to a specific Claude. When a sub-agent finishes, its branch is rebased onto main and the configured verify command runs, so main moves only if the check passes. Otherwise the sub-agent is resumed with the failure output. Claudes can message each other, and schedules can start work from cron lines, intervals or one-off times.
Budget pacing
A budget governor decides per account how many sub-agents may run. It uses usage reported by Claude Code and by a probe when a Claude logs in. By default agents stop at 80% of the weekly window and stay under 85% of any 5-hour window, and API-key mode uses a daily dollar cap instead.
Business connectors and other models
The README documents connectors for Stripe, Google Ads, X and Blender, plus an optional AWS apps role. Apps are limited to serverless services behind a permissions boundary and a monthly budget lock. Dashboards, whiteboards, a logged-in browser, Slack control and a planner with a goal are also described. Bots can run Claude Code on OpenAI, xAI, Google, Groq, OpenRouter or Ollama models.
Setup path
Install with a one-line script on any Docker host, or deploy to AWS with a CloudFormation script that needs no inbound ports. Then log in and talk to the farm from the Claude app. The farm also works as a remote MCP server, so Claude Code on a laptop can start sub-agents on it. The README notes that on a subscription it is meant for your own projects on your own login.
Community Discussions
Be the first to start a conversation about clodfarm
Share your experience with clodfarm, ask questions, or help others learn from your insights.
Pricing
Open Source (self-hosted)
clodfarm core is MIT-licensed and self-hosted; runs on your own Claude subscription and infrastructure (external costs).
- MIT License
- Self-hosted in a container
- Runs on your own Claude subscription (external cost)
- Optional AWS deployment in your own account (external cost)
Capabilities
Key Features
- Sub-agents on separate git branches and worktrees
- Budget governor paced on real 5-hour and weekly usage
- Merge to main only when the verify command passes
- Talk to Claudes from the Claude app via Remote Control
- Multi-box, multi-seat farms via a shared DynamoDB table
- Claude-to-Claude messaging
- Cron, interval and one-off schedules
- Live dashboards and whiteboards
- Logged-in shared browser
- Slack integration
- Stripe, Google Ads, X and Blender connectors
- Optional AWS apps role with permissions boundary and budget lock
- Bots for OpenAI, xAI, Gemini, Groq, OpenRouter and Ollama models
- Remote MCP server for Claude Code on a laptop
- Notifications via ntfy, Slack or Discord
- Live farm upgrades without stopping agents
