{"slug": "self-hosted-software-development-factory", "title": "Self-hosted software development factory", "summary": "A developer built a fully self-hosted, remote software development factory on a refurbished Dell Optiplex Micro 7010 with a 13th Gen Intel Core i5-13500T and 32 GB of RAM, running Proxmox as the base OS and managed alongside a Lenovo ThinkCentre Tiny via Proxmox datacenter manager with Pulse monitoring. The setup runs one virtual machine per project, each hosting agentic harnesses such as Claude Code, with supporting services like git and CI/CD isolated in a separate VLAN from dev machines so a misbehaving AI agent can at worst enumerate other VMs in its own VLAN. The author's stated goal was to move agent workloads off a laptop to an always-on home machine reachable by VPN, with zero manual setup and no dependency on public services or subscriptions.", "body_md": "# Self-hosted software development factory\n\nHow I vibe-coded a remote, agentic, fully self-hosted, software development factory.\n\nRecently, I have described my [vibe-coding setup](https://kudmitry.com/articles/how-i-vibe-code/), and I mentioned there how my MacBook is getting warmer and no longer holding the battery, now that I run a bunch of VMs on it.\nIn that article, I said that it would be cool to buy a machine that will be at home, to which I can VPN from my laptop and monitor my army or LLM agents who do the work for me 24/7.\nWell, I’m glad to say that I have achieved that.\n\nIn this article I would like to describe what have I made, and how it works. With the advent of AI summarization tools, I believe that not many humans will read this, so I guess my main reason for writing this to try to understand myself what have I done and how it works, but also inspire others who still like to read human generated content, to perhaps experiment.\n\nAI is great for doing risky experiments, but at the same time I do see the downsides in the fact that people no longer consume human written content, and every blog post is scraped a thousand times, shredded into tokens, and fed back to users through “AI Overview”.\nYou can check out my other blog post about my AI bipolar disorder: [I think I have AIpolar disorder](https://kudmitry.com/articles/i-think-i-have-aipolar-disorder/).\n\nLastly, this article will be split into sections that build from the ground up, starting with hardware, moving to networking, virtualization, software, and harness. Feel free to skip/skim any section that is not relevant or interesting for you. Enjoy your reading.\n\n## Goals and motivation[#](#goals-and-motivation)\n\nAs I said earlier, my main goal was to get work off my laptop into an always-on machine at home to which I can VPN from anywhere. This machine would run virtual machines (a VM per project) which will run agentic harnesses like Claude code (with an option to expand to more harnesses). Everything needs to be as isolated as possible, and easy to recreate in case of a VM killed by misbehaving. This means zero setup by hand, and as much automation as possible.\n\nOn top of that, every service I use needs to be self-hosted. No dependency on public services, no subscriptions. Aside for custom harness and control, there should be no custom app, and the setup should reuse existing services as much as possible.\n\nThere are many various control panels for agents developed by various people. I explicitly decided against using these because they are most likely vibe-coded or VC-funded. I had the time, and my own vibe-coding abilities, to create something that works for me, rather than building my workflow around a tool by some YouTube influencer.\n\n## Hardware and virtualization[#](#hardware-and-virtualization)\n\nAt the core of everything lays a refurbished Dell Optiplex Micro 7010 with 13th Gen Intel Core i5-13500T, and 32 GB of RAM.\nI tried to find i7, but couldn’t find any in the Micro chassis.\nAnd 32GB already costed me a hefty amount, so 64GB will have to wait for some time in the future.\nI wanted a Micro chassis because it’s small, quiet, and low on power consumption.\nIt runs Proxmox as base OS.\nSince I already owned a Lenovo ThinkCentre Tiny, which also runs Proxmox, I opted for Proxmox datacenter manager to manage both hosts with [pulse](https://pulserelay.pro/) to monitor both.\n\n## Networking[#](#networking)\n\nI had a long debate with myself whether I should put everything in one VLAN or separate services from dev machines, and ultimately decided on the latter. Every supporting service (git, CI/CD, and others; more on them in the next section) run in their own VLAN which is separated from the VLAN where dev machines run. There are tiny holes that allow dev machines to speak to the needed services, but ultimately, a rouge AI agent can’t scan the entire network and find management ports for my CI/CD services or something else. The worst a compromised VM/Agent can do is list all other VMs in its own VLAN, and maybe access the dev web version of whatever the dev machine is running. This complicated things a bit, especially around DNS and a bunch of holes in VLAN ACLs, but it is a cleaner separation.\n\nFor your convenience, going further, I will call the VLAN that hosts services `srv` and the VLAN that runs the dev machines `dev`.\n\n## Services[#](#services)\n\n### DNS and DHCP[#](#dns-and-dhcp)\n\nFirst, I bought a domain. This allows me to get SSL certificates, and rids me of the necessity to remember a bunch of IPs.\n\nThen, inside `srv` VLAN I run [Technitium](https://technitium.com/dns/) which is a light DNS and DHCP server.\nTechnitium is responsible for resolving internal domains, as well as creating a “Magic DNS” for each new dev machine.\nI wanted every new dev machine with a host name of `host` to get a domain under `*.dev.[domain].net` so it becomes `[host].dev.[domain].net`.\nTechnitium is set up as the DHCP server for the `dev` VLAN.\nWhen a dev machine boots, it advertises its host name to Technitium, and it creates a DNS record for it.\n\nHowever, there is one problem with this approach.\nDHCP requests are broadcasts, and broadcasts can’t cross VLAN boundary.\nThis is usually solved by a built-in DHCP relay on the Router, by mine does not have it, so I had to run a small `LXC` in `dev` to act as a relay.\n`dnsmasq` acts as the DHCP relay between `dev` and `srv`.\n\n### Git and CI/CD[#](#git-and-cicd)\n\nI self-host [Forgejo](https://forgejo.org/) as my git repository and UI.\nI also self-host the Forgejo runner that runs the jobs.\nThe runner actually sits in a completely different VLAN, which is completely isolated from the rest of the VLANs (except for a tiny tiny hole to reach out to Forgejo instance to register itself).\nThe reason I did it this way is that runner runs a bunch of code that is downloaded from the internet and package repositories.\nI didn’t want the risk of the runner getting compromised to risk the rest of my network.\n\nIn Forgejo I use Forgejo actions (which are like GitHub Actions) in order to check my code.\nI used to run deploys via Forgejo actions as well, but this meant that Forgejo secrets had private SSH keys to production servers.\n`main` branch is always protected, and deploys happen only from `main` (after I review and approve), but an agent running in a dev VM could still create a workflow that dumps all the secrets (including private SSH keys), and then forward it to whoever instructed it to do so.\nFor this reason, I had to move deploys to [Semaphore UI](https://semaphoreui.com/).\nSemaphore holds the private keys, and it only deploys using a custom deploy script, from a webhook from Forgejo run that finished in `main`.\nSince agents can’t push to `main`, and everything that goes into `main` is reviewed and approved by me, agents do not have access to secrets in Semaphore.\nThey can still slip a poisoned code that gets built into an artifact and deployed, but oh well…\nThe world is far from perfect.\n\n### Secrets and environment variables[#](#secrets-and-environment-variables)\n\nLast, but not least, are API keys and anything else that the agent should not have access to.\nI opted to running [agent-vault](https://github.com/infisical/agent-vault) by Infisical to act as a proxy that hold the API keys and other secrets, so agents never have access to them.\nDuring the initial set up (more on that later), I create and populate a vault for each dev VM with the relevant secrets, and set up the CA certificates on the machine, so everything will trust the proxy.\nStandalone `agent-vault` is no longer the recommended way to use it, and Infisical are pushing you towards using their platform.\nI think my next step will be to ditch `agent-vault` in favor of a wrapper around `mtimproxy`.\n\nIt’s important to note that `agent-vault` is its own LXC container, in a `srv` VLAN.\nThis means that agents can’t bypass it.\nThey can decide to ignore it, but the requests would simply fail as the dev VM never holds any API keys or secrets.\n\n## Control center and VM provisioning[#](#control-center-and-vm-provisioning)\n\nAs I said earlier, VMs are some-what disposable. If they get corrupted or hijacked, I should be able to just destroy them and re-create with as little hassle as possible. This means their creation needs to be configured in code.\n\nFor the initial VM provisioning I used `cloud-init` from a template in Proxmox, and for further provisioning I used [Ansible](https://docs.ansible.com/).\nI also wrote a small control program called `kamino` which orchestrates the `cloud-init` and `ansible` calls.\nAn interactive CLI prompt that runs on my Mac, asks me for the Proxmox host, VM size, and using an admin Forgejo token picks the relevant repository(ies) to clone into the VM.\nIt also creates a special bot user in Forgejo which will be used by the VM and gives it read and write access to the repository as a collaborator.\n\nIt also provisions the `agent-vault` with the relevant secrets (that are stored in a password manager on my laptop), and basically creates an entire development environment.\nUsing `ansible` it provisions the VM, and using `chezmoi` it copies my `dotfiles` into the VM, so the moment I ssh into the VM, I get my `tmux` setup there with all the needed tools.\n\n## Workflow and harness[#](#workflow-and-harness)\n\nMy initial instinct was “let’s vibe-code a custom web interface to interact with my agents in the VMs”.\nBut after carefully considering this, I decided to resort to known and existing tools.\nA custom prefix in `tmux` shows me all the VMs with their agentic runs, similar to what I described in my [previous article](https://kudmitry.com/articles/how-i-vibe-code/) for my local development.\nWhen I’m in a terminal, I hit `prefix J` and I see all the VMs, their `tmux` sessions and all the Claude code sessions: what are they working on and what is their status.\n\nHowever, the idea was to switch to somewhat autonomous development, i.e. - agents can run on their own, and I only review the output. For that, I had to incorporate two things: immediate tasks, and repeating tasks.\n\nImmediate tasks are things I want to work on right now.\nI can always jump into a VM, open a new `tmux` window with Claude in a worktree and start working.\nOr, I can create an issue in Forgejo, label it `status/ready` and a Claude code instance should pick up.\nWith different `stage/*` labels like `stage/research`, `stage/plan`, `stage/implement`, I can further control the agentic flow.\nFor research, the agent will just research an idea I have; plan will generate a plan for it; and implement will, well, write code.\nThese are interactive sessions, and they are living as their own `tmux` windows.\nI can jump into them and view what the agent is doing, or even take control and steer the agent further.\nOr I can comment on the issue or change its labels to steer the agent.\nThe session is live as long as the issue is open.\nIf the VM crashes/reboots, the session will be started with `claude --resume` on the stable ID of the Forgejo issue, so work on an issue is always done with the full context.\n\nFor repeating tasks, I tried to find a good way to handle them.\nI didn’t want to develop custom logic around them, and putting them in Forgejo issues felt hacky.\nSo, inspired by [GitHub Agentic Workflows](https://github.com/github/gh-aw), I decided to write these jobs as markdown files in the repo under `.agents/jobs/<job>.md`.\nThe job has a `cron` or `OnCalendar` pattern, and a description of what it needs to do.\nUsing the concept of [`safe-outputs`](https://github.github.com/gh-aw/reference/safe-outputs/) the job describes what should it’s output be (for example at max one PR, and max 3 issues).\n\nIn order to achieve all that, I had to write a custom harness called `tipoca`.\nIt’s installed on the VM as part of the provisioning by `kamino`, and it’s essentially a Forgejo webhook listener with some rules.\nEvery time something changes in Forgejo (an issue label is changed, a new commit with a periodic job) — `tipoca` picks it up and orchestrates.\n\nFor issues that need work, `tipoca` launches a new `tmux` session with Claude in a worktree, and hand it the issue details.\nClaude can then create more issues and/or open PRs using the Forgejo API, and it’s bot credentials that `kamino` provisioned when I created the VM.\nFor periodic jobs, `tipoca` sets up a [systemd timer](https://kudmitry.com/articles/working-with-systemd-timers/), which when fired also creates a Claude session.\nHowever, jobs are riskier than giving an agent an issue that I wrote.\n\nSince jobs can search the internet or get unvalidated input (for example from a sentry issue over which I don’t have control), they do not run with the same privileges as agents started from an issue.\nInstead, `tipoca` makes sure they run on a different Linux user, without `sudo`, and without access to Forgejo — so they can’t create issues, PRs, or modify code.\nThe only thing they are allowed to do is tell back `tipoca` what they want to do: create an issue or a PR, and `tipoca` using `safe-outputs` method verifies what the job wants to do, and does that for the job.\n`tipoca` makes sure to give the agent a fresh clone of the code, but all the interactions with Forgejo go through `tipoca` rather than Claude.\n\nLastly, I wanted to have a job that will watch Sentry for issues.\nBecause everything in my setup is local, and nothing is reachable from the wild-wide-web, I can’t set up webhooks in Sentry without opting for using something like `ngrok`.\nSo I decided to use `tipoca` for polling Sentry once in a while in order to watch for new issues, and create a Claude instance per issue.\n\n`tipoca` maintains full log, and has a small `status` sub command to tell me what’s going on inside.\nIt’s also responsible for fast-forwarding `main` every time `main` is updated, so the repo copy in the VM is always fresh, and next agent creates a worktree from a fresh copy.\n\nLastly, there is a nightly `systemd` job on each VM that pulls the `dotfiles` and `ansible` playbooks and applies them to the VM, so every change I make to my `dotfiles` or the `ansible` playbooks is always propagated to all the VMs.\nI can, of course, update it manually every time I need — and I did so many times during the development of this system — but once it becomes stable, I just want everything to propagate automatically.\n\nI tested this entire workflow, and I was very happy to see when my agent bot reacts to my PR comments, is able to fix PR checks that failed, close issues, create issues, or run periodic jobs. It’s basically an autonomous remote agentic development factory. I operate at the level of Forgejo issues, but I always have the ability to jump into agent or even the code if and when needed. It’s even possible to engage with this workflow from the phone, since I can install any app that supports Forgejo and create issues from there, without having to build a custom control panel. The only thing that requires my laptop is provisioning a new VM, which anyway sounds stupid to do from a phone on the road.\n\nEvery failure in the workflow, sends a [pushover](https://pushover.net/) notification to my phone.\n\n## Knowledge[#](#knowledge)\n\nWith autonomous agents doing coding and exploration, they need to be able to store knowledge about the project.\nThe internal memory of Claude is good, but it’s fragile.\nIf a VM is destroyed and re-created, all my preferences or things that Claude have learned — are lost.\nTherefor, via `chezmoi`, each VM gets a `~/.claude/CLAUDE.md` root file that instructs it on how to store its memory.\n\nWhen an agent learns something valuable that is worth remembering for future sessions, it will write it into the project’s `AGENTS.md`, as long as it’s short.\nIf it’s longer than a paragraph or two, then it will put a markdown file in `docs/`.\nThis way all the project knowledge is stored inside the project.\n\nAs for global knowledge, I haven’t found a use-case for it yet.\nBut if it becomes an issue, a shared `knowledge` repo where agents from different VMs can open a PR — sounds like a good approach.\n\n## Epilogue[#](#epilogue)\n\nDeveloping this system was a lot of fun, and I got very excited when I saw the first comment by the bot user in Forgejo and Claude code session in a `tmux` pane that resulted from it.\nEven though it was 99% vibe-coded, it still gave me the same level of joy as when I used to write code manually and see some progress.\nI would have never even though of attempting to build something like this without AI, as it would take enormous amounts of free evenings, which would simply make me lose motivation half way.\n\nBut now, I have mini data-center at home, with DNS and DHCP servers, my own Git server, and a harness around agentic coding.\nI am no longer tied to my Mac, and I can simply schedule work for the agents and go about my day.\nI still develop stuff on the Mac locally, and I still follow the same patterns I wrote about in my original article: [How I vibe-code](https://kudmitry.com/articles/how-i-vibe-code/).\nHowever, for every heavy work or big projects, I will be moving to this remote agentic development workflow.", "url": "https://wpnews.pro/news/self-hosted-software-development-factory", "canonical_source": "https://kudmitry.com/articles/self-hosted-software-development-factory/", "published_at": "2026-11-29 23:36:19+00:00", "updated_at": "2026-11-29 23:45:54.016546+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-infrastructure"], "entities": ["Dell Optiplex Micro 7010", "Intel Core i5-13500T", "Proxmox", "Lenovo ThinkCentre Tiny", "Pulse", "Claude Code"], "also_reported_by": [], "takeaway": "Running one Proxmox VM per project with agentic harnesses like Claude Code, and placing git and CI/CD services in a separate VLAN from dev machines, limits a compromised agent to enumerating VMs in its own VLAN rather than reaching management ports.", "recommendation": {"advice": "Isolate agent VMs from supporting services like git and CI/CD in separate VLANs with only narrow holes for required traffic, so a compromised agent cannot scan for management ports.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/self-hosted-software-development-factory", "markdown": "https://wpnews.pro/news/self-hosted-software-development-factory.md", "text": "https://wpnews.pro/news/self-hosted-software-development-factory.txt", "jsonld": "https://wpnews.pro/news/self-hosted-software-development-factory.jsonld"}}