What is Agent Box?
Coding agents got good enough that the bottleneck moved: your laptop has to stay open while they work. Agent Box moves the agent to the platform - a persistent container with Claude Code, opencode, and Kilo CLI preinstalled, reachable from any browser as a web terminal (ttyd + tmux) behind basic auth.
The workflow it unlocks: kick off a long agent run from a laptop or phone, close the tab, and reattach later - the tmux session keeps running server-side, and the 10 GB /workspace volume survives redeploys. Clone your repos once; your agents and their context live there.
Two variables - TTYD_PASSWORD for the terminal and ANTHROPIC_API_KEY for the agents (billed to you) - and you have a development box that never sleeps.
What you get
- Claude Code, opencode, and Kilo CLI preinstalled and updated
- Browser terminal via ttyd - works from phones and tablets
- tmux sessions persist across disconnects: start, close tab, reattach
- 10 GB /workspace volume survives redeploys
- Basic auth on the terminal; API key stays server-side
- git, gh, and the usual toolchain included
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
agent-box | web terminal (ttyd + tmux) with agents inside | yes (basic auth) |
Before you deploy
TTYD_PASSWORDterminal basic auth
ANTHROPIC_API_KEYused by the agents, billed to you
Sizing and billing
2 GiB covers agents plus typical build tooling. Heavy compiles or test suites inside the box may want more RAM - agents are only as fast as the box they think in.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 9.77 GiB of volumes cost $0.15 per GiB a month ($1.47/mo) for as long as they exist. One workspace can use both. See pricing
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Why run Claude Code on a server instead of my laptop?
Long runs survive sleep, network drops, and closed lids. The tmux session keeps executing while you are away, and reattaching from any device shows you what happened - agent time stops being coupled to laptop-open time.
Is it safe to expose a terminal to the internet?
The terminal sits behind basic auth over HTTPS, and the API key lives only in server env. Use a long random TTYD_PASSWORD and treat the box like any dev machine: real credentials only where needed, and remember the agents inside can run arbitrary commands - that is the point.
How do I reattach to a running agent session?
Open the app URL, authenticate, and you land back in tmux - the session never ended. From a second device the same applies; tmux multiplexes happily.
What does it cost to run?
The box itself is 2 GiB of compute, on a flat resource or by the second on Usage Billing. The real cost is API usage by the agents, billed to your Anthropic key - the box just keeps them running while your laptop does not have to.