A room for this robot
Choose selected rooms or all current and future rooms during pairing. If the connection has no default room, pass --room with an invite code or save a default with config.
PingRoom CLI / Built for the shell
Run the build. Step away. Get the result on your phone.
One command puts PingRoom in your shell, scripts, and CI.
WHAT’S RUNNING?
# Run your command. Send its outcome when it finishes.
pingroom run --name "Production build" -- npm run buildChoose a workflow. Preview what happens next.
01 / Start here
Install or open PingRoom on your phone and sign in. With Node.js 20 or later on your computer, install the CLI and run pingroom to connect.
Run pingroom, scan the QR code, and choose the robot’s home room and room access. The CLI saves the connection for your next command.
npm install --global @pingroom/cli
pingroom
pingroom ping -m "Connected and ready"
Connect and send without a global installation. Both commands use the same saved local connection.
npx --yes @pingroom/cli
npx --yes @pingroom/cli ping -m "Connected and ready"
pair prints a claim link and waits without an interactive terminal. Open that link on your phone and keep this process running until the connection completes. Use pingroom pair --json instead when a supervisor needs JSON-line events.
pingroom pair
Choose selected rooms or all current and future rooms during pairing. If the connection has no default room, pass --room with an invite code or save a default with config.
The CLI saves your credential locally. You can run subsequent commands without copying a token. Each pairing is separate from an MCP connection or SDK pairing.
After a Ping is accepted, the terminal prints its web link when the API returns an ID. Sign in with an account that can access the Ping to view it.
02 / The command line
Send the update, ask the question, or keep listening. Read each command’s options with pingroom <command> --help.
ping sends messages, links, locations, checklists, or files. run wraps a job and reports its outcome. live keeps a progress card updated; metric writes a room value without sending a Ping.
ask and approval create decisions; --wait waits for the answer. watch resumes a saved Question, while list and cancel manage pending ones. handoff reaches your connected human.
listen prints new Pings from your rooms. Use --once for one batch and --json for structured output. attachment downloads or deletes files; bot works a connected bot’s mailbox.
rooms lists, inspects, creates, and joins rooms. actions configures or triggers Quick Pings. webhooks manages incoming webhooks, subject to your room access and plan.
pair connects a headless machine. reconnect replaces a connection. activate checks a phone answer round-trip. config sets local defaults and logout forgets the saved credential.
hook handles Claude Code events. mcp prints hosted-server setup instructions. skills prints or installs PingRoom guidance for agents, and update keeps a global npm installation current.
03 / Put it to work
These examples use your paired connection and default room. Add --room with an invite code to choose another granted room.
run preserves the job’s exit code, including when notification delivery fails. The Ping contains its outcome and elapsed time; command arguments and output stay out of the message.
pingroom run --name "Test suite" -- npm test
# Or send a specific result yourself:
pingroom ping -m "Build ready" \
--url https://ci.example.com/builds/512
approval --wait exits 0 only after approval. Denial or cancellation exits 4, expiry exits 3, errors exit 1, and invalid usage exits 2. The deploy command runs only on exit 0.
pingroom approval \
-p "Deploy release 42 to production?" \
--idempotency-key deploy-release-42 \
--wait && ./deploy.sh
A custom Question prints the chosen value. Any valid answer can return exit 0, so branch on the value as well as checking that the command succeeded.
if answer=$(pingroom ask -p "Deploy where?" \
-o staging:Staging -o prod:Production --wait); then
case "$answer" in
staging) ./deploy.sh staging ;;
prod) ./deploy.sh production ;;
esac
fi
Reuse one correlation ID for the whole job. start sends an alert, update changes the card silently, and end closes it with a completion alert. Add --failed when the job fails.
pingroom live start -c build-512 --template progress \
-m "Building" --progress 0
pingroom live update -c build-512 \
-m "Running tests" --progress 0.6
pingroom live end -c build-512 -m "Build complete"
File uploads require Pro. A confirmation Ping returns immediately; --ack-mode all keeps it open until every original eligible recipient confirms. Use approval --wait when you need a shell gate.
pingroom ping -m "Weekly report" --attach ./report.pdf
pingroom ping -m "Confirm the maintenance window" \
--require-ack --ack-mode all
04 / CI & scripts
Store the credential in your CI secret store. Use an incoming room webhook for notification delivery, or an agent token and room when your job needs questions and other agent operations.
Add this step to an existing workflow and save the room’s webhook URL as the PINGROOM_WEBHOOK_URL repository secret. Creating an incoming webhook requires Pro.
- uses: pingroom/cli@v0
with:
webhook-url: ${{ secrets.PINGROOM_WEBHOOK_URL }}
message: "Build complete"
Inject PINGROOM_TOKEN and PINGROOM_ROOM from your secret store. The CLI reads them automatically; keep their values out of source files and logs.
npm install --global @pingroom/cli
pingroom approval -p "Ship this release?" --wait \
&& ./deploy.sh \
&& pingroom ping -m "Release shipped" --json
Use JSON output when another process consumes the result. Without --once, listen continues waiting for new Pings.
pingroom listen --once --json
pingroom ping -m "Report ready" \
--url https://example.com/reports/latest \
--idempotency-key report-42 --json
PINGROOM_WEBHOOK_URL is a fallback for sending. An explicit --token or --room selects the agent path; --webhook selects the webhook. Do not mix those transport flags in one command.
Use --idempotency-key when retrying the same send or decision. File uploads create fresh attachment IDs on each invocation, so inspect an uncertain attachment send before trying again.
Approval waits return success only on approval. Custom Questions and Handoffs can return success for a negative answer too; inspect the answer value before taking an action.
05 / Agent hooks
Claude Code hooks can Ping you when work finishes or waits for input, and bring supported tool approvals to the PingRoom app. Your paired CLI connection supplies the credential and room.

