# Kiro in Docker

> Run Kiro in a container: EnvHaven's open-source image with Kiro built in, a managed workspace with nothing to run, and the folders and keys a container of your own has to keep.

_Updated November 23, 2026 · Checked against Kiro 2.34.0 in EnvHaven v1.9.0_

A container keeps whatever Kiro does with full access away from your own files, which makes it the usual home for unattended runs. EnvHaven is built on that idea in two forms: a managed workspace, which is the container already running on a server of its own, and the open-source workspace image, which you run with Docker yourself.

## A managed workspace: nothing to run

1. Open your workspace in any browser. It is the EnvHaven container on its own always-on server, with an HTTPS address for what you build.
2. Tap **Launch**, choose Kiro and tap **Sign in**: it runs `kiro-cli login` for you in the terminal.
3. Start it with one tap: signed in, Kiro gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (2.34.0), so there is nothing to install or update.
4. Give it a task. Runs with the default confirmations; add `--trust-all-tools` for unattended runs.

## The EnvHaven image, on your own Docker

The workspace image is MIT-licensed and ships Kiro 2.34.0 beside 16 other agents. Its home is `/config`, so one volume keeps every agent's settings and sign-in when the container is replaced:

```bash
docker run -d \
  --name envhaven \
  -p 8443:8443 \
  -p 2222:22 \
  -e PASSWORD=password \
  -e SUDO_PASSWORD=password \
  -v envhaven-config:/config \
  ghcr.io/envhaven/envhaven:latest
```

Open `http://localhost:8443`, run `kiro-cli` in the terminal and sign in. The [self-hosted guide](https://envhaven.com/guides/self-hosted-dev-environment) covers SSH and Haven CLI against it.

## What a container for Kiro has to keep

Kiro keeps its settings in `~/.kiro` ([source](https://kiro.dev/docs/configuration)). In CLI 3, `~/.kiro` (or the path in `KIRO_HOME`) holds settings, sign-ins and sessions.

In a container of your own, mount a volume there so a rebuilt container stays signed in. Kiro also reads `KIRO_API_KEY` instead of a sign-in in headless runs, on paid plans ([source](https://kiro.dev/docs/cli/headless/)).

## Full access inside the container

For one session:

```bash
kiro-cli chat --trust-all-tools
```

`--trust-all-tools` (`-a`) runs every tool without confirmation; `/tools trust-all` does the same inside a session, and `--trust-workspace` skips the workspace-trust screen for one launch. In the terminal UI, both first show a warning that you must acknowledge before the agent gets full access.

## Keep reading

- [Kiro](https://envhaven.com/agents/kiro)
- [Kiro in the browser](https://envhaven.com/agents/kiro/browser)
- [Kiro on iPhone](https://envhaven.com/agents/kiro/iphone)
- [Kiro on iPad](https://envhaven.com/agents/kiro/ipad)
- [Kiro on Android](https://envhaven.com/agents/kiro/android)
- [Kiro on a Chromebook](https://envhaven.com/agents/kiro/chromebook)
- [Coding agents in Docker](https://envhaven.com/agents/docker)

Source: https://envhaven.com/agents/kiro/docker
