Run Claude Code agents on your server
With the Tendeck engine on a server, your Claude Code agents keep working after you close the laptop, and you check on them from the Mac app or your phone’s browser. You need a Linux server (Intel, AMD or ARM) with Docker, and about five minutes.
How it works
The Mac app carries an engine that starts when you open it and stops when you quit. On a server, the same engine runs in Docker and keeps running. The app connects to it like it connects to your Mac, and you switch between the two from the sidebar.
- The image carries the engine only. It doesn’t ship Claude Code: on its first start it downloads the official CLI through Anthropic’s installer into its volume, and Claude Code updates itself there.
- Your accounts, conversations, projects and worktrees live in the
tendeck-homevolume, so they survive updates. - The container drops every Linux capability and can’t gain new privileges, because agents run with its permissions.
1. Start the engine
mkdir tendeck && cd tendeck
curl -fsSLO https://tendeck.app/compose.yaml
docker compose up -d
The first run downloads the engine and, through the official installer, Claude Code. It takes a couple of minutes.
2. Connect to the engine
The engine only listens inside the server (127.0.0.1:7878). Don’t publish its port to the internet: anyone who gets in can run commands with your agents’ permissions. Reach it through an SSH tunnel, from your Mac:
ssh -N -L 7878:127.0.0.1:7878 your-server
Tailscale and Cloudflare Access work too, always over https. Any address other than the tunnel’s http://127.0.0.1:7878 must use https.
3. Add it to the app
On your server, copy the engine’s key:
docker compose exec tendeck cat /home/tendeck/.tendeck/token
In Tendeck, open Settings > Servers and add it. With the tunnel, the address is http://127.0.0.1:7878. The key is saved in your Keychain.
4. Bring your projects
Open a terminal inside the engine and clone your repositories into ~/projects:
docker compose exec tendeck bash
Use keys or tokens limited to those repositories, not your personal SSH key.
Check in from your phone
The engine also serves a web interface, made for your phone or a machine without the app. It has fewer features than the app, but you can read your agents and answer the one that’s waiting. Print a sign-in link with your key:
docker compose exec tendeck tendeck link
It prints http://127.0.0.1:7878/login?token=…. Open it through your tunnel, or, on your phone, swap the address for the https one your Tailscale or Cloudflare Access setup gives you. The link carries your key, so treat it like a password.
How to update it
Tendeck tells you when your server falls behind. Run this in the folder that holds compose.yaml:
docker compose pull && docker compose up -d
Your accounts, conversations and projects are kept, because they live in the tendeck-home volume. Active agents stop, and you resume them from their cards. Claude Code updates itself.
Good to know
- Restarts close terminals. If the engine restarts, agents stop. Their conversations are kept and ⌘R resumes each one.
- No pull request status on a server. That needs
ghsigned in, which the server image doesn’t include. Everything else about git works. - Usage is per machine. Token counts come from Claude Code’s local logs on that server, so they don’t include what you use elsewhere.
- Your plan’s terms apply. Read them before running Claude Code on a server. Tendeck isn’t a hosted service: you run it with your own accounts, and offering it to other people as a service needs your own agreements with Anthropic.