SSD Nodes Learn Hosting plans →
Guides Matt ConnorBy Matt Connor

Plannotator over SSH: the open port and shares

Plannotator switches to port 19432 with no login when it sees SSH. Keep it firewalled, reach it by SSH forward or tailnet, and turn off what leaves the box.

Plannotator over SSH: the short answer

If you run Plannotator over SSH, first decide who can reach port 19432. When Plannotator sees an SSH session, it switches to remote mode on that fixed port. It listens on every interface and asks for no login. Keep 19432 closed in the firewall. Reach it through an SSH local forward or your tailnet. Then turn off the features that send data off the server.

This guide is pinned to Plannotator v0.29.8. That release came out on 29 November 2026 and was still the latest one on 30 November 2026. The release before it, v0.29.7, came out one day earlier, so check the release page before you copy a setting. The variable names and config keys below come from the v0.29.8 README and source. The switch for the anonymous ping comes from the v0.29.8 source, because the README does not name it.

Plannotator is a local, browser-based review tool for AI coding agents. You annotate a plan, a document or a code diff in your browser, and Plannotator sends your feedback back to the agent. On a laptop the browser and the agent are on the same machine. On a VPS they are not, and this guide covers that case. If the server itself is still new, setting up a VPS to run a coding agent covers the base box first.

How the Claude Code plugin hooks into plan mode

The Claude Code plugin registers several hooks. The one that matters here is a PermissionRequest hook with the matcher ExitPlanMode. It runs the command plannotator with a timeout of 345600 seconds, which is 96 hours. The same hooks file also adds a PreToolUse hook on EnterPlanMode (it runs plannotator improve-context), a SessionStart hook for compact, and a mod module.

The mod changes the flow on recent Claude Code. On Claude Code 2.1.287 or newer, in the interactive terminal, the plugin runs the Plannotator mod, and the mod is on by default. Claude does not wait while you review. It ends its turn, and your decision arrives later as a message. After you approve, Claude calls ExitPlanMode once more and works from the exact plan text you approved. If you leave plan mode before you approve, Claude can start editing files.

The classic flow, where the hook waits for your decision, still applies to older Claude Code, headless claude -p and SDK runs, and any setup where the mod is off. Windows can run the mod through Git Bash or PowerShell; if neither shell passes its startup check, the mod stays off. To turn the mod off, set PLANNOTATOR_CLAUDE_MOD=0 or put "claudeCodeMod": false in ~/.plannotator/config.json. Then restart Claude Code. To learn how matchers and permission hooks work in general, read how Claude Code hooks fire and what they can block.

Install Plannotator and the Claude Code plugin

There are two parts. The binary installer comes first. The Claude Code plugin is a separate install.

Run this on the VPS, as the user that runs Claude Code. The --version option pins the release this guide was written against:

curl -fsSL https://plannotator.ai/install.sh | bash -s -- --version v0.29.8
command -v plannotator

The installer puts the binary in $HOME/.local/bin and checks its SHA-256 checksum. command -v plannotator should print a path that ends in .local/bin/plannotator. If it prints nothing, ~/.local/bin is not on your PATH in this shell. Open a new login shell, or add the directory to PATH.

The full install needs Git, because it fetches the selected release's skills and command files. These installer options change what it does:

  • --minimal installs the binary only.
  • --skip-skills skips the skills.
  • --verify-attestation also checks the SLSA (supply-chain levels for software artifacts) provenance attestation. This check is opt-in.
  • The environment variable PLANNOTATOR_SKIP_AGENT_TERMINAL_INSTALL=1 skips the agent-terminal runtime.

Put options after bash -s --, the same way as --version above.

Next, inside Claude Code, add the marketplace and install the plugin:

/plugin marketplace add backnotprop/plannotator
/plugin install plannotator@plannotator

In a current Claude Code session, /plugin install does not install at once. It opens the /plugin panel on the plugin's details, so you can review the plugin and choose a scope first. Pick the scope, then restart Claude Code. Current Claude Code also supports applying plugin changes with /reload-plugins; follow the install summary if you use that route. What a Claude Code plugin can install, and how scopes work covers that panel in more detail.

The README also documents a manual route without the plugin: add the same hook block to ~/.claude/settings.json yourself.

{
  "hooks": {
    "PermissionRequest": [
      {
        "matcher": "ExitPlanMode",
        "hooks": [
          { "type": "command", "command": "plannotator", "timeout": 345600 }
        ]
      }
    ]
  }
}

This block sets up only the PermissionRequest hook. It does not include the other hooks or the mod module from the plugin's hooks file.

Other agents the README names

