Machines over SSH

Your agents on another machine, in the same Inbox

The agents you leave running on a Mac mini or a server also ask questions and sit waiting. doki reaches those machines over SSH and brings their sessions into the Inbox on your Mac.

Network diagram

How doki reaches a machine on another network

Your Mac
Local networkDirect SSH on the LAN
Direct UDP linkHole punching via STUN
Server relaydoki server · SSH stays end-to-end encrypted
Mac mini / VPS

How doki connects to a machine over SSH

You add the machine as user@host or with an alias from your ~/.ssh/config. doki uses its own SSH key, created on your Mac the first time, and gives you the command that authorizes it on the machine. You test the connection and save.

From then on doki checks that machine over SSH: which agents are installed, which sessions changed and whether tmux is there. It fetches only what changed and shows it like a local session.

You don’t install any part of doki on the machine for this. If tmux is missing, doki can install it without sudo.

How you answer an agent running on another machine

If the agent runs inside tmux, doki types your answer into its pane, live. If there’s no terminal to type into, it resumes the session in the background with your message.

You can also start a new agent on that machine from doki. If the machine has tmux, the agent opens there, so it keeps running after you close your Mac.

  • Attachments you send are copied to the machine so the agent can read them.
  • The Inbox filter picks all machines or just one.
  • You can open its tmux console from the chat.

What the Machines screen shows

Each machine is a card with its status, the agents installed on it and whether tmux is available. Below that are its resources: CPU, memory, GPU and disk, with 15 minutes of history, the processes using the most, and a warning when it gets close to the limit.

From the card you can test the connection, reconnect, pause, rename, change the address or remove the machine. You can also connect GitHub on that machine with gh.

The console opens a terminal on that machine inside doki. It works the same in doki in the browser.

How to reach a machine on another network

A server with a public IP is added straight over SSH. For a Mac behind a router, say a Mac mini at home, there’s doki-bridge: you generate a command in doki, paste it once on that machine, and it’s linked to your account. For now doki-bridge is macOS-only.

When it connects, doki tries the local network first, then a direct link between the two machines. The relay through doki’s server is used only if you turn it on. In all three cases what travels is SSH, encrypted end to end: the server forwards bytes it can’t read.

You can pause or revoke the bridge whenever you want. For a Linux server you want to open without going through your Mac, see servers with doki-hub. What the server stores is covered in Security.

How to open localhost on a remote machine

Ports lists the servers your agents started on each machine: the port, the folder, and how much memory and CPU they use.

“Open through tunnel” passes that port through the SSH connection doki already has and opens it on your Mac. The port is never published to the internet. You can stop the process from the same list.

How to start

  1. Open Machines and add one

    Type user@host or pick an alias from your ~/.ssh/config.

  2. Authorize doki’s key

    Copy the command doki shows you and paste it on the machine. Then test the connection and save.

  3. Keep your agents in tmux

    If they run inside tmux, doki types to them live. If tmux is missing, install it from the machine’s card.

  4. Answer from the Inbox

    That machine’s sessions show up next to the ones on your Mac. You answer them like any other.

Frequently asked questions

Do I have to open port 22 to the internet?

No. doki doesn’t ask you to publish SSH. The connection goes out from your Mac to the machine. If the machine is a Mac on another network, doki-bridge links it without opening an inbound port.

What has to be installed on the remote machine?

Your coding agent and, if you want to type to it live, tmux. doki doesn’t install a service of its own to read sessions: it uses SSH. doki-bridge is only needed to reach a Mac that sits on another network.

Does it work without tmux?

Yes. doki still reads the sessions and can answer by resuming the session in the background. With tmux, your answer goes into the terminal where the agent is already running.

Does doki’s server see my code or my SSH session?

No. Your Mac talks to the machine over SSH. If you turn the relay on, the server forwards those already-encrypted bytes and can’t read them. The private SSH key stays on your Mac.

How is this different from doki-hub?

A machine over SSH is seen and driven from your Mac, which has to be on. doki-hub runs doki on the Linux server itself, so you open it from the browser, your phone’s included, even when your Mac is off.

Can I add machines from the browser?

Yes. In doki in the browser you add a machine over SSH, test it and save it. The browser never receives SSH keys: they stay on your Mac.

Updated November 18, 2026

Never leave an agent waiting.

Claude Code, Codex, Cursor and the rest in one Inbox: on your Mac, the browser, your phone and your servers.

See pricing →