Operations
How to run SITREP: the server on an always-on machine, the reporters on each machine.
Contents:
- What runs where
- Deploy the server
- Add a machine
- Hermes
- Pi
- WSL
- In a Claude Code session
- Agent tools
- OpenTelemetry traces
- The record
- Ports
- Settings
- Files and services
- Security: one owner, one secret
- Back up and restore
- Upgrade
- Codex hook trust
- Off the LAN, and From a phone
- Check a machine
- Troubleshooting
- Uninstall
What runs where
| Where | What | Started by |
|---|---|---|
| The server machine (always on) | The server: one Node 24 process, SQLite, the dashboard on port 7487 | A user service: systemd --user with linger |
| Every machine with Claude Code | The plugin sitrep-reporter, inside each Claude Code session (state, asks, answers); and Claude Code's own telemetry, which carries the sessions' usage | Claude Code, from this repository's plugin marketplace; the telemetry, from the settings the install writes |
| Every machine with Codex | The Codex plugin sitrep-codex (hooks that write a local spool) and the codex-reporter process (reads the spool, the session files and the Codex daemon; sends the reports) | Codex, from this repository's plugin marketplace; a user service |
| Every machine with OpenCode | The opencode-reporter process: finds OpenCode's background service (never starts it), follows its events, sends the reports and passes on answers to its permissions and questions | A user service |
| Every machine with Pi | The Pi extension pi-reporter, inside each pi process: reports its session and never answers (Pi) | Pi, from one file the install puts in Pi's extensions folder |
| Any machine with an app that uses OpenTelemetry | Nothing of SITREP's: the app's own OpenTelemetry exporter sends its traces to the server (OpenTelemetry traces) | The app |
Reporters push to one URL, so moving the server is a change of URL in each reporter. While the server cannot be reached, a reporter keeps each session's latest state, up to 500 events and up to 500 of the record's rows (the oldest are dropped, and dropped rows show as a counted gap) and sends them when it is back. Sessions that start and end during the gap, chart samples and live visibility are lost. So is a Claude session's usage during the gap: Claude Code's telemetry keeps no batch it failed to send.
Deploy the server
-
git and Node 24. If the machine has an older Node, install Node 24 for your user, for example with nvm (
nvm install 24). The line below checks both and says what to install when one is missing; it never installs Node. -
The clone, its build and the service, in one line:
curl -fsSL https://raw.githubusercontent.com/IluvatarLabs/sitrep/main/scripts/get.sh | sh -s -- --server --bind 0.0.0.0It clones SITREP to
~/sitrep(a clone already there is updated, fast-forward only; a folder there that is not a SITREP clone stops it), runsnpm ci && npm run build, prints the installer's dry run, and asksApply this plan? [y/N]. Onlyyapplies it. With no terminal to ask on, it applies nothing and prints the command to run in the clone. If git refuses to update the clone (local changes, or a clone that has diverged frommain), it prints git's message and changes nothing else. The line installs the latestmain;--version vX.Y.Zinstalls that release's tag instead. What it runs, if you would rather run it yourself:git clone https://github.com/IluvatarLabs/sitrep ~/sitrep && cd ~/sitrepnpm ci && npm run buildnpx tsx scripts/install.ts --server --bind 0.0.0.0 # dry run: prints every file and commandnpx tsx scripts/install.ts --server --bind 0.0.0.0 --apply -
What the install does. It writes
~/.sitrep/server.env(mode 0600) fromscripts/server.env.examplewith a new admin secret and the database path, writes~/.config/systemd/user/sitrep.service, and enables and starts it. The unit runsnode --env-file=~/.sitrep/server.env server/dist/index.jswith the Node that ran the install. -
Linger. Without it the user service stops when you log out and starts only when you log in:
loginctl enable-linger $USER -
Firewall. Allow TCP 7487 from the LAN only, for example
sudo ufw allow from 192.0.2.0/24 to any port 7487 proto tcp. -
Host names. The server refuses a request whose
Hostit does not expect (a guard against DNS rebinding). With--bind 0.0.0.0, any IP address works, such ashttp://192.0.2.10:7487. To use a name such ashttp://server:7487, add it toSITREP_ALLOWED_HOSTSinserver.envand restart. -
Check it.
systemctl --user status sitrepcurl -s -o /dev/null -w '%{http_code}\n' http://192.0.2.10:7487/api/fleet/state # 200Then open
http://192.0.2.10:7487from the laptop.
On macOS, the same install writes ~/Library/LaunchAgents/dev.sitrep.server.plist instead and loads it with
launchctl; it starts at login and its output goes to ~/.sitrep/server.log.
Add a machine
In the dashboard, Machines → Add a machine (or "+" beside Machines in the sidebar) gives the steps for the OS (macOS, Linux) and harnesses (Claude Code, Codex, OpenCode, Pi) you pick, each with Copy:
-
One line, with the harnesses you picked and
--urlset to the address you opened the dashboard at:curl -fsSL http://192.0.2.10:7487/get.sh | sh -s -- --claude --codex --opencode --pi --url http://192.0.2.10:7487It fetches the script from the server itself and runs as in Deploy: git and Node 22.15 or later checked,
~/sitrepcloned (or updated) and built, then the installer's plan andy. Before the plan it asks for the admin secret, not shown as you type; Enter keeps the one already on the machine. The secret reaches the installer on its standard input, never on a command line. -
Then, each where it applies: the Codex hooks, which the install trusts; on Linux with Codex or OpenCode, linger (
loginctl enable-linger $USER), so their services keep running after you log out; for Claude Code sessions already open, quitting each and resuming it (claude --resume) so it sends its usage; for Pi sessions already open,/reloadin each; and with Codex, its agent tools.
"Waiting for the first report…" turns into "✓ <name> reported" when the new machine reports.
The script is the same file as https://raw.githubusercontent.com/IluvatarLabs/sitrep/main/scripts/get.sh, and
either one installs the latest main from the public repository. Name only the harnesses the machine has. The
Claude Code plugin and the Pi extension run from the clone, and codex-reporter and opencode-reporter from its build, so
the clone stays where it is while SITREP is installed.
To pipe the secret from the server instead of typing it:
ssh server "sed -n 's/^SITREP_TOKEN=//p' ~/.sitrep/server.env" \
| sh -c "$(curl -fsSL http://192.0.2.10:7487/get.sh)" -- --claude --codex --url http://192.0.2.10:7487 --token-stdin
It still shows the plan and asks before it applies. On the server machine itself, leave out --url and press Enter
at the secret prompt: the reporters then send to the local server, by the rule below, with the secret from the local
server.env. What the line runs after the build, if you would rather run it yourself in a clone: the installer with
the same flags and --token-stdin (a dry run, the secret piped in as above), then the same with --apply.
With no component named, npx tsx scripts/install.ts --apply (and scripts/uninstall.ts) acts on the reporters
already installed on this machine: the Claude Code plugin, the Codex and OpenCode reporters' services, and Pi's
extension file. The plan names them; with none installed, it asks you to name what to install. The server is never
picked this way (Upgrade). A machine's Update, Uninstall and "Install again with the admin secret" in
Machines run it so, in the machine's own clone.
Which URL the local reporters get. With --url, every reporter set up in that run uses it. Without it, on a
machine with a server config (--server in this run, or ~/.sitrep/server.env already there), every run that sets up
the reporters points them at that server, replacing a saved URL. The host is this run's --bind, else the saved
HOST, else 127.0.0.1; the port is this run's --port, else the saved PORT, else 7487. --bind and --port
set where the server listens, so the install refuses them without --server; to point the reporters at a server, use --url. A server
bound to 0.0.0.0 or :: is reached at 127.0.0.1. One bound to a specific address (localhost, ::1, any 127.x,
or a LAN address such as 192.0.2.10) is reached at that address (an IPv6 address in brackets). On a machine without
a server config, pass --url: without it, a reporter set up for the first time sends to http://127.0.0.1:7487, and
one set up before keeps the URL it was given (a Claude plugin never given one follows the default). When the reporters send
to a LAN address over plain HTTP, Claude Code on that machine shows its plain-HTTP warning (⚠ in the status line and
a toast); --bind 0.0.0.0, as in Deploy, keeps them on 127.0.0.1, without the warning.
What the install does, and nothing more:
- Claude Code:
claude plugin marketplace add <clone> --scope user,claude plugin install sitrep-reporter@sitrep --scope user, thenclaude plugin updateon it, which brings a plugin installed earlier up to the clone's version, andclaude plugin configure sitrep-reporter@sitrep --values-stdinwith the URL and secret on stdin. Claude Code records the marketplace andenabledPluginsin~/.claude/settings.json, saves the URL underpluginConfigsthere, and keeps the secret in the system's secure credential store. Sessions report from their next start or after/reload-plugins. The plugin also gives each session SITREP's agent tools, from its next start. To try the plugin in one session without any of this:claude --plugin-dir <clone>/mod/claude-reporter. - Claude Code's telemetry: the install merges into
~/.claude/settings.jsontheenvkeysCLAUDE_CODE_ENABLE_TELEMETRY=1,OTEL_LOGS_EXPORTER=otlp,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=http/json,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=<the plugin's URL>/api/fleet/v1/logsandOTEL_LOGS_EXPORT_INTERVAL=1000, andotelHeadersHelper, which runs the clone'sscripts/claude-otel-headers.shwith/bin/sh. Every other setting and hook entry stays. The helper prints the two headers the server needs:X-Sitrep-Machine(the machine id) andX-Sitrep-Token(the admin secret, read from~/.sitrep/claude-otel-token). The install writes that file (mode 0600) with the secret the reporters get, from--token-stdinor else this machine'sserver.env. A run with no secret keeps a token file that is there. With no secret and no token file, the install leaves out Claude Code, its plugin too, and says to re-run with--token-stdin. The secret is never insettings.json, on a command line or in a URL. The endpoint follows the URL this run sets with--url, else the one the plugin has. Ifsettings.jsonalready sets Claude Code's telemetry for something else (CLAUDE_CODE_ENABLE_TELEMETRY, anOTEL_key orotelHeadersHelper), the install leaves Claude Code out and says so. Claude Code reads these settings at start, so a session sends its usage from its next start;/reload-pluginsdoes not re-read them. - Codex:
codex plugin marketplace add <clone>andcodex plugin add sitrep-codex@sitrep. The first adds[marketplaces.sitrep]to~/.codex/config.toml(Codex reads the clone's.agents/plugins/marketplace.jsonin place). The second copies the plugin into Codex's plugin cache and enables it with[plugins."sitrep-codex@sitrep"]. Then it writes~/.sitrep/codex-reporter.env(mode 0600) and thesitrep-codex-reporteruser service, and starts it, and copies the helper Codex's agent tools entry runs to~/.sitrep/codex-mcp-headers.sh(mode 0700). Last, it trusts the plugin's hooks: see Codex hook trust. Nothing is written into Codex's configuration for the agent tools: that is yours to add. - OpenCode: the
sitrep-opencode-reporteruser service, started, with the settings file it shares with codex-reporter,~/.sitrep/codex-reporter.env(mode 0600; written once when--codexis in the same run). Nothing of OpenCode's is written and noopencodecommand is run. The reporter finds OpenCode 2's background service from the registration file OpenCode keeps (~/.local/state/opencode/service.json, under$XDG_STATE_HOMEwhen that is set), never starts it, and speaks to it only through OpenCode's own client: it reads sessions, their events, asks and models, and replies only with your answer to an open permission (Allow once, or Deny with your reason) or question, never "always". It sees the sessions that service runs: theopencodeterminal, the desktop app, andopencode runwhile the service is up. A session idle when the reporter starts shows at its next event. - Pi: one file in Pi's extensions folder and
~/.sitrep/pi-reporter.env: see Pi.
Each component is applied on its own, the server first. One that is blocked is left out with the reason, and one whose command fails stops there. The others are still applied, except the reporters when this run's server was left out or failed. The install then exits non-zero.
Running the install again is safe: it keeps a config that exists and changes only what you pass (--url, --bind,
--port, the secret; the reporters' URL follows the rule above), rewrites the service units, restarts the services and
trusts the Codex hooks again.
Hermes
Hermes's sessions reach the dashboard through hermes-reporter, a sidecar container that mounts Hermes's state volume
read-only. It needs nothing installed in Hermes and never writes to it. Build the clone (npm run build), then start,
stop, upgrade and read its logs with the commands in hermes-reporter/README.md. It reads the server address and
secret from ~/.sitrep/codex-reporter.env. Never mount the volume writable.
Pi
Pi's sessions reach the dashboard through pi-reporter, a Pi extension that runs inside each pi process. It only
observes: it never answers, types into, compacts or stops a session, and adds no tool, command or setting to Pi. A Pi
session's panel reads "Answer in pi". What it reports is in pi-reporter/README.md.
Install where Pi 1.6.1 or later runs: --pi in the install line, or in the clone
npx tsx scripts/install.ts --pi (a dry run), then the same with --apply. It checks pi --version first: no pi on
the PATH, or a Pi older than 1.6.1 (pi update updates it), stops the step. It writes two files:
~/.pi/agent/extensions/sitrep-reporter.ts(under$PI_CODING_AGENT_DIRwhen that is set), mode 0644: three lines that load the reporter from this clone. Pi loads every file in that folder, in every project, with no setting. The file's first line marks it as SITREP's; a file at that path without it is someone else's, and the install stops rather than overwrite it.~/.sitrep/pi-reporter.env(mode 0600): the server URL and the admin secret, set as for the other reporters (Which URL the local reporters get), and the settings below.
No Pi setting, session file or settings.json is read or written. Pi sessions started from then on report; an open one
reports after /reload in it.
Update: nothing to install. The file points at the clone, so the clone's update reaches each Pi session at its next
start or after /reload in it. Running the Pi install again changes only the URL or the secret.
What it sees: interactive pi, and print, JSON and RPC runs (print and JSON runs read as headless, so they never
count as needing you). A session shows from its first message: a pi opened and quit sends nothing. A session waits on
you while one of Pi's own dialogs (a confirmation, a choice, an input or an editor) is open in its terminal; a prompt an
extension draws itself shows no Needs you, as in Pi's own status. Not seen: sessions started with --no-extensions, an
SDK host that passes its own resource loader, and agents forked from Pi.
Its log is ~/.sitrep/pi-reporter.log, each line starting with its UTC time; the extension never writes to Pi's
terminal. It says why a session reports nothing (a Pi older than 1.6.1, a bad PI_REPORTER_CAPTURE, a machine id that
cannot be read) and when posting to the server began to fail and why.
Uninstall: npx tsx scripts/uninstall.ts --pi --apply removes the extension file when its first line is SITREP's
mark, and otherwise says it is not SITREP's and leaves it. The extensions folder stays. An open Pi session keeps the
reporter until /reload or a restart. --purge also deletes ~/.sitrep/pi-reporter.env and the log.
WSL
On Windows, SITREP runs inside WSL; native Windows is not supported yet.
- A session inside WSL is a Linux session, so run the Linux line (Add a machine) inside the distribution.
- codex-reporter and opencode-reporter run as user services, which need systemd in the distribution. Current Ubuntu on
WSL has it by default. In another distribution, add
systemd=trueunder[boot]in/etc/wsl.conf, then restart WSL withwsl.exe --shutdownin PowerShell. - The reporters run while the distribution runs ("systemd services will NOT keep your WSL instance alive", in Microsoft's words). That is when its sessions run, but it makes a WSL distribution no place for the server.
- A machine with sessions both in WSL and natively in Windows shows as two machines: two homes, two machine ids.
- Claude Code Desktop's WSL sessions load no plugins, so they do not report.
In a Claude Code session
The plugin adds one command:
/sitrepprints the dashboard link (the plugin'sserverUrl), the connection state (connecting, connected with the server's count of live sessions, offline, token refused or report rejected), the reporter's and the server's versions with any owner, version or update notice, the reports sent, failed and rejected and the events queued and dropped, the last error, this machine's name and id, the session id and any name given below, the session's background work, and the reporter's time per hook. Before the session has started it says only that the reporter is loaded./sitrep name <text>gives the session a display name of up to 80 characters, kept in the plugin's store for that session id (a/clearstarts a new id without it). The name the dashboard shows is the first of: this name, the title Claude Code gave the session, thesessionNameoption, a worktree's branch or folder, the repository folder, andsession-with the first six characters of the id./sitrep mutestops this session's text from the next turn on, on a machine atfullcapture: its rows still go, without their text./sitrep unmuteturns it back on. Kept for that session id across a plugin reload.
Agent tools
The server offers two read-only MCP tools at /api/fleet/mcp, so an agent in Claude Code or Codex can read the board:
fleet_status: what needs you, what failed or is stuck, each machine with its plan windows and spend today, and one row per live session with the state the dashboard shows.machine(a machine's id or whole name) narrows everything to that machine;statenarrows the rows to one state.session_detail: one session, live or ended: its state, what it waits on, plan, agents, files, git, collisions, messages between its agents, plan windows and resume command.idis a row's id fromfleet_status, or the session's own id where only one session has it.
Each session in a result carries its link in the dashboard. Times are epoch milliseconds, costs are estimates, and
unknown is null.
What they never return: an open ask's content (its questions, plan or tool input) or kept text (full capture's prompts and output, agents' whole prompts and answers), whatever secret the caller holds. What they return is no more than a signed-out browser reads from the dashboard. They cannot answer, message or change a session. An agent that calls them hands what they return to its own model provider, as it does anything else it reads.
Who may call them: the dashboard's own rule. While "Require sign-in to view" is off, anyone who can reach the
server; while it is on, only a caller sending the admin secret in X-Sitrep-Token. At most 60 requests a minute from
one address.
Claude Code gets them with the plugin, with nothing to configure: the plugin's own MCP entry points at its
serverUrl with /api/fleet/mcp added, and sends its saved secret. A session takes them at its start, so restart an
open one after the install or an update: quit it, then claude --resume. /mcp lists the server as
plugin:sitrep-reporter:sitrep, with its state. Claude Code's own permission rules decide whether it asks before a
call; to let the tools run without asking, allow mcp__plugin_sitrep-reporter_sitrep__* in your Claude Code
permissions (code.claude.com/docs/en/permissions).
Codex cannot take them from the plugin; you register them yourself, and the install writes nothing into Codex's configuration. Add a machine gives the registration when Codex is picked, in one of two forms:
-
With "Require sign-in to view" off:
codex mcp add sitrep --url http://192.0.2.10:7487/api/fleet/mcp -
With it on, or to keep working if you turn it on later, add to
~/.codex/config.toml:[mcp_servers.sitrep]url = "http://192.0.2.10:7487/api/fleet/mcp"http_headers_helper = "/bin/sh ~/.sitrep/codex-mcp-headers.sh"The helper, which
install.ts --codexkeeps at~/.sitrep/codex-mcp-headers.sh, prints theX-Sitrep-Tokenheader from~/.sitrep/codex-reporter.env, so the secret is never in Codex's configuration, a command line or a URL.codex mcp addcannot set a helper, hence the block.
codex mcp list shows the server. codex mcp remove sitrep removes either form; uninstalling SITREP leaves
~/.codex/config.toml as it is.
A large fleet: past about 30 to 40 live sessions, a whole fleet_status is longer than Codex keeps of a tool's
result, and Codex cuts its middle; past about 60, Claude Code saves it to a file and gives the agent its path. The
summaries come first in the result, and machine and state narrow it.
OpenTelemetry traces
Any app instrumented with OpenTelemetry can send its traces to the server, and its model calls and tool calls show up as sessions beside your coding agents'. Nothing of SITREP's is installed with the app: its own OpenTelemetry exporter does the sending.
Point an app at SITREP with the standard exporter variables. SITREP takes OTLP over HTTP (protobuf or JSON, not gRPC), and traces only:
export OTEL_SERVICE_NAME=support-bot # shown as the session's harness
export OTEL_EXPORTER_OTLP_ENDPOINT=http://192.0.2.10:7487/api/fleet # the exporter adds /v1/traces
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_HEADERS="X-Sitrep-Token=<the admin secret>"
export OTEL_METRICS_EXPORTER=none OTEL_LOGS_EXPORTER=none
To keep the app's metrics and logs going elsewhere, drop the last line and use the traces' own variables in place of
OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_HEADERS: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT set to the whole URL,
http://192.0.2.10:7487/api/fleet/v1/traces, and OTEL_EXPORTER_OTLP_TRACES_HEADERS to the secret, so it goes to SITREP
alone.
-
Python:
pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-http, then set up the exporter, and an instrumentation for your model client such asopentelemetry-instrumentation-openai-v2. Python's SDK sends no host name unless asked, so also setOTEL_EXPERIMENTAL_RESOURCE_DETECTORS=host. If you start the app withopentelemetry-instrument, the variables above matter: it otherwise uses gRPC and sends metrics and logs too.from opentelemetry import tracefrom opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporterfrom opentelemetry.sdk.trace import TracerProviderfrom opentelemetry.sdk.trace.export import BatchSpanProcessorprovider = TracerProvider()provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter()))trace.set_tracer_provider(provider) -
Node:
npm install @opentelemetry/sdk-node, then start it before the rest of the app. It reads the variables above and sends protobuf.import { NodeSDK } from '@opentelemetry/sdk-node';new NodeSDK().start();
What shows up. SITREP reads the spans the OpenTelemetry GenAI semantic conventions define, the gen_ai.*
attributes that GenAI instrumentations write:
- A session is a conversation: the traces with a span that carries the same
gen_ai.conversation.id(elsesession.id, or the Vercel AI SDK'sai.telemetry.metadata.sessionId). Any span of a trace can name it: until one does, the trace shows as a session of its own, and it moves into its conversation when one does. A trace that names none stays a session of its own. - Its harness is the service name of the app that made its GenAI spans; its machine is the host name that app reports, else the address its traces came from. In a trace that crosses services, the other services' spans count only for their GenAI spans.
- Each trace is a turn, ended by the app's own root span. Each model call (
chat,text_completion,generate_content,embeddings) is a model request with its model and tokens, priced like any harness's; cached input is priced at the cache rate. Eachexecute_toolspan, or a span that names a tool (as Pydantic AI's do), is a tool call, failed when the span ended in an error, and failed calls make Issues as any harness's do. A session's name is its agent's (gen_ai.agent.name), else the service name. - It reads Working while a turn is open and Idle between turns, and 75 seconds after its last export moves to History as "Went offline". It is shown, never answered: answer in the app.
- Turns, History, Group by, Compare, search, Export, Issues and feedback treat these sessions as any other.
Limits.
- No text is kept: prompts, completions and tool input and output are dropped, whatever the app records, and so is the text of an error. Only the figures above are kept.
- Only
gen_ai.*spans count. An instrumentation that uses other names (OpenInference'sllm.*, for one) shows nothing; the rest of a trace (HTTP calls, database queries) is taken and ignored, and a trace with no GenAI span is not a session. - A failed model call shows as a model request without its tokens; only failed tool calls make Issues.
- With the record off, failed calls never mark these sessions Failed: without its rows, the server cannot tell a call sent again from a new one.
- A host that runs a reporter as well shows twice on Machines, under the same name: once for the reporter, once for the app's traces.
- Don't name the service
claudeorcodex: the session is then taken for that harness's, and Machines lists that harness's reporter on the app's host. - Not shown: the context window's fill (Tokens and Output/s read "—"), plan windows, and an agent's own agents, whose calls count in the session. A cache write is priced at the 5-minute rate.
- The admin secret is in the app's environment, which its child processes inherit, and crosses the LAN in clear, like every report (Security). Refused exports are listed on Machines with the reporters' refusals.
The record
SITREP keeps a row for every turn, model request and tool call of every session. A session's Turns view shows
them, live and after it ends; History's Issues, the turn and call counts in Compare and Group by, the search over
kept text and the rows in an Export all come from them. Rows are kept as long as their session (RETAIN_SESSIONS_MS) and deleted with
it.
What a machine sends is that machine's setting:
| Level | The machine sends |
|---|---|
off | No rows |
trace (the default) | A row for each turn, model request and tool call: when, in which loop, the model and its tokens, the tool's name, how the call ended and its exit code, and two hashes: one of the tool and its input, by which a repeated call is seen, and one of the tool and the first 80 characters of a failed call's error, by which the same error is recognised across sessions. No text. The hashes are not salted: someone who reads the rows and guesses a call's exact input, or an error's opening words, can check the guess against them |
full | The rows with their text: prompts, the model's messages and visible reasoning, tool input and output. The Claude plugin also sends each agent's whole prompt and answer, as fullPrompts does. Each text is redacted on the machine by the reporters' secret rules and cut at 20,000 characters |
- Set it with the Claude plugin's
captureoption (Claude plugin options), withCODEX_REPORTER_CAPTUREfor Codex, OpenCode and Hermes, and withPI_REPORTER_CAPTUREfor Pi./sitrep mutestops one Claude session's text. - One switch turns the record off for the whole fleet: Settings → Server → Keep a record of turns and calls, or
SITREP_TRACE=offas its default. Reporters then send no rows. - Reading kept text needs a sign-in. Rows, counts, issues and feedback are read like everything else. A row's
text, an agent's whole prompt and answer (
fullPrompts), a search over kept text, an issue's error text and the export are served only to a signed-in browser. A server with no admin secret has no sign-in: it serves kept text to anyone who can reach it, as it serves everything else, and the export, feedback, claims and closing an issue, which need a sign-in, are not available. Set a secret before turningfullon. - Kept text crosses the LAN in clear, like every report (Security), whatever the
dashboard's sign-in does. Redaction is by pattern: it removes what is shaped like a secret, not source code or
personal data. Turn
fullon only for machines and networks where that is acceptable. - Claude's reasoning is in the record only where Claude Code has it. Interactive sessions get redacted thinking
unless you set
"showThinkingSummaries": truein your own Claude Code settings; SITREP never changes that setting. Without it, Turns shows what the model said between its calls. Codex's reasoning is its summaries where a session has them; Hermes's is itsreasoningcolumn. - Unknown stays unknown. Codex reports a tool call's outcome only for shell commands, and Hermes for none, so those calls read "—" and raise no issues, and a session none of whose calls has an outcome reads "—" under Failed, not 0; one with an outcome for only some reads its count with a "+" ("0+" for a Codex session whose commands all passed). Rows a reporter had to drop while the server was unreachable show as a counted gap.
- Names. Sign in with the admin secret and any name. Everyone holds the same secret, so a name is whatever its owner typed: it says who answered, left feedback, closed an issue or claimed something, and proves nothing.
- Claims restrict nothing: anyone signed in can still answer, and the terminal still wins. A session's claim ends when the session no longer needs someone, and lasts across a server restart.
Ports
| Port | What |
|---|---|
| 7487/tcp on the server | Everything: the reporters' API, the dashboard, and its live stream (Server-Sent Events). PORT changes it |
| 5173 on a development machine | The Vite dev server, only under npm run dev |
| 443/tcp outbound from the server | Phone notices, to the push service of each browser that turned them on (Google's for Chrome, Apple's for Safari, Mozilla's for Firefox); only while some device has them on (From a phone) |
Reporters only make outbound connections. codex-reporter talks to the local Codex daemon over its Unix socket, not a
port, and opencode-reporter to OpenCode's background service on the same machine, at the address OpenCode
registered.
Settings
In the dashboard. Signed in, Settings → Server changes answering, the activity feed, the record of turns and calls, the stuck thresholds per model
family, the lifecycle timers and retention; signed out, it shows them read-only. The server keeps them in its database
and applies them at once; the server.env values below are their defaults. A row's Reset removes the change made in
Settings, so the server.env value applies again, including one edited there later (after a restart). Settings takes
retention of 1 hour or more, timers of 1 second or more and stuck thresholds of 10 seconds or more. The reporters get
the answering and feed settings in the reply to their next report. Settings also lists the price table and, under
About, the address, port, allowed hosts, time zone and log level, which only server.env and a restart change.
In the env files. The server, codex-reporter and opencode-reporter read their settings from env files
(KEY=VALUE lines) through node --env-file. Change one, then restart its service (systemctl --user restart sitrep,
sitrep-codex-reporter or sitrep-opencode-reporter, or re-run the install). The Pi extension reads its file when Pi
loads it: a session's start, or /reload in it.
The tables list every setting each program reads, with the default it uses when the setting is unset or empty.
scripts/server.env.example, scripts/codex-reporter.env.example and scripts/pi-reporter.env.example carry the same
list.
Server: ~/.sitrep/server.env
The server also reads a .env file at the repository root when there is one (handy under npm run dev). A setting
already in the environment, such as one from the service's server.env, wins over it.
| Setting | Default | Meaning |
|---|---|---|
HOST | 127.0.0.1 | Where it listens. 0.0.0.0, or the LAN address, for other machines |
PORT | 7487 | Its port |
SITREP_TOKEN | none (the install makes one) | The admin secret: reporters send it in X-Sitrep-Token, and you sign in with it to answer sessions. Empty turns auth off: reports are taken from anyone and nothing can be answered. The server warns at start about one shorter than 24 characters |
SITREP_DB | <repository>/data/sitrep.sqlite (the install sets ~/.sitrep/data/sitrep.sqlite) | The SQLite database (WAL mode: -wal and -shm files sit beside it) |
SITREP_ALLOWED_HOSTS | empty | Host names other machines type, comma-separated. localhost, ::1, 127.x.x.x and the HOST address always work; with HOST=0.0.0.0 any IP address does |
SITREP_RESPOND | on | Whether sessions can be answered from the dashboard. on or off (also true/false, 1/0); any other value stops the server at start. Answering also needs the activity feed on |
SITREP_ACTIVITY_FEED | on | Whether the live activity feed is asked for. Same values as above |
SITREP_TRACE | on | Whether the server keeps the record of turns, model requests and tool calls. Off, reporters send none, and sessions from then on have no record. Same values as above; the default for the switch in Settings |
SITREP_PRICES | <repository>/server/prices.json | Price overrides, laid over LiteLLM's table. A bad file stops the server at start |
SITREP_REQUIRE_SIGN_IN_TO_VIEW | off | Whether the dashboard shows anything before signing in. Same values as SITREP_RESPOND; the default for the switch in Settings |
SITREP_LOG_LEVEL | info | How much it logs: debug, info, warn or error; any other value reads as info |
SITREP_BUILD | unset | The commit of a development build (7 to 40 hex digits, optionally followed by -dirty), sent with the server's version; any other value is ignored |
REMOVE_AFTER_MS | 75000 | A live session not heard from this long leaves the dashboard; History records it as "Went offline", and it comes back when it reports again |
LINGER_MS | 8000 | How long a finished session remains visible before it moves to History |
DETACHED_HIDE_AFTER_MS | 60000 | A session nobody is attached to shows dimmed this long, then moves behind the Fleet's chip that counts them (Headless, Detached), with the headless runs |
RETAIN_SAMPLES_MS | 86400000 (24 hours) | Chart samples kept |
RETAIN_EVENTS_MS | 2592000000 (30 days) | Activity events kept |
RETAIN_SESSIONS_MS | 2592000000 (30 days) | Ended sessions kept (History) |
STUCK_AFTER_MS_OPUS | 600000 (10 minutes) | How long a running Opus loop may show no activity before it is stuck; doubled while a tool call is open |
STUCK_AFTER_MS_SONNET | 240000 (4 minutes) | The same for Sonnet |
STUCK_AFTER_MS_HAIKU | 180000 (3 minutes) | The same for Haiku |
STUCK_AFTER_MS_FABLE | 180000 (3 minutes) | The same for Fable |
STUCK_AFTER_MS_OPENAI | 180000 (3 minutes) | The same for OpenAI models (Codex) |
STUCK_AFTER_MS_OTHER | 180000 (3 minutes) | The same for any other model |
TZ | the machine's | Node's own time zone setting: "today" in the cost figures starts at local midnight in this zone |
A timer, retention or stuck setting that is not a number of 0 or more reads as its default.
Codex and OpenCode reporters: ~/.sitrep/codex-reporter.env
One file serves codex-reporter, opencode-reporter and the Hermes sidecar.
| Setting | Default | Meaning |
|---|---|---|
CODEX_REPORTER_SERVER_URL | http://127.0.0.1:7487 | Where reports go |
CODEX_REPORTER_TOKEN | none | The server's admin secret |
CODEX_REPORTER_RESPOND | everything | How far Codex and OpenCode sessions here take answers: off, questions, questions-and-plans or everything. An OpenCode permission needs everything; its questions, questions or more |
CODEX_REPORTER_ACTIVITY_FEED | on | Send the activity feed of a loop someone is watching; on unless off, false or 0. Answering needs it on |
CODEX_REPORTER_CAPTURE | trace | What this machine sends of each session's record: off, trace or full. opencode-reporter and hermes-reporter read the same key. Any other value stops the reporter at start |
CODEX_REPORTER_CODEX_BIN | codex | The codex executable codex-reporter runs to find the Codex daemon, looked up on the service's PATH |
XDG_STATE_HOME | ~/.local/state | Where opencode-reporter looks for OpenCode's opencode/service.json. Set it only where OpenCode's state folder is somewhere else |
Like Codex and Claude Code themselves, codex-reporter also follows CODEX_HOME (default ~/.codex) to find Codex's
session files, and both reporters follow CLAUDE_CONFIG_DIR (default ~/.claude) for the machine id they share with
the Claude plugin.
Pi extension: ~/.sitrep/pi-reporter.env
Read once when Pi loads the extension; a missing file means every default.
| Setting | Default | Meaning |
|---|---|---|
PI_REPORTER_SERVER_URL | http://127.0.0.1:7487 | Where reports go |
PI_REPORTER_TOKEN | empty | The server's admin secret, sent as X-Sitrep-Token |
PI_REPORTER_CAPTURE | trace | What this machine's Pi sessions send of their record: off, trace or full. Any other value makes the extension report nothing and log the value once |
PI_REPORTER_ACTIVITY_FEED | on | Send the activity feed of a session someone is watching; on unless off, false or 0 |
Claude plugin options
Set with claude plugin configure sitrep-reporter@sitrep (or Configure in /plugin). These are
every option mod/claude-reporter/.claude-plugin/plugin.json declares; a missing or malformed value takes
its default.
| Option | Default | Meaning |
|---|---|---|
serverUrl | http://127.0.0.1:7487 | Where reports go. Empty reads as the default |
token | empty | The server's admin secret, sent with every report and request; leave it empty when the server has none (a sensitive option: Claude Code keeps it in its secure storage) |
respond | everything | What the session takes from the dashboard: off (nothing), questions (answers to questions, and new messages while idle), questions-and-plans (also approving or sending back a plan) or everything (also allowing once or denying a tool, and /clear, /compact). Any other value reads as off. Needs activityFeed on and the server's SITREP_RESPOND |
activityFeed | on | While the dashboard has a loop's panel open, send that loop's last 20 tool calls and the text between them (each cut to 300 characters, secrets redacted), and for a Bash call its whole command (up to 20,000 characters, secrets redacted) and how it ended; command output is never sent. The server keeps it in memory only. Answering needs it on |
flushIntervalMs | 1000 | The least time between reports while something changes, in milliseconds; less than 200 reads as 200 |
heartbeatMs | 5000 | Report at least this often even when nothing changed, in milliseconds; less than 1000 reads as 1000 |
sessionName | empty | A display name for this machine's sessions, used after the /sitrep name name and Claude Code's own title (In a Claude Code session). Usually left empty |
showStatus | on | Show the reporter's state in the status line under the prompt: dashboard v<version> ● N live, where the version is the dashboard's, as shown under its name (the plugin's own is in /sitrep). In place of the count it shows ○ connecting (with no version until the server first answers), ○ offline, ○ token refused, or ○ report rejected when the server rejects this session's reports. After the count comes · update plugin or · update server when the versions do not fit, or · update available when a newer plugin exists. ⚠ comes first when the server is plain HTTP beyond this machine |
fullPrompts | off | Send each agent's whole task prompt and final answer (up to 20,000 characters each, secrets redacted) so the dashboard can show them in full. Off, only the first 400 characters are sent. Reading them in the dashboard needs a sign-in |
capture | trace | What this machine sends of each session's record: off, trace or full; any other value reads as off. full also sends what fullPrompts does |
Files and services
| Machine | Path | What |
|---|---|---|
| Server | ~/.sitrep/server.env | Server settings with the admin secret (0600) |
| Server | ~/.sitrep/data/ | The database |
| Server | ~/.config/systemd/user/sitrep.service, or ~/Library/LaunchAgents/dev.sitrep.server.plist | The service. Its log: journalctl --user -u sitrep, or ~/.sitrep/server.log on macOS |
| Codex or OpenCode machine | ~/.sitrep/codex-reporter.env | Reporter settings with the admin secret (0600), shared by codex-reporter, opencode-reporter and the Hermes sidecar |
| Codex machine | ~/.config/systemd/user/sitrep-codex-reporter.service, or ~/Library/LaunchAgents/dev.sitrep.codex-reporter.plist | The service. Its log: journalctl --user -u sitrep-codex-reporter, or ~/.sitrep/codex-reporter.log; each line starts with its UTC time |
| Codex machine | ~/.sitrep/codex-hooks.ndjson (and .1) | The spool the plugin's hooks append to; owner-only, rotated at 5 MB |
| Codex machine | ~/.sitrep/codex-reporter-state.json | What codex-reporter keeps across restarts: the dashboard deliveries it acted on and each session's git base (0600) |
| Codex machine | ~/.sitrep/codex-mcp-headers.sh | The helper that gives Codex's agent tools entry the secret (0700) |
| Codex machine | ~/.codex/config.toml, Codex's plugin cache, ~/.codex/.hook-trust/ | The marketplace and plugin entries codex plugin wrote, and the trust the install wrote for our hooks |
| OpenCode machine | ~/.config/systemd/user/sitrep-opencode-reporter.service, or ~/Library/LaunchAgents/dev.sitrep.opencode-reporter.plist | The service. Its log: journalctl --user -u sitrep-opencode-reporter, or ~/.sitrep/opencode-reporter.log; each line starts with its UTC time |
| OpenCode machine | ~/.sitrep/opencode-reporter-state.json | What opencode-reporter keeps across restarts: the dashboard deliveries it acted on and each session's git base (0600) |
| Pi machine | ~/.pi/agent/extensions/sitrep-reporter.ts (under $PI_CODING_AGENT_DIR when set) | The extension file that loads the reporter from the clone (0644) |
| Pi machine | ~/.sitrep/pi-reporter.env | The Pi extension's settings with the admin secret (0600) |
| Pi machine | ~/.sitrep/pi-reporter.log | The Pi extension's log; each line starts with its UTC time |
| Claude machine | ~/.claude/settings.json | The marketplace, enabledPlugins and pluginConfigs entries claude plugin wrote (the secret is in the system's secure credential store), and the telemetry env keys and otelHeadersHelper the install wrote |
| Claude machine | ~/.sitrep/claude-otel-token | The admin secret the telemetry headers helper sends (0600) |
| Each reporter machine | ~/.claude/sitrep-machine-id (under $CLAUDE_CONFIG_DIR when set) | The machine id every reporter on it shares |
The services record the PATH of the shell that ran the install, so the reporters can find codex and git.
Re-run the install after moving Node or Codex.
Security: one owner, one secret
One owner holds one admin secret, and the server speaks plain HTTP on a home LAN treated as trusted. A machine off the LAN reaches the server through an SSH tunnel (Off the LAN), and a phone over your own private network with HTTPS in front (From a phone). What that means:
- One secret everywhere. Every reporter machine holds the same admin secret, and it travels in clear on every report over plain HTTP. Anyone who can watch the LAN can copy it.
- The secret can answer. With it, anyone can answer prompts and send messages to any Claude Code session, and any daemon-hosted Codex session, on any machine. Your sign-in in the browser also crosses the LAN in clear.
- Reading is open. Anyone who can reach port 7487 sees every session without signing in: names, machines, paths, branches, plan steps, bounded, redacted excerpts of prompts, answers, commands, failed-tool output and messages agents send each other, and each session's record without its text: its turns, model requests and tool calls with their times, models, token counts and outcomes. The agent tools return the same, without open asks or kept text.
- What leaves each machine. The reports carry all of that in clear over the LAN. Their free text is redacted on the machine and cut to fixed lengths. While a session waits on you, its report also carries the open ask as the native prompt shows it, redacted: the questions, the plan, or the tool call and its input, including the redacted Codex patch while a file approval is open. The server holds an open ask in memory only and shows it only after sign-in.
- What full capture sends. A machine set to
full(The record) also sends its sessions' prompts, the model's text and tool input and output, redacted and cut, in clear over the LAN. The server stores them and shows them only after sign-in. The default,trace, sends no text. - What Claude Code's telemetry sends. Its log export carries every event Claude Code emits, and with each the
account's email, user and organization ids (prompt and response text arrive as
<REDACTED>); it crosses the LAN in clear like the reports. The server reads only theapi_requestevents' usage fields (request, session and agent ids, model, token counts) and drops everything else unstored and unlogged. - What a phone notice sends. While a device has notifications on (From a phone), each notice goes from the server, encrypted to that device, through its browser's push service (Google's, Apple's or Mozilla's): "Needs you", the session's name, its project and its machine, and a link to the ask. Never a question, plan, tool or answer. The push service sees the device's push address, the notice's size and time, how long to keep it and how urgent it is, not its text. The phone's own settings decide whether its lock screen shows the text.
Ways to narrow it, from least to most work:
- Listen on the LAN address and allow port 7487 only from the LAN (see Deploy).
- Close reading: Settings → Server → Require sign-in to view, or
SITREP_REQUIRE_SIGN_IN_TO_VIEW=onas the default. The dashboard then shows nothing before the sign-in. - Turn answering off: Settings → Server → Answering, or
SITREP_RESPOND=offas the default. The secret then only lets a machine report. - Use an SSH tunnel from the laptop (Off the LAN): it encrypts the secret and your sign-in, and the
dashboard at
localhostis a secure context, so browser notifications work. - Put a TLS-terminating proxy in front of the server and list its host name in
SITREP_ALLOWED_HOSTS. The server has no built-in HTTPS. You need HTTPS for the phone page, and wherever the server is reached other than over the LAN, a tunnel or a VPN. A proxy on the server machine that meets its requirements is trusted for the client's address and for HTTPS.
Rotating the secret. Put a new value in server.env and restart the server:
sed -i '/^SITREP_TOKEN=/d' ~/.sitrep/server.env && printf 'SITREP_TOKEN=%s\n' "$(openssl rand -hex 24)" >> ~/.sitrep/server.env
systemctl --user restart sitrep
On macOS, sed -i is sed -i '' and the restart is launchctl kickstart -k gui/$(id -u)/dev.sitrep.server.
printf is the shell's own, so the new secret is never on a command line. Then, on each machine, re-run the reporter
install with the new secret on --token-stdin and --apply. That updates the Claude plugin's option, the telemetry
token file, codex-reporter.env and pi-reporter.env, and restarts codex-reporter and opencode-reporter; a Pi session
takes it at its next start or /reload. Settings → About gives these commands, and the one that reads the
secret, for the server's OS. The new secret also ends every browser sign-in, so sign in again with it, and every
device's notifications, so turn them on again on each phone. Otherwise a sign-in lasts 400 days unused in that browser,
and each use renews it.
Back up and restore
Everything the dashboard keeps is the SQLite database on the server: sessions, agents, events, chart samples and
History with its record, for as long as the retention settings say. It holds no transcripts unless a machine is set to keep text
(capture at full, or fullPrompts), and it does not back up any provider session:
each harness keeps those on its own machine (Claude Code in ~/.claude, Codex in ~/.codex), and restoring the
dashboard cannot bring a session back.
The database also holds the server's key pair for phone notices and each device's push address, so a restored backup keeps notifications working, and every backup holds that private key, as it holds every sign-in's hash: keep backups private. A new, empty database makes a new key pair: turn notifications on again on each phone.
From the dashboard: Settings → About → Download backup (signed in) gives a consistent copy of the database
(SQLite's online backup, page for page) without stopping or holding the server. Keep server.env too: it holds the admin secret.
From the shell (copy the -wal and -shm files too when they are there):
systemctl --user stop sitrep
cp -p ~/.sitrep/data/sitrep.sqlite* <backup folder>/
cp -p ~/.sitrep/server.env <backup folder>/ # holds the admin secret: keep it private
systemctl --user start sitrep
With the sqlite3 tool installed, sqlite3 ~/.sitrep/data/sitrep.sqlite ".backup '<backup folder>/sitrep.sqlite'"
takes a consistent copy without stopping the server.
Restore: stop the service, delete the database and its -wal and -shm files, copy the backup in, start the service.
Every unfinished session in the backup shows its stored state. Those still running carry on when their reporters send
again, a few seconds later; the rest leave after REMOVE_AFTER_MS.
Upgrade
Upgrade the server first, then the other machines. A server older than its reporters answers 400 to a report that carries a value it does not know, such as a new kind of event, and the reporter drops that report. Back up the database first (Back up and restore). The server applies a new version's database migrations by itself when it starts, and going back to an older version can mean restoring that backup.
On each machine, run the line you installed it with again: it updates ~/sitrep, fast-forward only, rebuilds it and
re-applies the install after y. Or, in the machine's clone, wherever it is:
git pull --ff-only
npm ci
npm run build
npx tsx scripts/install.ts --apply # the reporters installed here; the server is never picked by itself
This is the Update command a machine's row in Machines gives. With no component named, the install re-applies each reporter installed on the machine. What each part needs:
- Server:
systemctl --user restart sitrep(macOS:launchctl kickstart -k gui/$(id -u)/dev.sitrep.server), or re-runnpx tsx scripts/install.ts --server --apply. Running sessions stay on the dashboard in their last state and carry on when their reporters next send. - Codex: the install copies the new plugin into Codex's cache, trusts its hooks again and restarts codex-reporter; the configs are kept.
- OpenCode: the install restarts opencode-reporter; its config is kept.
- Claude Code: the install runs
claude plugin update, so Claude Code takes the clone's new version. Then restart each open Claude Code session: quit it, thenclaude --resume, which keeps the conversation. New sessions take the new plugin at once. The same restart loads telemetry settings the install first wrote or changed. The install keeps the telemetry settings, unless the server address or the helper changed, and keeps the admin secret already on the machine (~/.sitrep/claude-otel-token). With no secret at all, it leaves Claude Code out and says to re-run with--token-stdin. - Pi: the extension loads from the clone, so each open Pi session takes the new code after
/reloadin it, and a new one at its start. - Hermes: on the Hermes machine, once its clone is built,
docker restart sitrep-hermes-reporter(hermes-reporter/README.md).
When a reporter and the server are on versions that do not fit, Machines and scripts/doctor.ts say which side to
update, and the machine's row in Machines gives its Update command.
After every deploy, run npx tsx scripts/doctor.ts on each machine and check Machines: every reporter's version
fits the server (doctor says "fits the server") and none reads "outdated". An outdated Claude reporter is a session
running an older plugin: its machine's clone was not updated, or the session loaded the plugin before it was. Run that
machine's Update command, then restart (resume) the session.
Prices. At each start the server fetches LiteLLM's model_prices_and_context_window.json (5 s limit) and lays it
over the copy shipped in server/model_prices_and_context_window.json. Settings shows which one is in use and why a
fetch failed. To refresh the shipped copy, download the file from LiteLLM's repository into that path and update
SNAPSHOT_AS_OF in server/src/fleet/pricing.ts. Overrides go in prices.json.
A Codex request is priced at the tier Codex recorded for it: one in fast, flex or ultrafast mode at the model's own
prices for that mode where the table has them, else at its standard prices; a request with no recorded tier, as in
older Codex versions and session files, at the standard rate. Settings → Prices lists each model's tier prices and says
so. An override in prices.json replaces a model's row whole and carries no tier prices, so that model's tiers are
priced at its standard rates.
Codex hook trust
Codex runs a plugin's hooks only once they are trusted, and ties that trust to a hash of the plugin's contents, so
every plugin update needs it again. install.ts --codex writes it as Codex's own /hooks screen does:
hooks/list, for the hooks Codex finds;- for our plugin's hooks that it lists as untrusted or modified, and no other, one
config/batchWrite: key pathhooks.state, mergeupsert,{ "<key>": { "trusted_hash": "<current hash>" } }per hook, andreloadUserConfig: true.
It reaches Codex's app-server the way Codex's own clients do: through the managed daemon's socket when the daemon
runs, else a private codex app-server over stdio. The dry run prints both requests. Our keys look like
sitrep-codex@sitrep:hooks/hooks.json:<event>:<group>:<handler> (for example
sitrep-codex@sitrep:hooks/hooks.json:pre_tool_use:0:0). Codex keeps them in ~/.codex/config.toml under [hooks.state], with a content baseline in
~/.codex/.hook-trust/. If the install cannot reach Codex, it says so; then trust the sitrep-codex hooks in Codex's
/hooks instead.
While the hooks are not trusted, the machine's row in Machines shows the Codex hooks off, auto-compacts read "—" and a thread outside the daemon cannot show that it waits on a permission. Usage, context, plans and agents still come from the session files. Uninstalling leaves the trust entries; they do nothing once the plugin is gone.
Off the LAN
Sessions on the laptop keep running when it leaves the LAN, and its reporters queue and drop as in What runs where. To keep reporting and see the dashboard, tunnel to the server machine over SSH, however you reach it from outside:
ssh -N -L 7487:127.0.0.1:7487 server
The dashboard is then at http://localhost:7487, a secure context, so browser notifications work there. If the server
listens only on its LAN address, use -L 7487:192.0.2.10:7487. If something on the laptop already uses 7487, pick
another local port and use it below. Settings → About gives this command for the server's address and port, and
Settings → This browser shows it while notifications are unavailable.
Point the laptop's reporters at the tunnel:
ssh server "sed -n 's/^SITREP_TOKEN=//p' ~/.sitrep/server.env" \
| npx tsx scripts/install.ts --url http://127.0.0.1:7487 --token-stdin --apply
The laptop then reports only while the tunnel runs, on the LAN or off it. Keep the tunnel up whenever you work, or
switch back with --url http://192.0.2.10:7487 when you are home. --url moves Claude Code's telemetry endpoint with
the plugin's URL, but Claude Code reads it at start: a session started before the switch sends its usage to the old
address until restarted. Pi sessions take a new URL at their next start or /reload.
From a phone
The phone page, /phone/ on the server, lists what needs you: tap one to see the question, permission or plan and answer
it. It installs on the home screen and gets a notification when a session starts needing
you. A phone reaches it over your own private network with HTTPS in front, on a name the phone trusts: a browser gives
a page notifications only over HTTPS. With Tailscale:
-
Tailscale on the server machine and on the phone, signed in to the same tailnet. In Tailscale's admin console, on the DNS page, turn on MagicDNS and, under HTTPS Certificates, Enable HTTPS. Your machine names and your tailnet's name then go into the public Certificate Transparency log: do not do this if the server's name says something you would keep private.
-
HTTPS to the server, on the server machine:
tailscale serve --bg 7487It answers at
https://<machine>.<tailnet>.ts.netand passes each request to127.0.0.1:7487, so the server must listen on loopback:--bind 0.0.0.0, as in Deploy, or127.0.0.1. -
Allow the name: add
<machine>.<tailnet>.ts.nettoSITREP_ALLOWED_HOSTSinserver.env, and restart the server. -
On the phone, open
https://<machine>.<tailnet>.ts.net/phone/.- iPhone (iOS 16.4 or later): Share → Add to Home Screen, open SITREP from its icon, sign in there, and turn Notifications on. In Safari itself, outside the Home Screen app, there are no notifications.
- Android: in Chrome, sign in and turn Notifications on. Chrome's menu can also add the page to the home screen.
What a notice says: "Needs you", the session's name, and its project and machine; tapping it opens the ask. A session brings one notice each time it starts needing you, and a later one for the same session replaces it on the device. Stuck, failed and plan-window notices stay in the dashboard. Every device with notifications on, under any sign-in, gets every notice; a claim quiets none. What it reveals, and to whom: Security. The push service keeps a notice for an offline phone up to 6 hours. A notice still reaches a phone whose Tailscale is off, but the page needs the server: turn Tailscale on to open it.
When notices stop: signing out on that phone, Sign out everywhere, and a new admin secret each end its notices, as does a new database (a restored backup keeps them). Sign in and turn Notifications on again.
On a desktop the page works too, and its switch turns these notices on for that browser; they arrive with no SITREP page open. The dashboard's own notices have a separate switch, in Settings → This browser.
Another proxy works in Tailscale's place if it runs on the server machine, connects to the server over loopback,
and sets X-Forwarded-Proto and X-Forwarded-For itself, replacing what the client sent; Tailscale Serve does all
three. The server trusts those headers only from loopback. Behind such a proxy it sees each phone's own address (for
the sign-in lockout and its log) and that the page came over HTTPS (the sign-in cookie is then Secure). A proxy that
passed a client's own X-Forwarded-Proto through would let that client claim HTTPS. A proxy that connects to the
server's LAN address is an ordinary client: the page works, and every phone shares the proxy's address.
Check a machine
npx tsx scripts/doctor.ts
It changes nothing. It checks Node, the clone and its build, the Claude plugin and its saved secret, and Claude Code's
telemetry: the settings the install writes, that they send to where the plugin reports, and the headers helper, run as
Claude Code runs it (its output is never printed). It checks the Codex plugin and its hook trust, the codex-reporter
service, the opencode-reporter service and OpenCode's registration file (it never runs opencode), Pi's version, its
extension file (SITREP's, pointing at this clone) and pi-reporter.env, the server each reporter sends to
(/api/fleet/state), and whether that server takes each admin secret a config here holds for it (codex-reporter's,
Pi's, the telemetry token file's and, on the server machine, server.env's). It
checks whether this machine's reporter versions fit, as the server judges them for Machines (a version no live session
reports is "last reported"), and the machine id. A sender whose secret it cannot check gets a line saying why (the
plugin's own copy is in Claude Code's secure storage, which doctor cannot read). Each problem prints the command that
fixes it, or the section here that does, and doctor exits 1 when there is one. Claude Code or Codex on a machine
without its reporter is not a problem: doctor notes that it "reports nothing from here", with the command that would
install the reporter, and does not start Codex to look further. A machine's row in Machines and Settings → About give
this command.
Troubleshooting
Fix commands. A machine's row in Machines gives its commands for its OS, each problem beside the command that fixes it; Settings → About gives the server's. Run them on that machine, in its clone.
| To | Linux (systemd) | macOS (launchd) |
|---|---|---|
| Check the machine | npx tsx scripts/doctor.ts | the same |
| Update it | git pull --ff-only && npm ci && npm run build && npx tsx scripts/install.ts --apply (the reporters installed here), then restart each open Claude Code session (quit it, then claude --resume) and /reload in each open Pi session. With no admin secret on the machine, the installer leaves Claude Code out, applies the others, and says to re-run with --token-stdin | the same |
| Trust the Codex hooks | npx tsx scripts/install.ts --codex --apply (or Codex's /hooks) | the same |
| Restart codex-reporter | systemctl --user restart sitrep-codex-reporter | launchctl kickstart -k gui/$(id -u)/dev.sitrep.codex-reporter |
| Read codex-reporter's log | journalctl --user -u sitrep-codex-reporter -e | tail -n 50 ~/.sitrep/codex-reporter.log |
| Restart opencode-reporter | systemctl --user restart sitrep-opencode-reporter | launchctl kickstart -k gui/$(id -u)/dev.sitrep.opencode-reporter |
| Read opencode-reporter's log | journalctl --user -u sitrep-opencode-reporter -e | tail -n 50 ~/.sitrep/opencode-reporter.log |
| Read the Pi extension's log | tail -n 50 ~/.sitrep/pi-reporter.log | the same |
| Restart the server | systemctl --user restart sitrep | launchctl kickstart -k gui/$(id -u)/dev.sitrep.server |
| Read the server's log | journalctl --user -u sitrep -e | tail -n 50 ~/.sitrep/server.log |
| Uninstall | npx tsx scripts/uninstall.ts --apply (the reporters installed here) | the same |
| Symptom | Check |
|---|---|
| A session never appears | A session is kept off the dashboard until it has done something, such as its first prompt. Then run scripts/doctor.ts on its machine: it checks that the reporters reach the server |
| Reports refused with 401 | The reporter's secret is missing or wrong. Machines lists it under "N refused, no machine", by address, with the install command that fixes it: re-run the reporter install with --token-stdin |
| Requests refused with 403 | The server does not expect that host name. Add it to SITREP_ALLOWED_HOSTS, or use the IP address |
| No Codex sessions from a machine | Is codex-reporter running? Run scripts/doctor.ts, then read its log, which names any session whose report it could not build, with the error. It needs Node 22.15 or later, and codex and git on the PATH the install recorded |
| A machine's Codex hooks are off | Re-run npx tsx scripts/install.ts --codex --apply, which trusts them (Codex hook trust) |
| A Codex session says "Answer in its terminal" or "Answer in the Codex app" | Only threads in the machine's Codex daemon can be answered: CLI sessions and desktop-app remote projects. Desktop-app local projects (they read "Answer in the Codex app"), codex exec, CLI sessions started with --no-daemon, --profile or most -c overrides, and machines without the daemon are watch-only |
| OpenCode sessions don't appear | Only OpenCode 2's background service is seen: the opencode terminal, the desktop app and opencode run while it is up. Not --standalone, --server <url>, opencode acp, a plain opencode serve, a disabled service, or OpenCode 1 (npm opencode-ai). Is opencode-reporter running? Its log reads no OpenCode background service (<why>); waiting while it finds none. Where OpenCode's state folder is not ~/.local/state, set XDG_STATE_HOME in ~/.sitrep/codex-reporter.env and restart the reporter. A session idle when the reporter started shows at its next event |
| A Pi session doesn't appear | It shows from its first message. Pi must be 1.6.1 or later and started without --no-extensions. The extension's log, ~/.sitrep/pi-reporter.log, says why it reports nothing |
Pi says Failed to load extension ".../sitrep-reporter.ts" | The clone moved or was deleted: the extension file loads the reporter from the clone's path. Run npx tsx scripts/install.ts --pi --apply in the clone where it is now, then /reload in Pi |
| Claude sessions show the old plugin after an upgrade (Machines: "outdated") | Run the machine's Update command (Machines), then restart (resume) the session, or start a new one |
| A Claude session's usage and cost stay "—" or stop rising | Run scripts/doctor.ts on its machine. If Claude Code's telemetry is not set up, run npx tsx scripts/install.ts --claude --token-stdin --apply as in Add a machine, then restart (resume) the session, since Claude Code reads the settings only at start. Refused telemetry exports are listed under that machine's "N refused" (401: a missing or wrong secret in ~/.sitrep/claude-otel-token). Until the machine id exists, the headers helper fails and Claude Code sends nothing; doctor says so |
| After an upgrade, a session's reporter reads "update" (Machines: "outdated"), and its asks and message box read "Answer in its terminal" | Its reporter is older than the server supports (claude-reporter 0.2.0, codex-reporter 0.3.0), so the dashboard cannot answer it. Run the machine's Update command, then restart (resume) each open Claude Code session; or update and restart codex-reporter (Upgrade) |
Nothing reports from a machine, and it has no id file (~/.claude/sitrep-machine-id, or under $CLAUDE_CONFIG_DIR) | Start codex-reporter or a Claude Code session; either creates it |
| Nothing reports from a machine, and a reporter says this machine's id cannot be read | The reporter names the file, which cannot be read or holds no id; no reporter makes a new id over it. Fix its permission (chmod 644: the Hermes sidecar reads it as another user) or delete it. A new id makes a new machine row, and the old row stays in Machines until you Remove it |
| The server does not start | Its log (journalctl --user -u sitrep -e, or ~/.sitrep/server.log). It needs Node 24 |
| The server stops when you log out of the server machine | loginctl enable-linger $USER |
| A machine reads Silent | Its reporters cannot reach the server (it slept, left the LAN, or the server restarted). They send again when they can. Remove a machine you no longer use. The logs of codex-reporter, opencode-reporter, the Pi extension and the Hermes sidecar say, per session, when posting its reports began to fail and why (a connection error, no answer within 15 s, or an HTTP status), and when the server answered again |
| A machine is listed twice | Its id file was deleted, so it reports under a new id. Remove the old row in Machines (Remove silent) |
| Notifications read "Needs HTTPS or localhost" | Browsers allow notifications only on a secure context: open the dashboard at localhost through the tunnel, whose command Settings → This browser shows beside it; open the phone page at its HTTPS name (From a phone) |
| The phone page's Notifications switch is off and says why | "Add to Home Screen to turn on": on an iPhone, Share → Add to Home Screen, then open SITREP from its icon. "Blocked in this browser's site settings": allow notifications for the site there. "Sign in to turn on": sign in on that page. "Not supported in this browser": use another browser. With no admin secret on the server, the switch is absent |
| Phone notices stop arriving | Signing out on the phone, Sign out everywhere, a new admin secret and a new database each end a device's notices: sign in and turn Notifications on again. The server's log names a push service that refused a notice, with its status |
/mcp lists sitrep as failed, or Codex says the sitrep server failed or timed out | The server was stopped or unreachable when the session started (Codex waits 30 s, its startup_timeout_sec); the session runs on without the tools, and a new one has them once the server answers. A server older than the plugin answers 404 until it is updated. With "Require sign-in to view" on, a wrong or empty secret is refused: re-run the install with --token-stdin. Claude Code then shows its own sign-in fallback ("Dynamic Client Registration rejected" and an Authenticate option); Authenticate cannot help, since SITREP takes only its admin secret, and the status line reads "token refused". A serverUrl hand-edited to end in / gives an address nothing answers |
Codex says "MCP client for sitrep failed to start", with "HTTP 401" and "sign-in required" | "Require sign-in to view" is on, and the tools were added with codex mcp add, which sends no secret; codex mcp login cannot help. Run codex mcp remove sitrep, then add the config.toml block in Agent tools |
Uninstall
With the line, from anywhere (it shows the plan and asks before it applies):
curl -fsSL https://raw.githubusercontent.com/IluvatarLabs/sitrep/main/scripts/get.sh | sh -s -- --uninstall --claude --codex
It runs the uninstaller in ~/sitrep, with no fetch or build, so the version that installed is the one that removes,
and ends by saying that ~/sitrep stays: delete it to remove SITREP's files. A clone somewhere else is uninstalled in
place:
npx tsx scripts/uninstall.ts # dry run: the reporters installed here
npx tsx scripts/uninstall.ts --apply
With no component named it removes the reporters installed on the machine. Name components (--server, --claude,
--codex, --opencode, --pi) to remove only those; the server goes only when --server is named. It stops and
deletes the services, and removes both plugins and this repository's marketplaces with the providers' own commands:
claude plugin uninstall sitrep-reporter@sitrep --scope user (which also deletes the plugin's saved options and secret), claude plugin marketplace remove sitrep --scope user,
codex plugin remove sitrep-codex@sitrep (which also deletes Codex's cached copy) and
codex plugin marketplace remove sitrep. With --claude it also removes the telemetry keys the install added to
~/.claude/settings.json, only while otelHeadersHelper still runs our helper; telemetry settings of anything else
stay. It prints where the Codex hook trust stays (Codex hook trust), and that Codex's agent tools,
if you added them, are removed with codex mcp remove sitrep; ~/.codex/config.toml is left as it is. Pi's extension
file goes only when it is SITREP's (Pi). With --purge it also deletes the named components' data: the
configs, the telemetry token file (~/.sitrep/claude-otel-token), the server's database, the logs, codex-reporter's
and opencode-reporter's saved state, the Codex hook spool and the agent tools' helper. codex-reporter.env goes only
when neither codex-reporter nor opencode-reporter stays. Back up the database first if you want History.
It keeps the machine id (~/.claude/sitrep-machine-id), even with --purge, so a reinstall does not show the
machine twice. To take a machine off the dashboard, uninstall it, then Remove it in Machines.
Without --purge, --server keeps ~/.sitrep/server.env, so install still treats the machine as a server host
(Which URL the local reporters get). A later install --claude or --codex without --url then
points those reporters at this machine's old server address; --purge, or --url on that install, avoids it.
Nothing you wrote in ~/.claude/settings.json or ~/.codex/hooks.json is touched, nor any OpenCode or Pi setting,
and no provider session is deleted.