The README's install table also names Amp, Codex, Copilot CLI, DeepSeek Harness, Droid, Gemini CLI, Kiro CLI, OpenCode, Pi and T3 Code. Droid gets commands only, with no plan interception yet. Gemini CLI needs version 0.36.0 or later. Pi installs from npm instead of using the installer. Codex plan review uses an experimental Stop hook, and native Windows needs manual setup. This guide covers Claude Code only. Read the README row for your agent before you assume a step here applies to it.

Why Plannotator opens port 19432 on a VPS

Plannotator auto-detects SSH sessions. It looks for SSH_TTY or SSH_CONNECTION in its environment. When it finds one, it switches to remote mode on the fixed port 19432. Outside remote mode the default port is random.

In remote mode the server listens on every interface (0.0.0.0), and there is no login. The remote-access docs also say that Plannotator does not add a login screen or per-request authentication to a remote session. So anyone who can reach the port can use the review page. That page shows your plan, and it is the page that sends your feedback to the agent.

This stays true when you use an SSH tunnel. The tunnel gives you one private path to the port. It does not close the other paths. The remote-access docs say the same thing: an SSH tunnel does not stop another network peer from reaching the port through a different interface. The other paths include the public IP of the VPS, any private network the VPS is attached to, and any VPN interface on the box.

While a review is open, check what is listening. Run this on the VPS:

ss -ltnp | grep 19432

In remote mode the local address column should show 0.0.0.0:19432. That address means every interface, which is why the next section closes the port.

Keep port 19432 closed in the firewall

The fix is the host firewall, plus your provider's network firewall if you use one. The docs say to keep the port blocked by the host firewall and by network policy. On Ubuntu with ufw, check the current state first:

sudo ufw status verbose

You want Status: active, Default: deny (incoming), and no rule that permits access to 19432, including broader rules that allow all ports from an address, subnet or interface. A rule such as sudo ufw allow from 192.168.1.0/24 allows that subnet to reach 19432 without naming the port. An SSH local forward still works, because sshd connects to the port from inside the VPS. If your default incoming policy is allow, add an explicit rule and check that no earlier matching allow rule takes precedence:

sudo ufw deny 19432/tcp

Do not run sudo ufw allow 19432/tcp. That rule opens the review page on every interface, to anyone who finds it. If ufw is new to you, the ufw firewall basics for a VPS explains default policies and how to keep SSH reachable while you change them.

Test from your laptop, not from the VPS. A test run on the VPS itself can connect over loopback, so it proves nothing about the outside. While a review is open on the VPS, run this on the laptop, with your server's public IP:

nc -vz -w 3 203.0.113.10 19432

The connection should fail, usually with a timeout. If nc reports that the connection succeeded, the port is reachable from the internet. Fix the firewall before you open another review.

Reach the review page with an SSH local forward

An SSH local forward listens on a port on your laptop. It carries each connection through your SSH session to a port on the VPS. Add this to ~/.ssh/config on your laptop:

Host your-server
  HostName 203.0.113.10
  User deploy
  LocalForward 19432 127.0.0.1:19432

If you set PLANNOTATOR_PORT to another value, use that value on both sides. Connect with ssh your-server and start Claude Code in that session. When a plan is ready for review, open http://localhost:19432 in your laptop's browser.

For a one-off session, skip the config file and run this on your laptop:

ssh -L 19432:127.0.0.1:19432 deploy@203.0.113.10

In a remote session, Plannotator writes the session URL to stderr, on a line that starts with Plannotator session ready:. That line also tells you to open the URL on your local machine and to forward the port. Where you see that line depends on the flow. With the mod, the URL goes into the text that Claude reads, and the waiting status line does not show a URL. The forwarded address http://localhost:19432 is the same in both flows.

Many people run Claude Code inside tmux on a VPS so that the session survives a dropped connection. The forward lives in your SSH connection, not in tmux. When you reconnect with ssh your-server, the forward comes back with it. Running Claude Code on a VPS inside tmux covers the tmux side of that setup.

Set PLANNOTATOR_REMOTE and PLANNOTATOR_PORT yourself

Auto-detection depends on the environment of the process that runs Claude Code. Check it in the shell where you start claude:

env | grep '^SSH_'

If neither SSH_TTY nor SSH_CONNECTION appears, Plannotator starts in local mode on a random port. Your forward to 19432 then reaches nothing. This happens when the process was not started from an SSH login, for example under a systemd service. Devcontainers and Docker are not auto-detected either.

