Skip to main content

PingRoom CLI / Built for the shell

Leave the terminal.
Keep the signal.

Run the build. Step away. Get the result on your phone.
One command puts PingRoom in your shell, scripts, and CI.

Start with one commandNode.js 20+
npm i -g @pingroom/cli
pingroom — your shellInteractive example · no commands run

WHAT’S RUNNING?

~/your-project

# Run your command. Send its outcome when it finishes.

pingroom run --name "Production build" -- npm run build

Choose a workflow. Preview what happens next.

Your real shell stays untouched.
From your terminal to your phone.A useful Ping, right when it matters.
Made for the jobs you don’t want to babysit.Shell scripts CI runners Coding agents

01 / Start here

Install. Scan. Send a Ping.

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"

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.

Saved for the next command

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.

A result you can open

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, ask, listen, and manage.

Send the update, ask the question, or keep listening. Read each command’s options with pingroom <command> --help.

Send

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 a human

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.

Receive

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.

Manage

rooms lists, inspects, creates, and joins rooms. actions configures or triggers Quick Pings. webhooks manages incoming webhooks, subject to your room access and plan.

Connect

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.

Set up your agent

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

From a finished build to a human decision.

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

04 / CI & scripts

Your pipeline can reach you, too.

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"

Explicit destinations

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.

Reuse a key for retries

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.

Let the result drive the job

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

Know when your agent needs you.

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

Know when your agent needs you.

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

Finished or waiting

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.

Review the actual call

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.

A local fallback

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

Choose a room. Save your defaults.

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

Local credentials

The CLI stores the paired credential under ~/.pingroom with restricted file permissions. PINGROOM_HOME selects another directory, useful for separate service users.

Room grants

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.

Forget or revoke a connection

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

Command reference and examples.

08 / Good to know

Before you close the laptop.

Do I need an API key to get started?

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.

Will an approval wait keep my script running?

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.

Can I try run without sending a Ping?

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.

Does run change my command’s exit code?

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.

Which features require Pro?

Uploading attachments and creating incoming webhooks require Pro. Other features follow the account’s plan limits.

Does the CLI install an MCP server?

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.

Can a negative answer accidentally pass a deployment gate?

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.