A developer has moved their AI coding work off a laptop and onto a small home server, and described the whole stack in detail. The result is a set of self-hosted coding agents that pick up tasks from a git forge, run in disposable virtual machines and report back through pull requests. Nothing depends on a public service or a subscription.
The trigger was mundane. A MacBook running several VMs for agents was getting hot and no longer held its battery. The goal became an always-on machine at home, reachable over VPN, where agents could work around the clock.
The hardware and network
The base is a refurbished Dell Optiplex Micro 7010 with a 13th-gen Intel Core i5-13500T and 32 GB of RAM, chosen because the micro chassis is small, quiet and cheap to power. It runs Proxmox, alongside an existing Lenovo ThinkCentre Tiny that also runs Proxmox. Proxmox Datacenter Manager and Pulse watch both hosts.
Each project gets its own VM, and every VM has to be easy to destroy and rebuild. That means zero hand setup.
The network is split into two VLANs. Supporting services such as git and CI/CD sit in one, called srv, and the dev machines sit in another, called dev. A few narrow firewall holes let dev machines reach what they need. A misbehaving agent can’t scan the network for management ports. At worst, a compromised VM can list its neighbors in the dev VLAN and reach the dev web version of whatever it runs.

The services behind it
Technitium handles DNS and DHCP. Any new dev machine registers its hostname and gets a name under a dev subdomain of a domain the developer bought, which also makes SSL certificates possible. Because DHCP broadcasts don’t cross VLAN boundaries and the router has no relay, a small LXC container running dnsmasq relays DHCP between the two networks.
Code lives in Forgejo, with Forgejo Actions for checks. The Forgejo runner sits in a third, fully isolated VLAN, since it executes code pulled from package repositories. It has only a tiny hole to reach Forgejo and register.
Deployments moved out of Forgejo after a design flaw became clear. Forgejo secrets held private SSH keys for production servers, and an agent could have written a workflow that dumped them. Semaphore UI now holds the keys and deploys only through a custom script, triggered by a webhook when a run finishes on the protected main branch. Agents can’t push to main, and every merge is reviewed by hand. A poisoned change could still slip into a build, and the developer admits the setup can’t rule that out.
API keys never reach the VMs at all. Infisical’s agent-vault runs as a proxy in its own LXC container in the srv VLAN, with a vault per dev VM and a trusted CA certificate on each machine. An agent that ignores the proxy simply gets failed requests. The developer plans to replace agent-vault with a wrapper around mitmproxy, since Infisical is steering users toward its hosted platform.
Provisioning and orchestration
A small CLI called kamino creates each environment. It asks for the Proxmox host, the VM size and the repositories to clone, then builds the VM from a Proxmox cloud-init template and configures it with Ansible. It also creates a bot user in Forgejo with collaborator access, fills the vault with the right secrets, and applies dotfiles through chezmoi so a fresh VM opens with the usual tmux setup.
The control layer is a custom orchestrator named tipoca, essentially a Forgejo webhook listener with rules. Work arrives in two ways.
- Immediate tasks: a Forgejo issue labeled status/ready is picked up by a Claude Code session in a new tmux window and git worktree. Labels such as stage/research, stage/plan and stage/implement steer what the agent does. After a crash, the session resumes by the issue’s stable ID.
- Repeating tasks: markdown files under .agents/jobs describe a job, its cron or OnCalendar schedule and its limits, for example at most one pull request and three issues. The idea comes from GitHub Agentic Workflows.
Jobs run with fewer rights, because they may read web pages or unvetted input such as input from Sentry. They use a separate Linux user without sudo and without Forgejo access. They can only ask tipoca to open an issue or a pull request, and tipoca checks the request first. Tipoca also polls Sentry, because nothing in the setup is reachable from the internet, and starts one Claude session per new issue.
Memory and what’s left
Agents write lasting project knowledge into the repository itself: short notes go in AGENTS.md, anything longer goes in a docs folder. That way a destroyed VM loses nothing. Failures send a Pushover notification, and a nightly systemd job pulls dotfiles and Ansible playbooks onto every VM.
The developer calls the whole thing about 99% vibe-coded. Day to day, work happens at the level of Forgejo issues, and a phone app can create them. Only provisioning a new VM still needs the laptop. The developer plans to keep local work on the Mac and send heavy or large projects to the home server. Swapping agent-vault for a mitmproxy wrapper is the next planned change.
Source: Dmitry Kudryavtsev