Docs · Troubleshooting

Troubleshooting

What Pockode's errors mean and how to get past them, from startup to a stopped story.

pockode -password YOUR_PASSWORD -log-level debug

The log is in .pockode/server.log in your project. Start with -log-level debug for more detail.

a password is required

Pass -password, or set the POCKODE_PASSWORD environment variable; there is no default. Security says when to prefer the variable and how strong to make the password.

No AI CLI found

The banner’s Agents line shows (not found) for a CLI Pockode cannot find, and warns when neither is there. Install Claude Code or Codex from Settings → AI CLIs, or yourself. The app downloads and runs the CLI’s official installer as the user running pockode, without sudo, into that user’s home directory. On macOS and Linux that needs bash (Claude Code) or sh (Codex), and curl or wget, on the PATH pockode was started with; on Windows, PowerShell. If one is missing, the app names it: install it and restart pockode. Pockode looks for the CLI each time a session starts, so one installed into a directory already on its PATH works at once; if the installer added a new PATH entry, restart pockode from a new terminal so it inherits it (the banner’s Agents line is only refreshed by a restart). On Windows, install it on the Windows side, not inside WSL.

Installing a CLI from the app fails

The card says why and what to do; Details has the installer’s output. The ones that need a change on the machine:

  • Couldn’t download the installer — the machine could not fetch it from claude.ai or chatgpt.com. Check its network and proxy settings; the download may also not be offered in your region.
  • The installer failed — the card shows the installer’s last line, which says why: a download or checksum that failed, or a tool it needs (such as tar) missing. Fix that and try again, or install the CLI yourself.
  • Installed, but Pockode can’t find it — the installer put the CLI in a folder Pockode does not look in; Details shows what it said, which should name the folder. Add it to the PATH pockode starts with and restart pockode.

An install is refused while the same CLI is being installed, updated or signed in; try again once that ends. The installer gets 10 minutes.

A session fails to sign in

Open Settings → AI CLIs and sign the CLI in from there, or run claude or codex once in a terminal on the machine.

The port is not 9870

Another program had it, so Pockode took the next free port. The banner’s Local line shows which. Choose one with -port. A restart comes back on the port Pockode was on (or the next free one, if something took it meanwhile), not on -port.

Pockode exits at startup with a relay error

With the relay on, Pockode contacts the relay at startup — to register on the first run, to refresh its address after that — and exits if it cannot, printing the reason, such as register: request failed: … or refresh: unexpected status: …. Check the machine’s internet connection and any firewall or proxy in the way. To work on your own network only, start with -relay=false.

If it says client version too old, please upgrade Pockode, the relay no longer accepts this version: run the install command again.

The phone cannot reach the machine without the relay

Open http://<your machine's IP>:9870 from a phone on the same network, and allow that port through the machine’s firewall. Over plain HTTP the browser withholds the clipboard, so copy buttons do not work; see Security for what plain HTTP exposes.

Forgot the password

Stop pockode and start it with a new one, then log in again on each device with it.

Too many attempts

Each wrong password after the first five in a row locks password logins for a while — twice as long each time, up to 15 minutes — and until the lock ends the correct password is refused too. Wait the time the login page shows, or restart pockode to clear it. Devices already logged in keep working. If you did not cause it, someone else is guessing: see Security.

A story stopped by itself

An agent that ends its turn without finishing its step or asking you anything is reminded to carry on; after a few reminders in a row Pockode stops the work and hands it back to you. Read its comments and session, then Restart it. See Stories and agent roles.

The worktree setup script did not run (Windows)

Install Git for Windows; the setup script needs its bash. The app says so in Settings → Worktree → Setup Hook until it is fixed.

A preview shows 502 or a password page

See Port Preview.

Still stuck

Search or open an issue, with the version from pockode -version and the relevant part of server.log. Report security problems privately, as SECURITY.md describes.