Launch, monitor, and control AI coding agents. Run Claude Code, OpenCode, or Codex in managed tmux sessions. Send instructions, stream transcripts, handle permissions, and orchestrate multiple agents — all from one place. Works locally and on remote compute servers via SSH.

Use this when you want to:

  • Spin up agents on specific repos or projects
  • Watch what agents are doing in real-time
  • Approve or deny tool-use permissions remotely
  • Manage agents running on cloud compute machines
  • Resume previous coding sessions

Getting started:

qbraid agents launch                    # Interactive launch
qbraid agents list                      # Show active sessions
qbraid agents watch <name>              # Stream live activity
qbraid agents send <name> "..."         # Send a message (an agent or a team)

Agent-to-agent messaging (any of your agents may message any other):

qbraid agents send <agent|team> "..."   # One verb; --reply <id>, --compute <alias>
qbraid agents whoami --json             # Who am I, my team, who is here
qbraid agents inbox --unread --json     # Full messages, not marked read
qbraid agents wait --timeout 600 --json # Block for the next message

Usage:

$ qbraid agents [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • interrupt: Interrupt one verified active turn.
  • jobs: Inspect agent schedules and jobs.
  • register: Register an agent session.
  • deregister: Deregister an agent session.
  • list: List agent sessions.
  • discover: Discover new agent sessions.
  • status: Show detailed status for an agent session.
  • update: Update metadata fields on an agent session.
  • kill: Stop an agent by name, session ID, or PID.
  • readiness: Check this destination before launch.
  • trust-folder: Decide whether an agent trusts a folder.
  • machine: Serve the fleet machine protocol.
  • settings: Configure agent execution and mail wakes.
  • launch: Launch an AI coding agent.
  • resume: Resume a previous agent session.
  • send: Send a message to an agent or team.
  • read: Read recent terminal output from an agent.
  • notifier: Wake idle agents when inbox mail arrives.
  • approve: Approve a tool-use prompt.
  • watch: Stream agent transcript.
  • attach: Attach to an agent’s terminal.
  • clean: Clean up orphaned sessions.
  • stop: Stop agents and hold them (person only).
  • send-to: Older name of send; use that.
  • reply: Older name of send --reply; use that.
  • broadcast: Older name of send --team; use that.
  • wait: Block until a new inbox message arrives.
  • nudge-clear: Clear a session’s “nudge possibly left” mark.
  • whoami: Show this agent’s identity and contacts.
  • team: Show a team roster with unread counts.
  • hooks: Manage agent lifecycle hooks.
  • keep-alive: Opt-in local managed agent recovery.
  • queue: Queue follow-ups for a managed runtime.
  • inbox: Read messages sent to this agent’s inbox.

qbraid agents interrupt

Interrupt one verified active turn.

Request one Escape and pause queued input, without ending the agent process.

Usage:

$ qbraid agents interrupt [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Exact destination session ID. [required]

Options:

  • --preflight: Inspect availability and turn without sending Escape.
  • --compute <str>
  • --request-id <str>
  • --json
  • --help: Show this message and exit.

qbraid agents jobs

Inspect agent schedules and jobs.

This observes provider-owned work. It never creates a schedule, wakes an agent, or treats missing telemetry as an empty list. Manage tasks through the agent’s own terminal. Claude reports snapshots after completing turns; other providers report unsupported until they expose an inventory.

Usage:

$ qbraid agents jobs [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Exact qBraid session ID from agents list. [required]

Options:

  • -c, --compute <str>: SSH alias for the owning machine.
  • --json: Emit one JSON object; errors go to stderr.
  • --help: Show this message and exit.

qbraid agents register

Register an agent session.

Reads session data from stdin JSON (used by hooks).

Usage:

$ qbraid agents register [OPTIONS]

Options:

  • --help: Show this message and exit.

qbraid agents deregister

Deregister an agent session.

Reads session data from stdin JSON (used by hooks).

Usage:

$ qbraid agents deregister [OPTIONS]

Options:

  • --help: Show this message and exit.

qbraid agents list

List agent sessions.

Use —compute to list on a remote server.

Usage:

$ qbraid agents list [OPTIONS]

Options:

  • -t, --tool <str>: Filter by tool (claude, codeq, codex)
  • --status <str>: Filter by status
  • --tag <list[str]>: Filter by tag (repeatable)
  • --since <str>: Time window (e.g., ‘1h’, ‘30m’, ‘2d’)
  • -c, --compute <str>: SSH alias for remote compute (runs list on remote)
  • -s, --search <str>: Text search across name/cwd/tags
  • -a, --all: Include stopped sessions
  • -l, --limit <int range>: Entries per page [default: 25; x>=1]
  • -p, --page <int range>: Page number (non-interactive mode) [default: 1; x>=1]
  • --sort <str>: Sort by: recent, oldest, name, tool, status, cwd, model [default: recent]
  • --no-interactive: Disable interactive pagination
  • --json: Output as JSON array (for programmatic use)
  • --help: Show this message and exit.

qbraid agents discover

Discover new agent sessions.

Scans transcript files and registers new agent sessions.

Usage:

$ qbraid agents discover [OPTIONS]

Options:

  • -f, --full: Full data enrichment for all sessions (slower)
  • -c, --compute <str>: Sync sessions from remote compute server (SSH alias)
  • --help: Show this message and exit.

qbraid agents status

Show detailed status for an agent session.

Without --compute this reads the local registry, which is per-host: an agent on another machine is simply absent and reports as not found.

Usage:

$ qbraid agents status [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Session ID (full or prefix) [required]

Options:

  • -c, --compute <str>: SSH alias for remote compute
  • --help: Show this message and exit.

qbraid agents update

Update metadata fields on an agent session.

—type, —team and —parent let agents started from a terminal join a team after launch, so they can message each other. From your own shell any change is allowed. Inside an agent, it may only place teamless sessions or its teammates into a team it leads, never as or out of leader. These are coordination guardrails, not a security boundary.

Usage:

$ qbraid agents update [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Session ID (full or prefix) [required]

Options:

  • --tag <list[str]>: Tag to add (can be repeated)
  • --name <str>: Set terminal name for the session
  • --model <str>: Set model name (e.g. claude-sonnet-4-20250514)
  • --cwd <str>: Set working directory for the session
  • --status <str>: Set session status (working, waiting, idle, error, stopped)
  • --type <str>: Set the agent type (leader, worker, observer, reviewer); ” clears it.
  • --team <str>: Join a team by id; ” leaves it.
  • --parent <str>: Set the parent session (id, prefix or name); ” clears it.
  • --help: Show this message and exit.

qbraid agents kill

Stop an agent by name, session ID, or PID.

With --compute the agent is stopped on that machine. Without it, an agent running elsewhere is simply not in this host’s registry and reports as not found — the registry is per-host.

Usage:

$ qbraid agents kill [OPTIONS] {target}

Arguments:

  • target <str>: Agent name, ID prefix, or PID [required]

Options:

  • -f, --force: Use SIGKILL instead of SIGTERM
  • -c, --compute <str>: SSH alias for remote compute
  • -y, --yes: Confirm disabling keep-alive before Stop.
  • --json: Print a JSON receipt; enrolled Stop requires —yes.
  • --help: Show this message and exit.

qbraid agents readiness

Check this destination before launch.

Known blockers exit with status 1.

Usage:

$ qbraid agents readiness [OPTIONS]

Options:

  • --tool <str>: Provider to inspect: claude, codex, or codeq. [required]
  • --cwd <str>: Working directory on this machine.
  • --approval <ask|auto|manual|auto-review|yolo>
  • --execution-mode <native|workspace|container>
  • --json: Print structured checks and recovery actions.
  • --verify-auth: Explicitly check provider authentication; does not sign in or transfer credentials.
  • --help: Show this message and exit.

qbraid agents trust-folder

Decide whether an agent trusts a folder.

A trusted folder is not asked about when an agent starts there, and its own settings, hooks and MCP servers run. Every decision (here, the Lab’s launch dialog “Trust this folder”, or the trust card) is remembered on this machine for every later launch there; a “no” too (—no), until you —forget it or change it in Settings → Agent defaults → Trusted folders. For your home folder the decision is standing (it covers every launch there, including unattended ones).

An agent calling this may trust an ordinary folder you have not decided on, without a question; it is recorded as the agent’s, never as yours. Your home folder, a folder you said no to, and —no stay yours alone: for those an agent asks you with a card in the Lab (—request).

With —compute the decision is recorded on that server (the folder path is the remote one). Only you decide with —compute; an agent launches with —compute and —trust-folder, or asks with —request —compute.

Usage:

$ qbraid agents trust-folder [OPTIONS] [folder]

Arguments:

  • folder <str>: Folder to decide about (default: here).

Options:

  • --tool <claude|codex>: Agent whose trust to set. [default: claude]
  • --no: Record a no (remembered), or undo trusting home (yours only).
  • -y, --yes: Skip the confirmation question (an agent is never asked).
  • --json: Print the recorded decision.
  • -c, --compute <str>: Decide for a folder on this compute server (SSH alias) instead of here. Launches there are unattended, so a folder they start in needs your decision first. You are asked at this terminal; —yes does not replace the question for a remote folder.
  • --request: For an agent: ask the person to trust the folder. A trust card (Allow / Deny) appears on your session in the Lab’s Agents sidebar; their answer is remembered.
  • --wait <int range>: With —request: wait up to this many seconds for the answer (exit 0 allowed, 1 denied, 124 none yet). [x>=0]
  • --list: List the folders you trusted or chose not to trust on this machine.
  • --forget: Forget your decision for the folder: a trusted one is no longer trusted, and agents ask again.
  • --help: Show this message and exit.

qbraid agents machine

Serve the fleet machine protocol.

Protocol v1 writes only JSON frames to stdout.

Usage:

$ qbraid agents machine [OPTIONS]

Options:

  • --serve: Serve JSON lines over authenticated SSH stdin/stdout.
  • --once: Read one JSON request from stdin and return one response.
  • --help: Show this message and exit.

qbraid agents settings

Configure agent execution and mail wakes.

Inspect or change them. Defaults are shared by the CLI and dashboard on this machine. Messaging between your agents is always open.

Usage:

$ qbraid agents settings [OPTIONS]

Options:

  • --execution-mode <native|workspace|container>: Save the Codex execution default for this machine.
  • --reset: Remove this machine’s execution preference.
  • --mail-wake-cap <int range>: Mail-triggered wakes per agent per hour with no message from you in between (default 20; 0: mail never wakes). Anyone may lower it; only a person may raise it. [0<=x<=1000]
  • --json: Print structured settings and sandbox readiness.
  • --help: Show this message and exit.

qbraid agents launch

Launch an AI coding agent.

Uses the owning Lab terminal when available; otherwise starts in tmux.

Detached agents may wait for approval until you open their terminal or dashboard. Approval and execution mode are independent and remembered for resume. —approval auto disables approval prompts; —execution-mode container explicitly uses the current user’s access without an extra Codex sandbox. Choose it only where you trust the surrounding machine/container isolation.

When an agent launches another agent, the launcher becomes its parent. Use —detached for an independent agent. A person launching from their own terminal sets no parent. With no —team the agent joins the team named after its project folder (the first one there leads); —team ” for none. Any of your agents may message any other, team or not.

Usage:

$ qbraid agents launch [OPTIONS]

Options:

  • --backend <auto|jupyter|tmux>: auto: prefer the owning Lab terminal; jupyter: require Lab; tmux: run independently. [default: auto]
  • -t, --tool <str>: Agent tool (claude, codeq, codex; claude-auto = claude —approval auto)
  • --cwd <str>: Working directory
  • -n, --name <str>: Agent name
  • -i, --instructions <str>: Initial instructions
  • -r, --repo <str>: GitHub repo URL, org/repo, or issue/PR URL
  • --type <str>: Agent type: leader, worker, observer, reviewer
  • --parent <str>: Parent session ID. When an agent launches another agent, the launcher becomes its parent by default; parent and child can message each other (one level only). ” or —detached for none.
  • --detached: Launch an independent agent with no parent link (same as —parent ”). Cannot be combined with —parent.
  • --team <str>: Team ID. Default: the team named after the project folder (its repository or git work tree; none for home), led by its first agent. ” for no team.
  • --tag <list[str]>: Tags (repeatable)
  • -c, --compute <str>: SSH alias for remote compute server
  • --request-id <str>: Remote launch UUID retained for reconciling an interrupted request.
  • --execution-mode <native|workspace|container>: Codex only: native uses Codex defaults; workspace adds its workspace sandbox; container uses current user access without an extra Codex sandbox (no sudo). Omitted preserves existing behavior. Independent of —approval.
  • --approval <ask|auto|manual|auto-review|yolo>: manual: the agent asks you. auto-review: the tool’s own automatic reviewer decides. yolo: no permission checks. ask/auto: legacy modes, unchanged.
  • --trust-hooks: Codex only, DANGEROUS: run ALL enabled hooks (yours, the project’s and plugins’) without Codex’s hook review, for this launch only. Not retained on resume. Refused with —repo. Independent of —approval and —yolo.
  • --trust-folder / --no-trust-folder: Answer the agent’s ‘trust this folder?’ prompt now (Claude, Codex), so a detached agent does not stop at it. The answer is remembered for later launches and resumes. Trusting a folder lets its own settings, hooks and MCP servers run. An agent may trust an ordinary folder (recorded as its own), never your home folder or one you said no to; also with —compute. Default: Claude trusts the folder, except a fresh —repo clone; Codex asks.
  • --skip-bypass-confirmation: Claude with —yolo: skip its bypass-permissions confirmation, for this launch only.
  • --trust-home: With —trust-folder in your home folder: trust home itself, standing, for every later launch there. It trusts every folder below home that is not a git repository, including ones agents create. Without it, home is never trusted.
  • --trust-wait <int range>: An agent launching in a folder the person never decided on raises a trust card in the Lab (Agents sidebar) and waits this many seconds for their answer, then launches (default 110 for an agent; 0: do not wait). Unanswered: exit 124. [x>=0]
  • --yolo: Claude: skip permissions. Codex: bypass approvals and its sandbox.
  • --broadcast-max <none|whenever|next>: The highest level this agent may broadcast at with send —scope: none, whenever or next (the default). ‘first’ is yours only. An agent launching another gives it no more than its own. Plain send —team is not limited.
  • --person-broadcast-wakes / --no-person-broadcast-wakes: Whether your ‘first’ (read this first) broadcasts wake this agent now, on any machine (on by default; only you can turn it off).
  • --help: Show this message and exit.

qbraid agents resume

Resume a previous agent session.

Resumes with the selected terminal backend. With --compute the session is resumed on that machine, and a session id is required — the interactive picker reads the local registry and cannot see another host’s sessions.

--confirm-owner-gone is for a session whose old Lab (in another PID namespace, after a restart) cannot be verified gone. Core’s preflight runs first; when it allows a confirmation, its reason and the risk are shown and the person is asked (default No). Without a terminal it refuses unless --yes is given. An agent must never pass --yes on its own judgement: only after the person has confirmed that the old Lab is closed or restarted.

When the session’s recorded backend is not available here (tmux missing, or no Lab), it resumes on this machine’s default and says so (backendNotice in --json).

Usage:

$ qbraid agents resume [OPTIONS] [session_id]

Arguments:

  • session_id <str>: Session ID, prefix, or name. Omit for interactive picker.

Options:

  • --backend <auto|jupyter|tmux>: auto: prefer the owning Lab terminal; jupyter: require Lab; tmux: run independently. [default: auto]
  • -n, --name <str>: Agent name for the resumed session
  • --execution-mode <native|workspace|container>: Override the recorded Codex execution mode for this resume.
  • --approval <ask|auto|manual|auto-review|yolo>: Override recorded permissions for this resume. Omit to preserve them.
  • --trust-hooks: Codex only, DANGEROUS: run ALL enabled hooks without Codex’s hook review, for this resume only. Hooks are reviewed again on every run that omits it.
  • --trust-folder / --no-trust-folder: Answer ‘trust this folder?’ for the folder it resumes in (remembered). Default: keep the answer given at launch.
  • --trust-wait <int range>: An agent resuming in a folder the person never decided on raises a trust card in the Lab and waits this many seconds (default 110 for an agent; 0: do not wait). Unanswered: exit 124. [x>=0]
  • --confirm-owner-gone: For a session from a restarted Lab that cannot be verified: confirm its old Lab is closed or restarted, and resume anyway. Asks first; confirming while that Lab still runs starts a second copy of the agent.
  • -y, --yes: With —confirm-owner-gone: do not ask. Agents must not pass this unless the person has confirmed the old Lab is gone.
  • -c, --compute <str>: SSH alias for remote compute
  • --json: Print the resumed session as JSON, with backendNotice.
  • --help: Show this message and exit.

qbraid agents send

Send a message to an agent or team.

The one send verb. qbraid agents send &lt;agent&gt; &quot;&lt;text&gt;&quot; puts it in the agent’s inbox and says whether it will read it now, at its next turn, or that it is held. &lt;agent&gt; is a stable agent id, a session id or prefix, or a name; a team’s name reaches every member on this machine (--team &lt;id&gt; says so explicitly). --reply &lt;message-id&gt; &quot;&lt;text&gt;&quot; answers a message from your inbox, on whatever machine it came from. --compute &lt;alias&gt; reaches an agent on another machine. Any of your agents may message any other: nothing is refused for who is sending.

--text/-m with an agent and none of --team/--reply/--from also types qBraid’s fixed nudge (“You have N unread…”) now where it can (the form scripts and the Lab use); --json then prints &#123;&quot;delivered&quot;: &quot;inbox&quot;, ..., &quot;nudge&quot;: &quot;sent&quot; | &quot;held:&lt;CODE&gt;&quot;&#125;. Otherwise --json prints &#123;&quot;delivered&quot;: [&#123;to, id, type, wake, ...&#125;], &quot;failed&quot;: [...]&#125;. --type types the text into the agent’s terminal instead (a person at a terminal only).

--scope team|machine|all (or --level) broadcasts: one request per machine, each machine delivering to its own agents, with a receipt per agent (delivered / held / skipped / failed, and the wake label). --level is whenever, next (default) or first (the person’s: wakes every agent now, on every machine, read ahead of other mail). An agent broadcasts to any scope up to the level it was launched with (launch --broadcast-max). A machine that cannot be reached is named; when no agent was reached the send exits 1, when some were, 3. A retry with --request-id &lt;broadcast id&gt; delivers nothing twice. qbraid agents stop is the person’s stop.

send-to, reply and broadcast are older names for this.

Exit codes: 0 delivered, 1 not delivered, 2 usage error, 3 partial (a team), 4 a cross-machine send whose outcome is unknown: retry with the printed --request-id.

Usage:

$ qbraid agents send [OPTIONS] [session_id] [text_arg]

Arguments:

  • session_id <str>: Agent (stable agent id, session id or prefix, or name) or team. Omit with —team or —reply.
  • text_arg <str>: Message body (or —text).

Options:

  • -m, --text <str>: Message body, as a flag.
  • -c, --compute <str>: SSH alias of another machine: deliver into the inbox of the agent there (not its terminal), with your identity and a route for its reply.
  • --team <str>: Every member of this team on this machine but you.
  • --reply <str>: Answer this message id from your inbox: it goes to its sender, wherever it is.
  • --reply-alias <str>: SSH alias the remote agent should use to reach this machine when it replies. Default: $QBRAID_REPLY_SSH_ALIAS, else this on-demand instance’s qbraid-bma-<hash>, else qbraid-<cluster> for the subscription pod.
  • --message-type <str>: message, task_assignment, status_update or shutdown_request. [default: message]
  • --from <str>: Sender session id (default: the agent this runs in).
  • --request-id <str>: A retry with the same id is delivered once (e.g. after exit 4).
  • --json: Print the outcome as JSON.
  • --type: Type —text into the agent’s terminal yourself instead (needs a terminal on stdin and stdout; —compute needs the exact session id).
  • --scope <team|machine|all>: Broadcast: team (—team, else your own team), machine (every agent on this machine, or on —compute), or all (every machine with a qBraid SSH alias here, and this one; with —team, that team on each).
  • --level <whenever|next|first>: Broadcast level: whenever (inbox only), next (wakes it by the normal rules; the default), first (read this first: wakes it now, any machine, read ahead of other mail; the person’s only).
  • --expect-reply: Broadcast: ask each agent to answer (send —reply <id>).
  • --dry-run: Broadcast: list the agents only; nothing is sent.
  • --help: Show this message and exit.

qbraid agents read

Read recent terminal output from an agent.

Usage:

$ qbraid agents read [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Session ID (prefix match) [required]

Options:

  • -n, --lines <int>: Number of lines to capture [default: 50]
  • -c, --compute <str>: SSH alias for remote compute
  • --help: Show this message and exit.

qbraid agents notifier

Wake idle agents when inbox mail arrives.

Inbox delivery is passive: an agent parked at its prompt never notices a message. Agents launched with qbraid-core 0.6.54 carry their own qBraid bridge, which tells them without typing; this watcher then only records mail that waits. For a runtime without a bridge in a tmux pane (Codex, an older agent) it types a one-line nudge into the idle agent’s pane. Busy agents are left alone until they go idle, and a burst of messages is one nudge. It never types into a Lab terminal.

With a current qbraid-core the nudge goes through the same delivery path as every other input: it waits while another message is being submitted, a permission prompt is open or someone is typing in the agent’s input line, and it is tagged [qbraid:system-event kind=inbox-nudge] so it is never mistaken for the user. It tells the agent to read with qbraid agents inbox --unread --json or qbraid agents wait --json.

qBraid Lab runs this for you. Use it on a machine reached only over SSH. Same-host: it watches the inboxes on the machine it runs on.

Usage:

$ qbraid agents notifier [OPTIONS]

Options:

  • -i, --interval <float range>: Seconds between checks [default: 4.0; x>=1.0]
  • --once: Check once, print who was nudged, and exit
  • --help: Show this message and exit.

qbraid agents approve

Approve a tool-use prompt.

Sends ‘y’ + Enter to the agent’s terminal. With --compute the approval is sent on that machine.

Usage:

$ qbraid agents approve [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Session ID (prefix match) [required]

Options:

  • -c, --compute <str>: SSH alias for remote compute
  • --help: Show this message and exit.

qbraid agents watch

Stream agent transcript.

Streams live transcript from an agent session.

Usage:

$ qbraid agents watch [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Session ID (prefix match) [required]

Options:

  • -n, --lines <int>: Initial history lines [default: 20]
  • --interactive / --no-interactive: Prompt for permission decisions [default: interactive]
  • --stream: Stream-only mode: emit JSON events, no interactive prompts (for frontends)
  • -c, --compute <str>: SSH alias for remote compute
  • --help: Show this message and exit.

qbraid agents attach

Attach to an agent’s terminal.

Reconnects to its recorded native terminal or tmux window.

Usage:

$ qbraid agents attach [OPTIONS] [session_id]

Arguments:

  • session_id <str>: Session ID (prefix match). Omit for interactive picker.

Options:

  • -c, --compute <str>: SSH alias for remote compute
  • --help: Show this message and exit.

qbraid agents clean

Clean up orphaned sessions.

Removes orphaned tmux windows and stopped sessions.

Usage:

$ qbraid agents clean [OPTIONS]

Options:

  • -y, --yes: Skip confirmation
  • --help: Show this message and exit.

qbraid agents stop

Stop agents and hold them (person only).

Interrupt + hold, the person’s only (“stop all” included).

A working agent gets one Escape (as qbraid agents interrupt); every agent in scope, working or idle, is held: no mail wakes it and its queued messages wait. No model turn is spent, and its context is kept. An agent at a permission prompt is held, and its prompt left for you. --resume lifts exactly the holds stops placed (--stop-id: one stop’s).

Exit codes: 0 done, 1 nothing done (or refused), 2 usage, 3 partial, 4 a machine did not answer: retry with --request-id.

Usage:

$ qbraid agents stop [OPTIONS]

Options:

  • --scope <team|machine|all>: team, machine or all (see send —scope). [required]
  • --team <str>: The team (—scope team, or all: that team everywhere).
  • -c, --compute <str>: Only the machine at this SSH alias.
  • --resume: Release the holds a stop placed, instead of stopping.
  • --stop-id <str>: —resume: release only what this stop held (its id, as printed).
  • --reason <str>: Why: noted in each agent’s inbox (never wakes it).
  • --dry-run: List the agents only; nothing is stopped.
  • --request-id <str>: Retry this stop (its id): no agent is interrupted twice.
  • --json: Print the receipts as JSON.
  • --help: Show this message and exit.

qbraid agents send-to

Older name of send; use that.

Same as qbraid agents send &lt;agent&gt; &quot;&lt;text&gt;&quot;.

Usage:

$ qbraid agents send-to [OPTIONS] [to] [text]

Arguments:

  • to <str>: Agent (agent id, session id or prefix, name) or team. Omit with —reply.
  • text <str>: Message body.

Options:

  • --from <str>: Sender session id (default: the agent this runs in).
  • --type <str>: message, task_assignment, status_update or shutdown_request. [default: message]
  • -c, --compute <str>: SSH alias of another machine: deliver into the inbox of the agent there (not its terminal), with your identity and a route for its reply.
  • --reply <str>: Answer this message id from your inbox (goes to its sender).
  • --reply-alias <str>: SSH alias the remote agent should use to reach this machine when it replies. Default: $QBRAID_REPLY_SSH_ALIAS, else this on-demand instance’s qbraid-bma-<hash>, else qbraid-<cluster> for the subscription pod.
  • --request-id <str>: Cross-machine only: reuse the UUID printed by an uncertain send to retry it at most once.
  • --json: Print {“delivered”: [{to, id, type, wake, …}], “failed”: […]} or {“error”: {…}}.
  • --help: Show this message and exit.

qbraid agents reply

Older name of send --reply; use that.

Same as qbraid agents send --reply &lt;message-id&gt; &quot;&lt;text&gt;&quot;.

Usage:

$ qbraid agents reply [OPTIONS] {message_id} {text}

Arguments:

  • message_id <str>: Id of the message to answer (from ‘inbox —json’). [required]
  • text <str>: Message body. [required]

Options:

  • --type <str>: Message type, as on send. [default: message]
  • -c, --compute <str>: SSH alias to reach the sender’s machine, if not the recorded one.
  • --reply-alias <str>: SSH alias the remote agent should use to reach this machine when it replies. Default: $QBRAID_REPLY_SSH_ALIAS, else this on-demand instance’s qbraid-bma-<hash>, else qbraid-<cluster> for the subscription pod.
  • --request-id <str>: Reuse the UUID printed by an uncertain send to retry it at most once.
  • --from <str>: Sender session id, as on send.
  • --json: Print the outcome as JSON, as on send.
  • --help: Show this message and exit.

qbraid agents broadcast

Older name of send --team; use that.

Same as qbraid agents send --team &lt;id&gt; &quot;&lt;text&gt;&quot;; with --scope, the same as send --scope ... (receipts per agent, on every machine in scope). Only --scope makes it a broadcast.

--to A,B,C sends to each of a list, resolved all or nothing. A partial delivery exits 3.

Usage:

$ qbraid agents broadcast [OPTIONS] {text}

Arguments:

  • text <str>: Message body, delivered to every target. [required]

Options:

  • --team <str>: Every session with this team id (but the sender).
  • --to <str>: Comma-separated agents (ids, prefixes or names): all or nothing.
  • --from <str>: Sender session id.
  • --type <str>: message, task_assignment, status_update or shutdown_request. [default: message]
  • --scope <team|machine|all>: Broadcast: team (—team, else your own team), machine (every agent on this machine, or on —compute), or all (every machine with a qBraid SSH alias here, and this one; with —team, that team on each).
  • --level <whenever|next|first>: Broadcast level: whenever (inbox only), next (wakes it by the normal rules; the default), first (read this first: wakes it now, any machine, read ahead of other mail; the person’s only).
  • -c, --compute <str>: —scope team/machine on this SSH alias.
  • --expect-reply: Ask each agent to answer.
  • --dry-run: List the agents only; nothing is sent.
  • --request-id <str>: Retry this broadcast (its id).
  • --json: Print the receipts as JSON.
  • --help: Show this message and exit.

qbraid agents wait

Block until a new inbox message arrives.

Returns the first message that arrives after the command starts and matches —from and —type, then exits. Use it instead of a polling loop.

Exit codes: 0 a message arrived (printed; JSON with —json), 124 the timeout passed with no match, 1 an error, 2 a usage error, 130 interrupted.

An inbox is a JSONL file under ~/.qbraid/inboxes/ on the machine that owns it; messages from other machines (send --compute) arrive in it too.

Usage:

$ qbraid agents wait [OPTIONS]

Options:

  • --from <str>: Only a message from this agent (stable id, any of its session ids, or name), or whose sender id starts with this prefix.
  • --type <str>: Only a message of this type: message, task_assignment, status_update, shutdown_request.
  • -t, --timeout <float range>: Seconds to wait before giving up; 0 checks once. [default: 600.0; x>=0]
  • --json: Print the message as one JSON object (same fields as ‘inbox —json’); ‘null’ on timeout.
  • --mark-read: Claim the message: return it only if this call marked it read, so two waiters never both get it. At-most-once; for at-least-once, mark it read after handling it. Off by default.
  • --include-unread: Return a matching message that is already unread at once, instead of only new ones.
  • -s, --session <str>: Session whose inbox to wait on (id, prefix or name). Defaults to $QBRAID_SESSION_ID.
  • --help: Show this message and exit.

qbraid agents nudge-clear

Clear a session’s “nudge possibly left” mark.

When a qBraid inbox nudge could not be removed from an agent’s input line, sends to that agent are refused until the line is read clean or the mark expires (10 minutes). After checking the agent’s input line yourself (clear it with Ctrl-U in its terminal if needed), run this to allow sends again at once.

Usage:

$ qbraid agents nudge-clear [OPTIONS] [session_id]

Arguments:

  • session_id <str>: Session id, prefix or name (default: this agent session).

Options:

  • --json: Print the result as JSON.
  • --help: Show this message and exit.

qbraid agents whoami

Show this agent’s identity and contacts.

Reports the session id (from process ancestry or $QBRAID_SESSION_ID), the stable agent id (unchanged across resumes and restarts; peers can address this agent by it), name, agent type, team, parent, tool, inbox path, the registry’s canonical id and resume link, when it reads mail, and the other agents here (any of them may be messaged). The session is found the way send finds it; “source” says how (ancestry or env). Exits 1 outside an agent session (the caller is the person) and when the caller fits more than one live session; —json still prints the object, with “session_id”: null and, for the ambiguous case, an “error” field.

Usage:

$ qbraid agents whoami [OPTIONS]

Options:

  • --json: Print the identity as one JSON object.
  • -s, --session <str>: Describe this session (id, prefix or name) instead of the caller.
  • --help: Show this message and exit.

qbraid agents team

Show a team roster with unread counts.

An inbox is a JSONL file under ~/.qbraid/inboxes/ on the machine that owns it. Messages from agents on other machines (send --compute) arrive here too; answer them with qbraid agents send --reply &lt;message-id&gt;.

Answers the leader-orchestrator question “who is on my team, how many unread messages do they have, and what was the last thing they heard from anyone?” — which today requires peeking each worker’s inbox individually.

Rows are sorted with the current session first (identified via $QBRAID_SESSION_ID), then by agent_type (leader → worker → observer → reviewer), then by session_id.

Usage:

$ qbraid agents team [OPTIONS] {team_id}

Arguments:

  • team_id <str>: Team identifier (matches AgentSession.team_id). [required]

Options:

  • -w, --wide: Show full session ids instead of the 12-char prefix.
  • --help: Show this message and exit.

qbraid agents hooks

Manage agent lifecycle hooks.

Usage:

$ qbraid agents hooks [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • install: Install agent lifecycle hooks.
  • uninstall: Remove agent lifecycle hooks.

qbraid agents hooks install

Install agent lifecycle hooks.

Installs hooks for AI coding tools.

Usage:

$ qbraid agents hooks install [OPTIONS]

Options:

  • -t, --tool <str>: Install hooks for a specific tool (claude, codeq, codex)
  • --help: Show this message and exit.

qbraid agents hooks uninstall

Remove agent lifecycle hooks.

Removes hooks from all supported tools.

Usage:

$ qbraid agents hooks uninstall [OPTIONS]

Options:

  • --help: Show this message and exit.

qbraid agents keep-alive

Opt-in local managed agent recovery.

Restore enrolled local conversations after an instance restart. A process exit in the same instance pauses recovery for attention. Off by default. Explicit Stop disables recovery. A compatible running host is required; these commands do not install a daemon or support remote compute.

Usage:

$ qbraid agents keep-alive [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • list: List local recovery policies.
  • enable: Enable recovery for one exact session.
  • disable: Disable recovery; leave the agent running.
  • forget: Remove an already disabled policy.
  • run: Run the local recovery host.

qbraid agents keep-alive list

List local recovery policies.

Does not enroll or launch anything.

Usage:

$ qbraid agents keep-alive list [OPTIONS]

Options:

  • --json: Print policy data as JSON.
  • --help: Show this message and exit.

qbraid agents keep-alive enable

Enable recovery for one exact session.

Preserves the live conversation’s recorded permissions.

Usage:

$ qbraid agents keep-alive enable [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Complete local managed session ID; names/prefixes are refused. [required]

Options:

  • --json: Print the resulting policy as JSON.
  • --help: Show this message and exit.

qbraid agents keep-alive disable

Disable recovery; leave the agent running.

Usage:

$ qbraid agents keep-alive disable [OPTIONS] {policy_id}

Arguments:

  • policy_id <str>: Complete policy ID from keep-alive list. [required]

Options:

  • --json: Print the resulting policy as JSON.
  • --help: Show this message and exit.

qbraid agents keep-alive forget

Remove an already disabled policy.

Does not change any agent runtime.

Usage:

$ qbraid agents keep-alive forget [OPTIONS] {policy_id}

Arguments:

  • policy_id <str>: Complete, already disabled policy ID. [required]

Options:

  • --json: Print a JSON acknowledgement.
  • --help: Show this message and exit.

qbraid agents keep-alive run

Run the local recovery host.

Ctrl-C exits without disabling policies. Exiting leaves policies armed, but recovery requires another compatible host to be running. Native policies pause here and require the owning Lab host. This command never enrolls a session or installs a daemon.

Usage:

$ qbraid agents keep-alive run [OPTIONS]

Options:

  • --once: Reconcile once and exit; installs no background host.
  • --interval <float range>: Seconds between ticks. [default: 5.0; 1.0<=x<=300.0]
  • --json: Print each tick’s policies as newline-delimited JSON.
  • --help: Show this message and exit.

qbraid agents queue

Queue follow-ups for a managed runtime.

Usage:

$ qbraid agents queue [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • enqueue: Queue a follow-up for this runtime.
  • list: List retained messages and delivery state.
  • continue: Continue this paused queue.
  • edit: Edit a queued message at its revision.
  • cancel: Cancel a queued message at its revision.
  • resolve: Resolve an uncertain delivery.
  • request-status: Inspect a request without replaying it.
  • watch: Host queued delivery on this machine.

qbraid agents queue enqueue

Queue a follow-up for this runtime.

Delivery waits for a confirmed completed turn and a running watcher. Queued text is typed into the agent’s terminal, so this needs a person at a terminal (stdin and stdout TTYs; exit 2 otherwise). Agents use agents send (inbox plus a nudge).

Usage:

$ qbraid agents queue enqueue [OPTIONS] {session_id}

Arguments:

  • session_id <str>: Exact destination session ID. [required]

Options:

  • --text <str>: Plain follow-up text.
  • --file <path>: UTF-8 text file (at most 32768 characters).
  • --compute <str>: Destination SSH alias.
  • --request-id <str>: Retain this UUID to reconcile a lost reply.
  • --json
  • --help: Show this message and exit.

qbraid agents queue list

List retained messages and delivery state.

Includes uncertain outcomes and wait reasons across all receipt pages.

Usage:

$ qbraid agents queue list [OPTIONS] {session_id}

Arguments:

  • session_id <str>: [required]

Options:

  • --compute <str>
  • --json
  • --help: Show this message and exit.

qbraid agents queue continue

Continue this paused queue.

Releases only the displayed hold. The watcher still checks turn completion, pending approvals and uncertain messages; no input is sent by this command.

Usage:

$ qbraid agents queue continue [OPTIONS] {session_id} {hold_id}

Arguments:

  • session_id <str>: Exact destination session ID. [required]
  • hold_id <str>: Hold UUID shown by queue list. [required]

Options:

  • --revision <int range>: Hold revision shown by queue list. [x>=1; required]
  • --compute <str>
  • --request-id <str>
  • --json
  • --help: Show this message and exit.

qbraid agents queue edit

Edit a queued message at its revision.

A concurrent delivery or edit refuses this operation. Like enqueue, it needs a person at a terminal (exit 2 otherwise).

Usage:

$ qbraid agents queue edit [OPTIONS] {session_id} {message_id}

Arguments:

  • session_id <str>: [required]
  • message_id <str>: [required]

Options:

  • --revision <int range>: Revision shown by queue list. [x>=1; required]
  • --text <str>
  • --file <path>
  • --compute <str>
  • --request-id <str>
  • --json
  • --help: Show this message and exit.

qbraid agents queue cancel

Cancel a queued message at its revision.

This cannot interrupt a message already submitted.

Usage:

$ qbraid agents queue cancel [OPTIONS] {session_id} {message_id}

Arguments:

  • session_id <str>: [required]
  • message_id <str>: [required]

Options:

  • --revision <int range>: [x>=1; required]
  • --compute <str>
  • --request-id <str>
  • --json
  • --help: Show this message and exit.

qbraid agents queue resolve

Resolve an uncertain delivery.

Check the terminal and clear partial input first. This never resends text.

Usage:

$ qbraid agents queue resolve [OPTIONS] {session_id} {message_id}

Arguments:

  • session_id <str>: [required]
  • message_id <str>: [required]

Options:

  • --revision <int range>: [x>=1; required]
  • --terminal-checked: Confirm you inspected the terminal and cleared partial input.
  • --compute <str>
  • --request-id <str>
  • --json
  • --help: Show this message and exit.

qbraid agents queue request-status

Inspect a request without replaying it.

Not-found does not prove non-delivery.

Usage:

$ qbraid agents queue request-status [OPTIONS] {request_id}

Arguments:

  • request_id <str>: [required]

Options:

  • --compute <str>
  • --json
  • --help: Show this message and exit.

qbraid agents queue watch

Host queued delivery on this machine.

Run on the destination; Ctrl+C pauses delivery. Closing this watcher preserves queued input. A tick sends at most one message per session; an uncertain write pauses that runtime until explicitly resolved.

Usage:

$ qbraid agents queue watch [OPTIONS]

Options:

  • --once: Run one delivery tick and exit.
  • --interval <float range>: [default: 4.0; 1.0<=x<=60.0]
  • --json: Emit one JSON object per tick.
  • --help: Show this message and exit.

qbraid agents inbox

Read messages sent to this agent’s inbox.

Follow, filter unread, and mark-read messages sent to this agent session’s inbox. Inboxes are per-session JSONL files at ~/.qbraid/inboxes/. Every agent session has one; peers use qbraid agents send to write to it.

Usage:

$ qbraid agents inbox [OPTIONS] COMMAND [ARGS]...

Options:

  • -s, --session <str>: Session whose inbox to read. Accepts full id, prefix, or tmux/terminal name (resolved via the registry). Defaults to $QBRAID_SESSION_ID.
  • -f, --follow: Stream new messages as they arrive.
  • -u, --unread: Show only unread messages.
  • -n, --limit <int>: Max messages to show (most recent); 0 for all. [default: 50]
  • --from <str>: Only messages from this agent (stable id, any of its session ids, or name), or whose sender id starts with this prefix.
  • --type <str>: Only messages of this type: message, task_assignment, status_update, shutdown_request.
  • --since <str>: Only messages from the last period, e.g. 30m, 2h, 1d.
  • --json: Print a JSON array of the matching messages with full text and every field (id, from, to, type, timestamp, read, text, forwarded_from, forwarded_to). Does not mark anything read unless —mark-read is passed.
  • --mark-read / --no-mark-read: Mark shown messages as read. Default: on only when a person (no agent session) prints the table to a terminal; off with —json, inside an agent session, or when stdout is not a terminal, so a message is never marked read unseen.
  • -w, --wide: Show full session ids in the From column and title (not the 12-char prefix). Use when multiple senders share a prefix.
  • --help: Show this message and exit.

Commands:

  • mark-read: Mark inbox messages as read.

qbraid agents inbox mark-read

Mark inbox messages as read.

Without —message-id, marks every unread message in the session’s inbox.

Usage:

$ qbraid agents inbox mark-read [OPTIONS]

Options:

  • -s, --session <str>: Session whose inbox to update. Accepts full id, prefix, or tmux/terminal name. Defaults to $QBRAID_SESSION_ID.
  • -m, --message-id <list[str]>: Specific message id(s) to mark. May be passed multiple times. Omit to mark ALL unread messages in the inbox.
  • --help: Show this message and exit.