Security

[object Object]

The daemon runs on your machine and manages your coding agents. Clients (desktop app, phone, CLI, web) connect to it over WebSocket. Your code stays on the machine running the daemon.

Connection options

  • Relay: the daemon connects outbound to a relay and clients meet it there. No open ports.
  • Direct: the daemon listens on a network address and clients connect to it. Use a VPN such as Tailscale for this outside your local network.

Setup steps are in Connectivity.

Relay

The relay is on by default. A new home starts with it enabled, and a home that had it off is turned on once when the daemon starts; the app tells you and lets you keep it or turn it off. If you turn it off, the daemon stays available for direct and VPN connections, and pairing asks before it enables the relay again. zekoder daemon pair --relay agrees without the prompt.

The relay is untrusted by design. Traffic between phone and daemon is end-to-end encrypted, so the relay sees only IP addresses, timing, message sizes, and session IDs. It cannot read, forge, or replay messages.

  1. The daemon keeps a persistent keypair in daemon-keypair.json in its home directory.
  2. The QR code or pairing link carries the daemon's public key.
  3. The phone sends a handshake with its own public key. The daemon accepts no commands until it completes.
  4. Both sides derive an encrypted channel (Curve25519 key agreement, XSalsa20-Poly1305) with fresh keys per session.

The pairing link is the trust anchor. Treat it like a password.

One case cannot be told apart. If you turned the relay off before this version, your config reads "enabled": false, exactly like the old default, so the daemon turns it on once when it starts. The in-app notice is the safeguard: choose Turn off to undo it, and the choice sticks.

Direct connections

The daemon listens on 127.0.0.1:6777 by default, which only local processes can reach. Binding to another address exposes it to that network.

  • Unix socket: the CLI can talk to a daemon listening on a socket file, which blocks all network access. The apps need a network connection.
  • VPN: bind to the VPN address, set a password, and add it as a direct connection.
  • 0.0.0.0: reachable on every interface, including public Wi-Fi. Set a password and firewall rules first.

DNS rebinding

CORS does not stop a malicious site from resolving its domain to your machine. The daemon validates the Host header against an allowlist and rejects unknown hosts. Set it with daemon.hostnames in config.json:

  • [] (default): localhost, *.localhost, and all IP addresses.
  • [".example.com"]: also example.com and its subdomains.
  • true: any host. Not recommended.

Password authentication

Without a password, anyone who can reach the listening address can connect. With one, every HTTP request needs an Authorization: Bearer <password> header and every WebSocket client, relay clients included, sends the password on connect. Relay clients send it inside the encrypted channel. Only /api/health is exempt.

The password is stored as a bcrypt hash in config.json. Setting PASEO_PASSWORD in the daemon's environment hashes it at startup.

A password controls access and does not encrypt traffic. Over an untrusted network, use the relay or a VPN as well.

Agent authentication

Zekoder runs the agent CLIs already on your machine and does not manage their credentials. Claude Code, Codex, and the others each keep their own login. Zekoder never stores or transmits provider API keys, and agents run as your user with your existing credentials.

Recommendations

  • Use the relay for phone access.
  • Set a password whenever you bind to a network address.
  • Never bind to 0.0.0.0 without a password.
  • Keep the daemon updated; see Update a remote host.
Zekoder

The flight recorder for AI-built software.

Zekoder is a product of Cybernetic Labs Ltd, London.