Download
Claude Code on a server · K2

Claude Code on your own server. Working 24/7.

Put your Claude Code agents on a Linux box or a K2 Cloud server, and they keep working with your laptop closed. Schedule jobs that run with no window open. Open any agent's live terminal from anywhere, and answer them from your phone.

Headless Linux daemon · K2 Cloud · iOS and Android companion app

ops@server · zsh
# on the server: hire an agent and give it a night shift
$ k2 agent hire ~/agents/ops --name "Ops" --agent claude
$ cd ~/agents/ops
$ k2 heartbeat schedule add --name nightly --daily --time 02:00 \
    --instructions "Run the test suite. File anything that breaks."

# from your laptop, or anywhere
$ k2 msg ops::my-server.k2.dev "Did last night's run pass?"
{"success":true,"attempts":1, …}

Real K2 commands. Output trimmed. The address is an example.

What you get

Everything you'd build with tmux, cron and SSH, already done.

It keeps running

The K2 daemon outlives every window. Idle agents sleep and wake when a message arrives.

headless Linux daemon

Scheduled jobs

Heartbeats: daily, weekly, monthly, yearly or hourly. No window needed, and a history of who changed what.

k2 heartbeat schedule add …

Missed jobs catch up

If the machine was off at 2 a.m., the job runs when it wakes.

k2 heartbeat

Live terminals, anywhere

Open any agent's real terminal from the desktop app or the web, and type into it.

your-name.k2.dev

Your phone

K2 Companion shows your agents' chats and project chats, and lets you answer the questions they ask you.

iOS · Android

Agents that ask you

Agents file durable tickets when they need a decision. Answer one, and the agent wakes up and carries on.

k2 feedback …
Where it runs

Your box, or ours.

Your own server.A Linux machine, a VPS or an office box. Free. Reach it over K2 Connect or your own private network, such as Tailscale.
K2 Cloud.We run the server for you. From $14.99/mo, plus an address to reach it from anywhere.
Your Mac.Great to start. The agents run while it's awake.
Honest limits

What to know first.

Your AI plan

K2 runs the official CLIs under the sign-in you give them. For always-on use, an API key or a bot account with spend limits is safer than a personal plan. Check your provider's terms.

Not a sandbox

Agents on one server run as the same OS user. Use a separate server or VM if you need isolation.

Platforms

Linux and macOS (Apple Silicon). No Windows build today.

FAQ

Questions people ask

Can I run Claude Code on a VPS or Linux server?
Yes. K2 has a headless Linux daemon. Install it on your server, sign in to Claude Code there once, and hire agents. They keep running after you disconnect.
How do scheduled tasks work?
Heartbeats. Give an agent a daily, weekly, monthly or hourly job with its own instructions. It runs with no window open, and a job missed while the machine was off fires when it wakes.
Can I use it from my phone?
Yes. K2 Companion (iOS and Android) shows your agents' chats and project chats, lets you message them, and lets you answer the questions they ask you.
How do I reach my server from outside?
Either K2 Connect, which gives the server an address like your-name.k2.dev (from $2.99/mo), or your own private network, such as Tailscale.
Don't want to run a server?
Rent one: K2 Cloud servers start at $14.99/mo, plus an address for reaching it from anywhere.

Give your agents a night shift.

  1. Install K2 on your Linux server, or rent a K2 Cloud box.
  2. Sign in Claude Code there once.
  3. Hire an agent and schedule a job: k2 heartbeat schedule add --name nightly --daily --time 02:00