Two variables let you choose the mode and port yourself:

  • PLANNOTATOR_REMOTE: 1 or true forces remote mode, 0 or false forces local mode, and unset means SSH auto-detection.
  • PLANNOTATOR_PORT: a fixed port. The default is random in local mode and 19432 in remote mode. The docs and the source also accept an inclusive range, such as 19432-19463.

If a fixed port is busy, Plannotator makes five attempts in total. With a range, Plannotator moves on to the next port instead. So with a range, check which port was actually bound with ss -ltnp, and forward that one.

Set the variables in the shell that starts Claude Code:

export PLANNOTATOR_REMOTE=1
export PLANNOTATOR_PORT=19432
claude

Hooks run as child processes of Claude Code, so they inherit these variables. If Claude Code was already running, restart it.

A loopback-only setup to test yourself

In the v0.29.8 source, local mode binds 127.0.0.1, and a valid PLANNOTATOR_PORT applies in local mode too. So PLANNOTATOR_REMOTE=0 together with PLANNOTATOR_PORT=19432 should give a server that listens on loopback only. An SSH local forward can still reach it. This comes from reading the source. The project does not document it as an SSH setup. Local mode may not print the remote URL advice, and it may try to open a browser on the VPS. Test it before you rely on it: while a review is open, ss -ltnp | grep 19432 should show 127.0.0.1:19432 and not 0.0.0.0:19432. Keep the firewall closed either way.

Reach it over a tailnet instead

If the VPS and your laptop are on the same Tailscale tailnet, you can skip the SSH forward. Keep Plannotator in remote mode. From your laptop, open the VPS's tailnet address on port 19432. The page still has no login. Every device that your tailnet access rules let reach the VPS can use it. If other people or shared devices are on the tailnet, make those rules stricter.

Open the port on the Tailscale interface only. With a default deny policy and no broader allow rules exposing the port on other interfaces, use:

ip link show tailscale0
sudo ufw allow in on tailscale0 to any port 19432 proto tcp

The first command confirms the interface name on your VPS. Use the name it shows if yours differs. This rule permits 19432 only for traffic that arrives on that interface; other rules still decide whether the public interface is closed. Run the nc test against the public IP again to confirm.

Plannotator also has a --tailscale flag, from v0.27.0. It keeps the server on 127.0.0.1 and publishes it with Tailscale Serve. It is a flag for the review, annotate and annotate-last (or last) commands, and agent hooks do not add it. So it does not cover plan review from the Claude Code hook. PLANNOTATOR_URL_HOST changes only the URL that Plannotator prints. It does not change the address the server binds to.

What Plannotator sends off the VPS, and how to turn it off

The open port is one risk. The other is data that Plannotator is built to send off the machine. Each path is listed below with its off switch.

The OSS sharing flow is deprecated and remains available for compatibility. Small shares live in the link itself. They are compressed, not encrypted. Large shares are encrypted before upload. On the default hosted paste service they expire after 7 days. A self-hosted paste service sets its own retention. In both cases, anyone with the full link can read the share.

A Markdown share is not uploaded until you ask. Above about 2 KB the page offers a short link, and the upload starts only after you select Create short link. A remote raw-HTML session in the compiled CLI is different: it creates the encrypted short link automatically when the session starts.

One more path matters on a VPS. In a remote plan review with sharing on, Plannotator also writes a share URL that contains the plan to stderr. For Markdown that URL is built locally, and nothing is uploaded. But the plan text now sits inside a URL in your terminal output, so it can end up in tmux scrollback or in terminal logs.

Turn sharing off with PLANNOTATOR_SHARE=disabled. The config file has a share key for the same job. If both are set, the environment variable wins.

Jina Reader for URL annotation

When you annotate a web page by URL, Plannotator uses Jina Reader by default. A public URL is sent to Jina, so that Jina can fetch the page and convert it. Local and private-network URLs skip Jina. If you set JINA_API_KEY for higher rate limits, that key is sent to Jina as well. Turn Jina off with PLANNOTATOR_JINA=0, the --no-jina flag, or "jina": false in the config file. Plannotator then fetches the URL directly.

The AI features

Ask AI, Review Agents and Guided Review use a provider or agent CLI that you have already configured. A request can include the text you selected. It can also include context from the plan, document, repository or diff. Plannotator does not route these requests through a model proxy of its own, so they go to whatever you configured. PLANNOTATOR_AI=disabled turns all three off. This switch has no config-file key, so set the variable.

The annotate agent terminal is separate from that switch. In remote mode it is off by default for network peers, but when SSH auto-detection alone enabled remote mode, it remains available through your loopback SSH tunnel. PLANNOTATOR_AGENT_TERMINAL_REMOTE=1 turns it on for network peers, and the terminal allows command execution. On a VPS where the review page has no login, leave that opt-in unset.