Claude Code hooks
Finished work, input requests, and supported tool approvals, through your paired CLI.
Print the configuration, then merge its hooks block into ~/.claude/settings.json. The command prints the setup; it does not change your settings file.
pingroom hook --print-config
Copies the CLI and MCP skills that ship with the CLI into ~/.claude/skills/, preserving existing skills; from 0.18.0 no Git is needed. Use --dir to choose a different location, or pingroom skills show to print a skill without installing it.
pingroom skills install
Print the hosted endpoint, Codex and Claude commands, and Cursor configuration. Your MCP client then authorizes its own separate connection.
pingroom mcp
Stop and SubagentStop send a finished message. Notification covers idle or input events, and SessionEnd can tell you the session ended. The hook avoids duplicate permission notifications.
PreToolUse can ask you to approve or deny a supported tool call in the app. Its configured matcher selects which tools are checked. The full input must fit the approval prompt.
If PingRoom is unavailable, the request expires, or the input is unsuitable for a phone prompt, the hook returns control to the normal local approval prompt. It never auto-approves.
06 / Make it yours
Flags take priority over environment variables, then local config, then built-in defaults. The saved pairing also supplies a room when no other room is set.
Replace YOUR_ROOM_CODE with a room this connection can access. An explicit --room overrides the saved default for one command.
pingroom config set default_room YOUR_ROOM_CODE
pingroom config get default_room
pingroom config list
activate sends a test Question and checks its verified answer round-trip. reconnect creates a replacement connection and revokes the old one after successful pairing.
pingroom activate
# When you want to replace the connection:
pingroom reconnect
Read a command’s options or an entire topic. update upgrades a global npm installation; --check only checks for an update.
pingroom --help
pingroom approval --help
pingroom help exit-codes
pingroom update --check
The CLI stores the paired credential under ~/.pingroom with restricted file permissions. PINGROOM_HOME selects another directory, useful for separate service users.
Change a robot’s room access in Settings → Connected Agents. A room code alone does not grant permission, and a stored credential is bound to the API origin that issued it.
logout forgets the credential on this computer. Revoke the connection in PingRoom’s Connected Agents settings to remove its server access as well.
07 / Keep building
All flags, templates, exit codes, pairing options, and examples in the README.
Install @pingroom/cli, check releases, and review the Node.js requirement.
Notification steps, human decisions, and version requirements for your workflow.
Install the phone app to receive Pings and answer questions.
08 / Good to know
No. Install the CLI and run pingroom to pair it through the app. For CI and other unattended jobs, provide an agent token or room webhook from your secret store.
Yes. approval --wait holds the process until a decision or terminal outcome. Keep the runner alive. A later watch command can resume waiting for a saved Question ID, but PingRoom does not restart a stopped job.
Yes, with run --preview. It still executes the command after --, then prints a notification preview instead of sending it. Preview mode is not a dry run of the underlying command.
It preserves the command’s exit code, even if the notification fails. Missing executables return 127; other launch failures return 126. Run shell built-ins or pipelines through an explicit shell.
Uploading attachments and creating incoming webhooks require Pro. Other features follow the account’s plan limits.
No. pingroom mcp prints instructions for connecting an AI client to PingRoom’s hosted server. The client’s OAuth connection is separate from your CLI pairing.
Use approval --wait when exit success should mean approval. For a custom Question or Handoff, check the returned answer value: a valid answer can be negative and still count as a successful response.