T3 Code server with coding agents, persistent toolchains, a browser and a web setup console.
10K+
Run T3 Code as a headless server in a container,
with coding agents and language toolchains installed on first start.
T3 Code is a control surface for coding agents. The server runs the agents, git and your terminals; the desktop, web and phone apps connect to it. This image packages that server with the agent CLIs, language toolchains, a headless browser, and a setup page for pairing devices, signing agents in, connecting them to your own AI gateway and keeping everything up to date, all without a shell in the container.
Note: T3 Code is beta software and changes quickly, and so does this image.
mkdir -p workspace
docker run -d --name t3code --restart unless-stopped \
-p 127.0.0.1:3773:3773 -p 127.0.0.1:3774:3774 \
-v t3-home:/home/t3 -v "$PWD/workspace:/workspace" \
-v t3-services:/var/lib/t3code/services \
-e PUID="$(id -u)" -e PGID="$(id -g)" \
--shm-size 1g --stop-timeout 45 \
dizys/t3code-docker
PUID and PGID should match the workspace owner. In a root shell, id -u
is 0, which the container refuses: use -e PUID=1000 -e PGID=1000 instead. A
new, empty workspace owned by root is handed to that account on first start.
docker exec t3code cat /home/t3/.t3/setup-keyOn first start, the agents and toolchains install onto the t3-home volume in
the background. That takes a few minutes, and the setup page shows the
progress. Both ports listen on localhost only; see
Reaching it from your phone to go further.
The separate t3-services volume preserves optional service software and
identities; creating it does not install or enable a service.
For a server you keep running, save this as compose.yaml and run
docker compose up -d:
services:
t3code:
image: dizys/t3code-docker:latest
container_name: t3code
restart: unless-stopped
ports:
- "127.0.0.1:3773:3773" # T3 Code
- "127.0.0.1:3774:3774" # setup page
volumes:
- t3-home:/home/t3 # state, sign-ins, agents and toolchains
- t3-services:/var/lib/t3code/services # optional services and identities
- ./workspace:/workspace # your repositories, one project per git checkout
environment:
PUID: 1000 # `id -u` on the host
PGID: 1000 # `id -g` on the host
TZ: UTC # or an IANA zone such as America/Los_Angeles
shm_size: 1gb
stop_grace_period: 45s
logging:
driver: json-file
options: { max-size: "10m", max-file: "3" }
volumes:
t3-home:
t3-services:
Read the setup key with docker compose exec t3code cat /home/t3/.t3/setup-key.
If you set T3CODE_HOME, read setup-key there instead.
Upgrade the image with docker compose pull && docker compose up -d.
Keep both named volumes when recreating the container. To change its timezone,
set TZ to your IANA zone and recreate it; with docker run, pass
-e TZ=America/Los_Angeles when creating the replacement.
Prefer to build from source, or want the optional Caddy HTTPS sidecar? Clone
the repository and use its compose.yaml with
.env.example, which documents every option:
git clone https://github.com/dizys/t3code-docker && cd t3code-docker
cp .env.example .env # set PUID/PGID and T3_WORKSPACE_HOST
docker compose up -d --build
The repository's Compose file and .env.example set T3_PREINSTALL=all, which
installs every managed agent and the toolchains. The quick-start examples above
use the image default: Claude Code, Codex, OpenCode and the toolchains. Use
T3_PREINSTALL=none to install everything on demand.
| Tag | Image | Download |
|---|---|---|
latest, browser | Everything, including headless Chromium for the agents | ~1.0 GB |
core | The same without the browser | ~0.7 GB |
X.Y.Z, X.Y.Z-browser, X.Y.Z-core | A fixed release | |
X.Y, X.Y-browser, X.Y-core | The latest stable patch in that release series |
Published to Docker Hub as dizys/t3code-docker
and to GHCR as ghcr.io/dizys/t3code-docker, each for linux/amd64 and
linux/arm64. The old full and slim tags are retired; see
Moving off full and slim.
https:// URL and a QR
code, with no DNS or certificates.browser (latest) | core | |
|---|---|---|
| T3 Code server and web app | ✅ | ✅ |
| git, gh, ssh, Node, Python, clang, ffmpeg, ImageMagick, psql | ✅ | ✅ |
| Claude Code, Codex, OpenCode | first start | first start |
| Grok, Cursor, Muse Code, Pi, Antigravity | one click | one click |
| Go, Rust, Bun, Deno, uv | first start | first start |
| glab, fj, tea, az (GitLab, Forgejo, Gitea, Azure DevOps) | one click | one click |
| mise, for per-project versions | ✅ | ✅ |
| SSH server, Tailscale, Cloudflare Tunnel | on demand | on demand |
| cloudflared adapter, for publishing a port | downloads on first tunnel | downloads on first tunnel |
| Headless Chromium and browser MCP servers | ✅ | not included |
"First start" installs onto the /home/t3 volume once, in the background;
"one click" installs from the setup page when you ask. T3_PREINSTALL changes
what the first start installs. Optional service payloads download only after
you approve their installation. Node, npm and npx use the image runtime until
you select a version through Mise; selected versions take precedence. See
Toolchains for project versions and runtime selection.
Neither image contains credentials or model
access: you bring your own subscriptions or API keys.
In Setup → Gateways, choose Add gateway…, pick its type, and enter its address and API key. Setup tests the connection from inside the container, discovers its models, and shows which agents its APIs support. Choose which of Claude Code, Codex, OpenCode, Pi and Grok Build to connect, then add the gateway.
Each connected agent gets a labelled entry in T3 Code's model picker, such as Claude · CLIProxy. Choose it per thread. Your direct sign-ins stay available, and both use the same skills, MCP servers and instructions.
For a gateway on the Docker host, use host.docker.internal as its hostname.
The repository's Compose file maps it for you; with docker run, add
--add-host host.docker.internal:host-gateway. The gateway must also listen on
an address the container can reach.
CLIProxyAPI can also show pooled Claude and Codex account quotas under Usage → Limits when you add its separate management key. The Gateways guide covers model selection, keys, networking and which changes stop an active turn.
A phone needs an address it can reach. Pick one, then set it as the public URL on the setup page so pairing links point there:
T3_SINGLE_PORT=8080 to serve
T3 Code and the setup page together, and point Cloudflare Tunnel or your proxy
at that port.docker compose --profile tls up -d.Ignore the pairing link in T3 Code's startup banner: it uses the container's
internal address and expires in five minutes. Use the setup page or t3-pair
instead. Details: Reaching the server from a phone.
| Guide | Covers |
|---|---|
| The setup page | The setup key, pairing, opening it from T3 Code |
| Reaching the server from a phone | Pairing, public URLs, tunnels, one hostname, link and session lifetimes |
| Agents | Installing, signing in and updating each agent |
| Upgrading T3 Code | Stable and Nightly, auto-update, rollback |
| Toolchains | Go, Rust and friends, any mise tool, per-project versions |
| Services | Optional SSH, Tailscale, Cloudflare Tunnel, custom commands and service packages |
| Source control | gh, glab, fj, tea and az sign-in |
| Vault | Saved keys, tokens and passwords that every agent can use by name, added in Setup or from chat |
| Publishing a port | Public URLs for dev servers |
| Giving agents a browser | T3's server browser and the browser MCP servers |
| Context management | Global AGENTS.md and the shared skill library |
| MCP servers | Define once, compare and configure native agent copies |
| Gateways | Connect five agents to a gateway, choose models and show CLIProxyAPI account limits |
| Files | Browse, edit, upload, ZIP, Trash and project cleanup |
| Storage management | Disk usage, cache cleanup, version retention |
| Configuration | Every environment variable, volumes, building |
| Troubleshooting | Pairing, providers, terminals, permissions |
Helper commands in the container, each safe to run with plain docker exec:
docker exec t3code t3-doctor # what is installed, signed in and healthy
docker exec t3code t3-pair # a pairing link and QR code
docker exec -it t3code t3-login codex # sign an agent in from a shell
docker exec t3code t3-harness list # agents and their exact versions
docker exec t3code t3-expose 3000 # publish a port
An agent with a shell in this container can run anything, and the container is the only boundary.
t3 auth pairing revoke <id>
and t3 auth session revoke <id>.T3_SINGLE_PORT unencrypted. The
examples above bind to localhost for that reason; use TLS or a tunnel.T3_SETUP_ACCEPT_T3_SESSIONS=0 turns this off.T3_ALLOW_SUDO=1 gives agents root in the container. It's off by default.Issues and pull requests are welcome. See CONTRIBUTING.md for the smoke test, the development console and how releases are made.
MIT, see LICENSE. T3 Code and the agent CLIs have their own licenses; this repository packages them and does not relicense them.
Content type
Image
Digest
sha256:d6d9fedf1…
Size
1018.3 MB
Last updated
about 11 hours ago
docker pull dizys/t3code-docker