Use an agent to install self-hosted apps on your server

An author had an agent SSH into a home server, install open-source apps in Docker, and wire up a Cloudflare tunnel.

Done with Custom agent· Intermediate· Nov 2026

What they did
They connected a custom agent to a local server over an SSH link carried through a Unix socket tunnel. From there, the agent handled the install of self-hosted tools such as a baby-feeding and diaper tracker or a personal finance app, including the setup work around Docker and config files. It also replaced the manual steps in Cloudflare’s web interface by creating a tunnel to the app.
How it went
The author says this cuts down a lot of the hassle of running these apps yourself, especially the Docker and configuration chores. It also avoids paying $5-$15 per month for each app, though they note the AI subscription can cost about $20 a month and sometimes $100 on larger projects.
Tips
This works best when you already know the server and domain you want to use. If the agent will touch network access, payments, or files that matter, make it stop and ask before continuing.

Try it yourself with Claude Code

Connect to my server at [server address] as [username] and help me self-host [open-source app]. Install it with Docker, keep its data in a persistent directory, and make sure the configuration is saved cleanly. Then set up a Cloudflare tunnel so the app is reachable at [domain or subdomain], and verify that the page loads there. Before you change firewall settings, expose anything publicly, delete files, or complete any payment or submission, pause and show me the exact plan for approval.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.