What is Kilo (headless)?
Kilo is an open-source AI coding agent; kilo serve is its headless mode - an HTTP+SSE API that Kilo clients attach to. Run it on a platform and the agent outlives your editor: the IDE extension, kilo attach from a terminal, or the Cloud Agents web UI (via Remote Connections) all connect to the same persistent brain.
This template runs server mode behind HTTP basic auth with a 10 GB /workspace volume that survives redeploys. Clone your repos into the workspace once; every client that attaches sees the same state.
Two variables: KILO_SERVER_PASSWORD for the API and ANTHROPIC_API_KEY (or configure another provider through Kilo’s config in the workspace). Prefer a terminal over an API? The agent-box template ships the Kilo CLI alongside Claude Code and opencode in a browser terminal.
What you get
- kilo serve: HTTP+SSE API for IDE, CLI, and web clients
- Persistent 10 GB /workspace across redeploys
- Attach from the IDE extension, kilo attach, or Cloud Agents UI
- HTTP basic auth on the API
- Provider-flexible: Anthropic by default, others via Kilo config
- Single container, official open-source agent
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
kilo | kilo serve - HTTP+SSE API (:5000) | yes (basic auth) |
Before you deploy
KILO_SERVER_PASSWORDHTTP basic auth on the API
ANTHROPIC_API_KEYmodel access, billed to you (other providers via Kilo config)
Sizing and billing
2 GiB fits the agent runtime and typical repo tooling. Big monorepos or heavyweight builds in the workspace want the next plan up.
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
What is the difference between Kilo and agent-box?
Interface. This template exposes Kilo’s server API for programmatic and IDE clients; agent-box gives you a browser terminal with the Kilo CLI (plus Claude Code and opencode) inside. Same agent family, API versus terminal.
How do I connect my IDE to it?
Point the Kilo extension (or kilo attach) at https://your-app-domain with KILO_SERVER_PASSWORD as the basic-auth credential. The Cloud Agents web UI connects the same way via Remote Connections.
Why run Kilo remotely instead of locally?
Persistence and reach: long tasks keep running after your editor closes, the workspace state is shared by every client you attach from, and a phone or tablet can check on (or redirect) the agent mid-task.
Why is this marked experimental?
Kilo’s server mode and remote-connection protocol are young and moving fast upstream. It works today; expect the template to track breaking changes. Pin image versions for stability.