The daily anonymous ping

This one is easy to miss. The main README does not name it, and the app shows no message about it. Plannotator sends one anonymous ping a day to ping.plannotator.ai for each of its tools you use. In the v0.29.8 source, the ping carries fields named version, age_week, tool, first and favicon. It is not sent from CI or from non-release builds. Set NO_ANON_PING=1 to turn it off. Any non-empty value works unless trimming its surrounding whitespace leaves exactly 0. An empty value such as NO_ANON_PING= leaves the ping on, and so do NO_ANON_PING=0 and NO_ANON_PING=' 0 '. The source also honours DO_NOT_TRACK. No config-file key turns it off. The docs site's privacy page does not mention the ping. It says that Plannotator OSS does not send usage telemetry or analytics. The repository documents the ping in apps/telemetry/README.md and packages/shared/daily-ping.ts.

The release check

Plannotator checks GitHub for new releases by default. Turn the check off with PLANNOTATOR_UPDATE_CHECK=0, or with "updateCheck": false in ~/.plannotator/config.json. Installing updates automatically is a separate setting. It is opt-in and off by default.

Installer traffic

The installer downloads the binary from GitHub Releases. A full install can also call the GitHub API to resolve the release and fetch agent files. It can call npm for Pi, for extra skills, and for the managed agent-terminal runtime. In a non-interactive run, the extra skills are not installed by default. Pinning --version skips only the GitHub API release lookup, not the download. --minimal leaves out the optional parts but still downloads from GitHub. If Pi, Oh My Pi or Qwen Code is detected, a full install also installs or updates their extension. If GITHUB_TOKEN, GH_TOKEN or a gh login token exists, the installer may send it to the GitHub API. Keep that in mind before you run it on a box where gh is logged in.

What the switches do not cover

These switches do not make Plannotator fully offline. A plan or a document can load remote images, video and fonts. For a local Git review, Plannotator may run git ls-remote origin in the background, which contacts your Git remote.

Put the switches in one place

Add the variables to ~/.bashrc on the VPS, so the shell that starts Claude Code has them:

export PLANNOTATOR_SHARE=disabled
export PLANNOTATOR_JINA=0
export PLANNOTATOR_AI=disabled
export NO_ANON_PING=1
export PLANNOTATOR_UPDATE_CHECK=0

Two of these settings also have config keys. You can put them in ~/.plannotator/config.json instead:

{
  "jina": false,
  "updateCheck": false
}

Open a new shell or tmux pane. Before you start claude, confirm the variables are set:

env | grep -E '^(PLANNOTATOR_|NO_ANON_PING)'

Each variable you exported should appear once. If Claude Code was already running, restart it. Its hooks only see the environment that Claude Code started with.

FAQ

Why does Plannotator use port 19432 when I connect over SSH?

Plannotator finds SSH_TTY or SSH_CONNECTION in its environment and switches to remote mode. Remote mode uses the fixed port 19432, while local mode uses a random port. Because the port is fixed, you can forward the same port every time. Set PLANNOTATOR_PORT to use a different port, or PLANNOTATOR_REMOTE=0 to force local mode.

Is an SSH tunnel enough to keep the Plannotator review page private?

No. In remote mode the server listens on 0.0.0.0 with no login, and the tunnel does not close the other interfaces. Anyone who can reach the port can use the page, even while you use a tunnel. Keep 19432 blocked in the host firewall and in your provider's firewall. Then test from your laptop with nc -vz -w 3 <public-ip> 19432. The test should fail.

How do I stop Plannotator from sending my plan or URLs anywhere?

Set PLANNOTATOR_SHARE=disabled for share links, PLANNOTATOR_JINA=0 for Jina Reader, and PLANNOTATOR_AI=disabled for Ask AI, Review Agents and Guided Review. Set NO_ANON_PING=1 for the daily ping and PLANNOTATOR_UPDATE_CHECK=0 for the release check. Export them in the shell that starts Claude Code, then restart it. Remote images, video, fonts and git ls-remote origin can still make network calls.

Why does localhost:19432 show nothing in my browser?

First run ss -ltnp | grep 19432 on the VPS while a review is open. If it prints no line, no Plannotator server is listening on that port. A common cause is that SSH was not detected, so local mode picked a random port. Set PLANNOTATOR_REMOTE=1 and PLANNOTATOR_PORT=19432, then restart Claude Code. If ssh on your laptop printed bind [127.0.0.1]:19432: Address already in use, another program on the laptop holds the port, so the forward never started.

Was this article useful?

#plannotator#claude-code#coding-agents#ssh#plan-mode