Dev box for AI coding agents in your own AWS account: setup and limits
Short answer: To run an AI coding agent such as Claude Code or Codex away from your laptop, give it its own EC2 instance in your AWS account, with SSH open only to your IP and none of your laptop’s credentials on it. Idlefy Dev Boxes create that machine, keep it stopped until someone leases it, and stop it when the lease ends. How it compares with the other options, setup steps and limits are below.
What is a dev box?
A dev box is a personal development machine that runs in a cloud account instead of on a laptop. In Idlefy, a dev box is an ordinary on-demand EC2 instance created in your organization’s own AWS account, with your public SSH keys on it and its own security group. It is created stopped. You lease it for a set time, it starts, you connect over SSH, and when the lease ends it stops. The disk and its contents stay for the next lease, and a stopped box still costs its disk. AWS bills the machine to your account. Idlefy has no separate dev-box fee: a box takes a slot in the plan’s virtual machine (VM) limit, and a slot past the plan’s included VMs bills at the ordinary extra-VM rate. Free and Basic include one dev box, and Pro has no separate dev-box cap. Dev Boxes are AWS only. See the pricing page for plans.
Why run an AI coding agent on a separate machine?
A separate machine keeps an AI coding agent away from your laptop’s credentials and personal files. An agent running on your laptop runs as you, so it can read what you can read: SSH keys, cloud profiles, browser sessions and documents. On a dev box the agent sees only what you put there. You install the agent over SSH as on any Linux server, and Idlefy does not install or run it. This separates the agent from your laptop and does not limit what the agent does on the box. Outbound access stays open, and the token the agent logs in with sits on the box, so use a token you can revoke and keep production credentials off the machine. Review the agent’s work as carefully as you would anywhere else.
How does a dev box compare with hosted environments, self-hosted platforms and plain EC2?
An Idlefy Dev Box is the option that keeps the machine in your own AWS account, stops it at a time a person set, and leaves you no platform to operate.
| Option | In your AWS account | Stops on your timer | Nothing to build |
|---|---|---|---|
| Idlefy Dev Box | Yes | Yes | Yes |
| Hosted environment | No | Vendor’s options | Yes |
| Self-hosted platform | Yes | Varies | No |
| Plain EC2 | Yes | If you build it | No |
A hosted environment runs in the vendor’s cloud, with the stop options the vendor offers. A self-hosted platform leaves you the control plane and its templates. Plain EC2 leaves you the automation. Idlefy Dev Boxes suit a small AWS team with no platform engineer that wants one personal machine per developer or agent. The code stays on a disk in your account, AWS bills you directly, and setup is a one-time job for the organization owner.
How do you set up a dev box in your own AWS account?
An organization owner sets this up once, and it needs two CloudFormation stacks:
- Enable Dev Boxes for the organization. It is off by default.
- Connect AWS without access keys through the
Idlefy-Managestack. - Choose the allowed regions, the exact machine types and the largest disk.
- Accept the Dev Boxes terms.
- Create the
Idlefy-Provisionstack in the AWS console.
After that, anyone the owner allowed creates a box in a short wizard: where and size, details, who can reach it, review. Creation usually takes 40 to 90 seconds. An optional lifetime of 3, 7 or 30 days deletes the box and its disk when it runs out, after any live lease ends.
Who can reach a dev box by default?
By default, only SSH from the IP address of the person who created the box can reach it. Each box has its own security group, and the access rules on the box become that group’s inbound rules: a /32 for IPv4 or the /64 for IPv6. When your address changes, you update the rule from the box page. The organization owner sets a policy for rules open to the whole internet. The default allows them only on single ports TCP 80 and TCP 443, so SSH from 0.0.0.0/0 is refused on a new box unless the owner changed the policy. New boxes get an encrypted gp3 root disk and require IMDSv2.
A rule added by hand in the AWS console is removed at the next access change made through Idlefy and reported in the box’s history. Nothing watches for changes in between, so a hand-added rule stays until then.
Can Idlefy access the inside of a dev box?
No. Idlefy has no access inside a dev box and runs no agent of its own on it. Its role cannot open a session on the instance, push a key to a running machine or read its console output. Your public SSH keys are written once, by cloud-init at creation, and Idlefy never changes them afterwards. Idlefy never holds a private key.
The provisioning role is broader than the role that starts and stops existing VMs. It creates and deletes resources, within the regions, machine types and disk cap the owner set, and Idlefy deletes only resources carrying its own tags. Every create, delete, access change and lifetime extension is recorded with who did it. Each box has a history page, and the organization-wide Activity Log is on the Pro plan.
Can you turn an existing EC2 instance into a dev box?
Yes, on AWS. An organization owner picks the instance, you run the hand-over commands in your own AWS account, and it becomes an ordinary dev box. Idlefy and agents never run those commands. The inbound TCP and UDP rules from address ranges are copied, up to 20, into an Idlefy-owned security group, including anything open to the whole internet, so a hand-over does not tighten what was open: tighten the rules on the box page afterwards. Other inbound rules and any outbound restrictions are not carried over, and the review step lists them before you confirm. Once handed over, deleting the dev box destroys the machine and its disk. Removing the tag hands the machine back: Idlefy closes the dev box after a short check and does nothing to the machine. Some machines are refused, among them those with extra disks, Spot, a customer-managed disk key, more than one fixed address, or a type or disk outside the allowed limits.
What does a dev box not protect against?
A dev box reduces how long a machine is reachable and who can reach it. It does not make the software on it safe.
- While it runs, it is an ordinary internet-reachable server for the sources you allowed.
- You still patch the OS and your software, because Idlefy cannot touch the inside.
- A leaked private key plus an allowed IP still gets in. Idlefy cannot revoke a key inside a machine, so rotating one is your job, on the machine itself.
- Secrets on the box can be read by anything running there, an agent included.
- A budget can refuse new leases and new boxes, but it never stops a running lease.
- It is not a compliance certification and does not replace a security review.
Frequently asked questions
Does a dev box work with Claude Code, Codex or Cursor? Any agent you can install on a Linux server works, because the box is a normal EC2 instance you reach over SSH. Idlefy does not install it.
Can an AI agent start or create a dev box itself? Yes, through the MCP server. The agent acts as you, with your role. Deleting a box needs explicit confirmation and its exact name, and disconnecting all AI agents cuts their access in one action.
Does a stopped dev box cost anything? Yes, its disk, and a fixed address if it has one, billed by AWS to your account. The compute charge stops with the machine.
Can Idlefy see what is on my dev box? No. The only keys Idlefy puts on a new box are your public SSH keys, at creation, and Idlefy has no way to read what is on it.
Can I open SSH to the whole internet? Not on a new box under the default policy. The organization owner can change that policy.
Disclosure
I’m the founder of Idlefy, so this describes our own product. The behavior above matches our Dev Boxes terms, and the lease lifecycle is on the how it works page.
Related reading: Start an EC2 instance from Claude Code for leases from an assistant, and Dev VMs instead of laptops on running a remote team on leased AWS VMs.