Claude sessionsOpen the dashboard

Connect a machine

Each machine that runs Claude Code can show its sessions on this dashboard. A small agent reads Claude Code’s local status files every 2 seconds and sends a short summary here.

It needs Node.js 22.9 or newer (node --version) and works on macOS and Linux.

1Download the agent

mkdir -p ~/.claude-dashboard
curl -fsSL {ORIGIN}/agent.mjs -o ~/.claude-dashboard/agent.mjs

To check the download, shasum -a 256 ~/.claude-dashboard/agent.mjs should print: loading…

2Connect it to this hub

node ~/.claude-dashboard/agent.mjs setup --server {ORIGIN} --name "Work laptop"

It asks for the client token, which is the hub’s CLIENT_TOKEN setting. Ask whoever runs this hub for it. The address and token are saved to ~/.config/claude-dashboard/agent.json, readable only by you. Setup sends one report to confirm the connection.

3Keep it running

To try it, run it in a terminal (Ctrl-C stops it):

node ~/.claude-dashboard/agent.mjs

macOS: start at login

mkdir -p ~/Library/LaunchAgents
cat > ~/Library/LaunchAgents/com.claude-dashboard.agent.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
  <key>Label</key><string>com.claude-dashboard.agent</string>
  <key>ProgramArguments</key><array>
    <string>$(command -v node)</string>
    <string>$HOME/.claude-dashboard/agent.mjs</string>
  </array>
  <key>RunAtLoad</key><true/>
  <key>KeepAlive</key><true/>
  <key>ThrottleInterval</key><integer>30</integer>
  <key>StandardOutPath</key><string>$HOME/.claude-dashboard/agent.log</string>
  <key>StandardErrorPath</key><string>$HOME/.claude-dashboard/agent.log</string>
</dict></plist>
EOF
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.claude-dashboard.agent.plist

Log: ~/.claude-dashboard/agent.log

Linux: systemd user service

mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/claude-dashboard-agent.service <<EOF
[Unit]
Description=Claude sessions agent
After=network-online.target

[Service]
ExecStart=$(command -v node) $HOME/.claude-dashboard/agent.mjs
Restart=always
RestartSec=10

[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable --now claude-dashboard-agent

Log: journalctl --user -u claude-dashboard-agent -f. On a server you don’t stay logged in to, also run loginctl enable-linger $USER so it keeps running.

4Check it

Open the dashboard. The machine’s name appears under the title with a green dot, and its sessions show up in the lists. If the agent stops, the machine is marked offline after 30 seconds.

Options

OptionWhat it does
--name "…"How the machine is labelled on the dashboard (default: the computer’s name)
--no-textDon’t send your last message or Claude’s last reply (untitled sessions then show as “Untitled session”)
--dry-runPrint exactly what would be sent, and send nothing
--onceSend one report and exit
--helpAll options

Saved options go in the setup command, e.g. setup --server {ORIGIN} --name "Laptop" --no-text.

Second Claude account on the same machine (using CLAUDE_CONFIG_DIR): run a second agent with its own folder, settings file and name, and skip the desktop app so its sessions aren’t listed twice:

node ~/.claude-dashboard/agent.mjs setup --server {ORIGIN} \
  --claude-dir ~/.claude-work --config ~/.config/claude-dashboard/work.json \
  --name "Laptop (work account)" --no-desktop
node ~/.claude-dashboard/agent.mjs --config ~/.config/claude-dashboard/work.json

What gets sent

Sent, per session

  • Status and how long it has held
  • Session name
  • Project folder name, and worktree name unless it matches the branch
  • Where it runs: terminal, desktop app or background
  • Claude account email
  • Your last message and Claude’s last reply, cut short (not with --no-text)

Never sent

  • Process IDs
  • Git branch names
  • Full folder paths
  • Claude Code versions
  • Session IDs (only a scrambled form)
  • Anything else from your files

Update or remove

To update, repeat step 1, then restart the agent:

# macOS
launchctl kickstart -k gui/$(id -u)/com.claude-dashboard.agent
# Linux
systemctl --user restart claude-dashboard-agent

To remove it:

# macOS
launchctl bootout gui/$(id -u)/com.claude-dashboard.agent
rm ~/Library/LaunchAgents/com.claude-dashboard.agent.plist
# Linux
systemctl --user disable --now claude-dashboard-agent
rm ~/.config/systemd/user/claude-dashboard-agent.service
# Both
rm -rf ~/.claude-dashboard ~/.config/claude-dashboard