A hardened dev box for coding agents: what is on the image and what is not
TL;DR — Idlefy Dev Boxes have a new operating-system option, “Ubuntu 24.04 — Hardened for AI agents”: a personal cloud machine in your own AWS account, built so a coding agent can work on it unattended, with Claude Code and Codex preinstalled. Nothing to take: the user the agent runs as has no root and no cloud credentials, and only SSH is open from outside. Nothing to babysit: the box is stopped until you lease it and stops itself when the lease ends. Yours: it runs in your AWS account, Idlefy never logs in to it, and you sign in to the agents with your own accounts. What stays within reach: the agent can read, change and send everything in its home directory, so keep that to one project. The product page is dev boxes for AI coding agents; this post is the reasoning behind it.
Why I wanted a machine with nothing on it for the agent to take
I run Idlefy. Most people run coding agents on a laptop, in a terminal, approving step after step. That works until you want the agent to do a long job while you do something else. Then two worries arrive together.
The first is the box you forget: an agent machine started on Friday afternoon keeps billing through the weekend.
The second is worse. Everything the agent can read, it can be told to send somewhere. On a laptop that is the AWS CLI profile, the SSH keys, the browser sessions and every token in the home directory. Approving each step is what stands between a confused agent and all of that, and it is exactly what you stop doing when you walk away.
I did not want a better way to watch the agent. I wanted a machine where most of what is worth stealing is simply not there, and that turns itself off when I forget it. That does not make an unattended run free of risk — the sections below say what the agent can still reach — but it changes what a bad run can cost.
What threat is this about?
Credential theft, by an agent that has been told to do the wrong thing or by a package it installs. Neither needs an exploit: the agent reads what your user can read. A prompt injection in a README, an issue or a web page can steer it; a malicious post-install script can launch it with its checks turned off and ask it to collect every credential-looking file on disk.
In 2025 two npm attacks went after exactly that on developer machines: cloud keys, GitHub tokens and, in one of them, the cloud instance metadata endpoint. I described both, with sources, in the post about a customer’s dev VMs, so I will not repeat them here.
The defence I chose is to keep what these attacks look for out of reach of the user the agent runs as, rather than to detect them.
What is on the image?
The image is built from the open-source idlefy/vm-platform-aws (opens in a new tab) configuration (Apache-2.0).
- The agent runs as
ubuntu, andubuntuhassudofor exactly two commands:tailscale login, to join your tailnet, andidlefy-share, to publish one local port for a demo. Nothing else. The agent cannot install system packages, change the firewall, add users or read root-owned files. Project dependencies go in Docker. - No cloud role on the machine, and no path to instance metadata for
ubuntuor its containers. Nothing on the box leads to your AWS account unless you copy keys there. - From the internet, only SSH is accepted; your tailnet reaches the box after
tailscale login. SSH is from your IP only by default, key-only, with root login off and fail2ban on. Nothing the agent starts accepts connections from the internet unless it is published withidlefy-share(a command the agent can run too) or tunnelled out over an outbound connection. - Rootless Docker. A container that gets root gets
ubuntu, not the host. - Daily unattended security updates through
unattended-upgrades. Nobody has to patch it. - Claude Code and Codex preinstalled, as their vendors publish them. You sign in with your own Claude account or API key, or your own OpenAI account. Next to them: Node.js, kubectl, helm, werf, gh, uv, yq, ripgrep, zsh, Tailscale and rootless Docker.
I did not want to claim any of this from the build file alone, so we created a box through the product and tried each control from inside and outside.
Checked on a real box: sudo as ubuntu is refused for everything except tailscale login and idlefy-share; the instance metadata service is not reachable by ubuntu or its containers; rootless Docker runs; from outside, only SSH answers.
What is deliberately not on it?
- Nothing ships logs off the box, and there is no runtime detection. A solo developer has no security team to read the output, so the box does not depend on anyone reading a log; the team version below has both.
- No compliance claim. It is a hardened Ubuntu image with the controls listed above, nothing more.
- No configuration agent. No CINC client or anything like it; nothing on the box takes instructions from Idlefy after launch.
- No Idlefy agent. Idlefy starts, stops and deletes the dev box from outside, through the AWS APIs in your own account. It never logs in to the machine: only your public SSH keys go on it.
What can the agent still reach?
Nothing stands between the agent and its home directory. The home directory is the agent’s. It can read, change or delete everything there, including the GitHub token you log in with. Outbound connections are open too: the agent reaches the model API, git and package registries, and can send whatever it can read anywhere.
This is the part to plan around. Keep the home directory to the one project, use a GitHub token limited to that repository, and push your work — the box is disposable; what a token opens is not.
What happens when I forget it?
It stops. A dev box is created stopped. You lease it for the hours you need — an afternoon, a day — and it starts. When the lease ends the box stops: the disk and everything on it stay, and the next lease picks up where you left off. An agent box you forgot on Friday is stopped on Friday.
Model usage is billed by your own Claude or OpenAI account; when the lease ends the box stops, and the agent’s run with it. A stopped box bills only for its disk (and a fixed address, if you chose one). AWS bills it to your account; running costs per size are on the instance cost pages.
A short project? Set a lifetime and the box deletes itself when it is done.
How do I show a client my work?
Run your app on the box and type sudo idlefy-share 3000. Tailscale Funnel (opens in a new tab) gives you an HTTPS address on the public internet that reaches that one port on the box — no domain to buy, no certificate to manage, nothing opened in the firewall. One port at a time; sudo idlefy-share off ends it.
Two things happen once: Funnel is switched on in your Tailscale admin console, and the box joins your tailnet with sudo tailscale login.
The agent can run both commands too, so it can publish a port you did not ask for, as any user with outbound access could tunnel one.
How is the team version different?
The image comes from the same repository a 20-developer remote team runs on, idlefy/vm-platform-aws (opens in a new tab). The team version adds what a team needs and a solo developer does not: an audit trail that leaves the machine, a signed policy every VM verifies, and per-VM AWS access with a permissions boundary. Its runtime detection and alerts live there as well. How that team got there is in Dev VMs instead of laptops.
The repository is independent of Idlefy; this image is built from its solo profile. Idlefy adds the part around it: the image published in nine AWS regions, the box created in your account, the stop when the lease ends.
How do I get one?
- Sign up — the Free plan is enough: one dev box, no credit card.
- The organization owner does the setup once: turns Dev Boxes on, connects AWS keylessly, chooses the regions, machine types and largest disk people may pick, accepts the Dev Boxes terms, and creates the provisioning CloudFormation stack in your AWS console.
- Create the box: an x86 size (with or without an NVIDIA GPU), the operating system “Ubuntu 24.04 — Hardened for AI agents”, and your SSH key.
- Lease it, connect with
ssh ubuntu@…, runclaudeorcodex, and sign in with your own account.
The option is offered in the regions where Idlefy publishes the image — today us-east-1, us-east-2, us-west-2, eu-central-1, eu-west-1, eu-west-2, eu-north-1, ap-south-1, ap-northeast-1 and ap-southeast-1; elsewhere the wizard shows it as unavailable. Existing customers update the provisioning stack to the current version first; the wizard shows the option disabled until they do. If your organization keeps an image allowlist, the owner adds it there. It is offered on every plan, including Free, and it is never the default operating system: you pick it.
Questions
Can I run Claude Code with –dangerously-skip-permissions on it?
Yes. The flag changes what Claude Code asks you before it acts, not what the ubuntu user may do on this box. The controls — no root, no cloud credentials and only SSH open from outside — hold in whichever mode the agent runs. What is at stake is the home directory; keep it to one project.
How do I get root on the box?
Sign in as the user admin through EC2 Instance Connect from the AWS CLI, with your own AWS permissions. admin can use sudo; ubuntu, which the agent runs as, cannot beyond its two commands. Direct root sign-in is refused, so a change that needs root is a step you take yourself, on purpose, from your own AWS access.
Is there a GPU or Arm version?
For an NVIDIA GPU, yes: the same image. The option “Ubuntu 24.04 — Hardened for AI agents” is offered for x86 sizes, with or without an NVIDIA GPU. On a size with an NVIDIA GPU it already carries the NVIDIA driver and the NVIDIA Container Toolkit, so the agent can use the GPU as ubuntu, without root, and containers get it with Docker’s --gpus all; CUDA and ML frameworks come with the containers you run. Arm sizes and sizes with another maker’s GPU use the standard images.
Once Dev Boxes are set up, you can also ask Claude Code to create and lease the box for you through the Idlefy MCP server, included in every plan.