quiet robot

qr command reference

Every qr command and option, generated from the command line's own help.

View as Markdown

Sandboxes is in early access. Every account gets $5 of sandbox time free each month, some parts are still in testing, and details may change. Sign up free

Every command takes --json (machine-readable output), --api-key and --base-url, after the command name. qr <command> --help lists the same options. For installing, signing in and common tasks, see qr command line.

Exit codes: the command's own exit code for qr exec and qr run; otherwise 0 when it worked, 1 for an API error or a refusal (a key the service turned down, a denied command), 2 for a usage error, and 3 from qr secrets test when the key's service can't be checked automatically.

Sign in

qr login

Sign in with your browser (or save an API key) so you don't need QR_API_KEY.

qr login [--with-key] [--key-stdin] [--no-browser]
ArgumentWhat it does
--with-keyPaste an API key instead of signing in with a browser
--key-stdinRead the API key from stdin (for scripts)
--no-browserPrint the sign-in link without opening a browser

qr logout

Forget the saved sign-in and end it on the server.

qr logout [--base-url BASE_URL]

qr whoami

Which key qr is using, and for which organization.

qr whoami [--base-url BASE_URL]

Sandboxes

qr create

Start a sandbox.

qr create [--name NAME] [--template TEMPLATE] [--cpu-class {standard,performance}] [--cpus {1,2,4,8,16}] [--memory-mb MEMORY_MB] [--timeout TIMEOUT] [--region REGION] [--snapshot SNAPSHOT] [--egress {deny,allowlist,open}] [--allow RULE] [--deny RULE] [--lock] [--no-lock] [--env KEY=VALUE] [--meta KEY=VALUE] [--secret NAME] [--channel NAME] [--secret-budget NAME:requests=N,usd=X] [--ephemeral] [--auto-pause SECONDS]
ArgumentWhat it does
--name NAMEA name
--template TEMPLATEStart from this template (qr templates lists them)
--cpu-class {standard,performance}Standard or Performance CPUs
--cpus {1,2,4,8,16}How many vCPUs
--memory-mb MEMORY_MBMemory in MB, a multiple of 256 (default 2048)
--timeout TIMEOUTSession length in seconds
--region REGIONWhere it runs
--snapshot SNAPSHOTStart from this snapshot id
--egress {deny,allowlist,open}Outbound network: deny (nothing), allowlist (only what --allow names) or open (the internet; private networks stay blocked)
--allow RULEAllowed domain, IP or CIDR range, optional :port (repeatable)
--deny RULEBlocked domain, IP or CIDR range (repeatable)
--lockThe network rules can never be widened later
--no-lockNot locked, even if your default network is
--env KEY=VALUEAn environment variable for it (repeatable)
--meta KEY=VALUEA label to find it by later (repeatable)
--secret NAMEA stored secret the sandbox may use (repeatable)
--channel NAMEA channel programs in the sandbox may use at $QR_CHANNELS_URL with no key, or "*" for all (repeatable)
--secret-budget NAME:requests=N,usd=XA tighter limit on a secret for this sandbox's run; can only lower the secret's own budget (repeatable)
--ephemeralDelete it when it stops (sandboxes are saved by default: files kept, deleted after 72 hours unused)
--auto-pause SECONDSPause after this many idle seconds

qr ls

List sandboxes.

Also: list.

qr ls [--status {starting,running,paused,stopped,error}]
ArgumentWhat it does
--status {starting,running,paused,stopped,error}Only sandboxes in this state

qr get

Show one sandbox.

qr get id
ArgumentWhat it does
idThe sandbox id (sbx_…)

qr pause

Pause a sandbox.

qr pause id
ArgumentWhat it does
idThe sandbox id (sbx_…)

qr resume

Resume a paused sandbox.

qr resume id
ArgumentWhat it does
idThe sandbox id (sbx_…)

qr timeout

Set the deadline to now + seconds.

qr timeout id seconds
ArgumentWhat it does
idThe sandbox id (sbx_…)
secondsSeconds from now

qr fork

Start copies of a sandbox (its files as they are now).

qr fork [--count COUNT] [--snapshot SNAPSHOT] [--name NAME] [--cpu-class {standard,performance}] [--cpus {1,2,4,8,16}] [--memory-mb MEMORY_MB] id
ArgumentWhat it does
idThe sandbox id (sbx_…)
--count COUNTHow many copies (default 1)
--snapshot SNAPSHOTCopy this snapshot instead of taking a new one
--name NAMEA name
--cpu-class {standard,performance}A different CPU class for the copies
--cpus {1,2,4,8,16}A different size for the copies (how a sandbox is resized)
--memory-mb MEMORY_MBMemory in MB

qr clone

Start running copies of a sandbox: memory, programs and files as they are this instant.

qr clone [--count COUNT] [--name NAME] [--timeout TIMEOUT] id
ArgumentWhat it does
idThe sandbox id (sbx_…)
--count COUNT1 to 10
--name NAMECopies are named NAME-1, NAME-2, ...
--timeout TIMEOUTEach copy's time limit in seconds from now

qr resize

Change a sandbox's size (copies it at the new size, then destroys the original; prints the new id).

qr resize [--cpus {1,2,4,8,16}] [--memory-mb MEMORY_MB] [--cpu-class {standard,performance}] id
ArgumentWhat it does
idThe sandbox id (sbx_…)
--cpus {1,2,4,8,16}How many vCPUs
--memory-mb MEMORY_MBMemory in MB
--cpu-class {standard,performance}Standard or Performance CPUs

qr rewind

Put a sandbox's files back to a snapshot (the latest by default).

qr rewind [--snapshot SNAPSHOT] [--save-current] id
ArgumentWhat it does
idThe sandbox id (sbx_…)
--snapshot SNAPSHOTThe snapshot to use (default: the latest)
--save-currentSnapshot the current state first

qr rm

Destroy a sandbox.

Also: destroy.

qr rm id
ArgumentWhat it does
idThe sandbox id (sbx_…)

Commands and code

qr run

Start a sandbox, copy files in, run a command, copy results out, then destroy it; or qr run start|list|show|cancel for runs of a graph.

qr run [--name NAME] [--template TEMPLATE] [--cpu-class {standard,performance}] [--cpus {1,2,4,8,16}] [--memory-mb MEMORY_MB] [--timeout TIMEOUT] [--region REGION] [--snapshot SNAPSHOT] [--egress {deny,allowlist,open}] [--allow RULE] [--deny RULE] [--lock] [--no-lock] [--env KEY=VALUE] [--meta KEY=VALUE] [--secret NAME] [--channel NAME] [--secret-budget NAME:requests=N,usd=X] [--ephemeral] [--auto-pause SECONDS] [--upload LOCAL[:REMOTE]] [--download REMOTE[:LOCAL]] [--cwd CWD] [--timeout-ms TIMEOUT_MS] [--keep] ...
ArgumentWhat it does
--name NAMEA name
--template TEMPLATEStart from this template (qr templates lists them)
--cpu-class {standard,performance}Standard or Performance CPUs
--cpus {1,2,4,8,16}How many vCPUs
--memory-mb MEMORY_MBMemory in MB, a multiple of 256 (default 2048)
--timeout TIMEOUTSession length in seconds
--region REGIONWhere it runs
--snapshot SNAPSHOTStart from this snapshot id
--egress {deny,allowlist,open}Outbound network: deny (nothing), allowlist (only what --allow names) or open (the internet; private networks stay blocked)
--allow RULEAllowed domain, IP or CIDR range, optional :port (repeatable)
--deny RULEBlocked domain, IP or CIDR range (repeatable)
--lockThe network rules can never be widened later
--no-lockNot locked, even if your default network is
--env KEY=VALUEAn environment variable for it (repeatable)
--meta KEY=VALUEA label to find it by later (repeatable)
--secret NAMEA stored secret the sandbox may use (repeatable)
--channel NAMEA channel programs in the sandbox may use at $QR_CHANNELS_URL with no key, or "*" for all (repeatable)
--secret-budget NAME:requests=N,usd=XA tighter limit on a secret for this sandbox's run; can only lower the secret's own budget (repeatable)
--ephemeralDelete it when it stops (sandboxes are saved by default: files kept, deleted after 72 hours unused)
--auto-pause SECONDSPause after this many idle seconds
--upload LOCAL[:REMOTE]Copy a file or folder in first (default folder: work); the command runs there
--download REMOTE[:LOCAL]Copy a file or folder out afterwards (repeatable)
--cwd CWDThe folder to run in (relative paths start in /home/sandbox)
--timeout-ms TIMEOUT_MSThe command's time limit (default 10 minutes)
--keepDon't destroy the sandbox afterwards
cmdThe command, after --

qr exec

Run a command (waits for approval if a rule holds it).

qr exec [--cwd CWD] [--env KEY=VALUE] [--timeout-ms TIMEOUT_MS] [--no-wait] [--stdin FILE] [--background] id ...
ArgumentWhat it does
idThe sandbox id (sbx_…)
cmdThe command to run, after --
--cwd CWDThe folder to run in (relative paths start in /home/sandbox)
--env KEY=VALUEAn environment variable for it (repeatable)
--timeout-ms TIMEOUT_MSThe command's time limit, in milliseconds
--no-waitReturn at once if the command needs approval
--stdin FILESend a file (or - for this stdin) to the command
--backgroundStart it and print its execution id; read it with qr logs

qr shell

Open an interactive terminal in a sandbox.

Also: terminal, ssh.

qr shell id ...
ArgumentWhat it does
idThe sandbox id (sbx_…)
cmdA program to run instead of a login shell

qr logs

Print a command's output (follow a running one with -f).

qr logs [-f] execution
ArgumentWhat it does
executionThe execution id (exe_…), as qr exec --background prints it
-f, --followKeep printing until it ends

qr kill

Stop a running command.

qr kill [--signal {TERM,KILL,INT,HUP,QUIT,USR1,USR2}] execution
ArgumentWhat it does
executionThe execution id (exe_…), as qr exec --background prints it
--signal {TERM,KILL,INT,HUP,QUIT,USR1,USR2}The signal to send (default TERM)

qr code

Run Python in the sandbox's notebook kernel (variables persist).

qr code id [file]
ArgumentWhat it does
idThe sandbox id (sbx_…)
fileA .py file, or - for stdin

qr undo

Put a sandbox's files back to just before a command ran.

qr undo execution
ArgumentWhat it does
executionThe execution id (exe_…), as qr exec --background prints it

Files

qr cp

Copy a file or folder in or out: qr cp ./src sbx_123:app, qr cp sbx_123:out ./out.

qr cp src dst
ArgumentWhat it does
srcWhere to copy from: a local path, or sbx_…:path
dstWhere to copy to: a local path, or sbx_…:path

qr cat

Print a file from a sandbox.

qr cat id path
ArgumentWhat it does
idThe sandbox id (sbx_…)
pathA path in the sandbox (relative paths start in /home/sandbox)

qr put

Upload a local file (or - for stdin).

qr put id local path
ArgumentWhat it does
idThe sandbox id (sbx_…)
localA local file, or - for stdin
pathA path in the sandbox (relative paths start in /home/sandbox)

qr files

List a folder in a sandbox.

qr files id [path]
ArgumentWhat it does
idThe sandbox id (sbx_…)
pathA path in the sandbox (relative paths start in /home/sandbox)

qr ports

List a sandbox's preview URLs.

qr ports id
ArgumentWhat it does
idThe sandbox id (sbx_…)

qr expose

Give a port a preview URL.

qr expose [--public] [--expires EXPIRES] id port
ArgumentWhat it does
idThe sandbox id (sbx_…)
portThe port the server listens on in the sandbox
--publicAnyone with the URL (default: needs the token or share link)
--expires EXPIRESStop answering after this long: 30m, 1h, 24h, 7d (default: never)

Make a private link to a port that expires.

qr link [--expires EXPIRES] id port
ArgumentWhat it does
idThe sandbox id (sbx_…)
portThe port the server listens on in the sandbox
--expires EXPIRESHow long the link works: 30m, 1h, 24h, 7d (default 24h)

qr unexpose

Stop exposing a port.

qr unexpose id port
ArgumentWhat it does
idThe sandbox id (sbx_…)
portThe port the server listens on in the sandbox

Snapshots and volumes

qr snapshot

Save a sandbox's files as a snapshot.

qr snapshot [--name NAME] id
ArgumentWhat it does
idThe sandbox id (sbx_…)
--name NAMEA name

qr snapshots

List snapshots.

qr snapshots [--base-url BASE_URL]

qr volumes

List volumes.

qr volumes [--base-url BASE_URL]

Keys (secrets)

qr secrets

Keys a sandbox can use without holding them: list, set, roll, test, delete, limits.

Also: secret.

qr secrets {list,ls,set,roll,rotate,test,delete,rm,limits} ...

qr secrets list

Your secrets with allowed hosts, rules, budgets and when each was rolled (never values).

Also: ls.

qr secrets list [--base-url BASE_URL]

qr secrets set

Add a secret; prompts for the value (or reads stdin).

qr secrets set [--allowed-host HOST] [--stdin] [--replace] name
ArgumentWhat it does
nameThe secret's name, like OPENAI_API_KEY
--allowed-host, --allowed-hosts HOSTA host the key may be sent to, like api.openai.com (repeatable, or comma separated). The key is only added to calls to these hosts. Everything else is blocked.
--stdinRead the value from stdin even in a terminal
--replaceReplace a secret that already exists without asking

qr secrets roll

Replace a secret's value: prompts for (or reads from stdin) the new key, tests it, then swaps it in.

Also: rotate.

qr secrets roll [--stdin] [--allowed-host HOST] [--yes] name
ArgumentWhat it does
nameThe secret's name, like OPENAI_API_KEY
--stdinRead the new value from stdin even in a terminal
--allowed-host, --allowed-hosts HOSTChange the allowed hosts too (default: keep them)
--yes, -ySwap in a key whose service can't be tested without asking

qr secrets test

Check a saved key with its service (exit 0 accepted, 1 refused, 3 can't be tested).

qr secrets test [--value] [--stdin] name
ArgumentWhat it does
nameThe secret's name, like OPENAI_API_KEY
--valueTest a different value first, without saving it (prompts, or reads stdin)
--stdinWith --value: read it from stdin

qr secrets delete

Delete a secret; sandboxes using it lose access at once.

Also: rm.

qr secrets delete [--yes] name
ArgumentWhat it does
nameThe secret's name, like OPENAI_API_KEY
--yes, -yDon't ask first

qr secrets limits

Which calls a secret may make and how much it may be used (same as qr secret-limits).

qr secrets limits [--rule 'METHODS PATHS'] [--clear-rules] [--per-run requests=N,usd=X] [--per-month requests=N,usd=X] [--usd-per-request X] [--clear-budget] name
ArgumentWhat it does
nameThe secret's name, like OPENAI_API_KEY
--rule 'METHODS PATHS'An allowed call, like 'POST /v1/chat/completions' or 'GET,HEAD /v1/models/*'; * is one path part, ** any number. Once set, other calls are refused (repeatable; replaces the list)
--clear-rulesAllow any call to the secret's hosts again
--per-run requests=N,usd=XLimit for one sandbox, or one whole Playground run
--per-month requests=N,usd=XLimit for a calendar month (UTC)
--usd-per-request XWhat one call costs, for services that don't report usage
--clear-budgetRemove the budget

qr secret-limits

Set which calls a stored secret may make and how much it may be used.

qr secret-limits [--rule 'METHODS PATHS'] [--clear-rules] [--per-run requests=N,usd=X] [--per-month requests=N,usd=X] [--usd-per-request X] [--clear-budget] name
ArgumentWhat it does
nameThe secret's name, like OPENAI_API_KEY
--rule 'METHODS PATHS'An allowed call, like 'POST /v1/chat/completions' or 'GET,HEAD /v1/models/*'; * is one path part, ** any number. Once set, other calls are refused (repeatable; replaces the list)
--clear-rulesAllow any call to the secret's hosts again
--per-run requests=N,usd=XLimit for one sandbox, or one whole Playground run
--per-month requests=N,usd=XLimit for a calendar month (UTC)
--usd-per-request XWhat one call costs, for services that don't report usage
--clear-budgetRemove the budget

Approvals

qr approvals

Commands a rule is holding for a person: list, approve, deny, open.

Also: approval.

qr approvals {list,ls,approve,deny,open} ...

qr approvals list

What's waiting, newest first.

Also: ls.

qr approvals list [--base-url BASE_URL]

qr approvals approve

Open a held command in the dashboard to approve it.

qr approvals approve [--wait] [--no-browser] id
ArgumentWhat it does
idThe execution id (exe_…) from qr approvals list
--waitWait for the decision and exit 0 if approved, 1 if denied
--no-browserPrint the link without opening it

qr approvals deny

Open a held command in the dashboard to deny it.

qr approvals deny [--wait] [--no-browser] id
ArgumentWhat it does
idThe execution id (exe_…) from qr approvals list
--waitWait for the decision and exit 0 if approved, 1 if denied
--no-browserPrint the link without opening it

qr approvals open

Open the Approvals page.

qr approvals open [--no-browser]
ArgumentWhat it does
--no-browserPrint the link without opening it

Channels

qr channels

Messages between sandboxes: list, send, read (-f follows), take, ack, delete. Works inside a sandbox started with --channel, with no key.

Also: channel.

qr channels {list,ls,send,read,take,ack,delete} ...

qr channels list

Channels you can use, with counts.

Also: ls.

qr channels list [--base-url BASE_URL]

qr channels send

Send a message (text, or JSON with --json-body; - reads stdin).

qr channels send [--json-body] name body
ArgumentWhat it does
nameA name
body
--json-bodyThe message is JSON (an object, list or number), not text

qr channels read

Messages after a number, oldest first.

qr channels read [--after AFTER] [--limit LIMIT] [--wait WAIT] [-f] name
ArgumentWhat it does
nameA name
--after AFTERA message number, or "latest" for only new ones (default 0: the oldest kept)
--limit LIMITHow many to show
--wait WAITSeconds to wait for a message (up to 25)
-f, --followKeep printing new messages

qr channels take

Take the next message nobody has (exit 3 when none).

qr channels take [--lease SECONDS] [--wait WAIT] name
ArgumentWhat it does
nameA name
--lease SECONDSGive it back unless acked in time
--wait WAITSeconds to wait for one (up to 25)

qr channels ack

Mark a message you took with a lease as done.

qr channels ack name seq
ArgumentWhat it does
nameA name
seq

qr channels delete

Delete a channel and its messages.

qr channels delete name
ArgumentWhat it does
nameA name

Flows and runs

qr flows

Saved flows: list, get, create (from a JSON file or a recipe), draft (from plain words), update, validate, export, run, delete.

Also: flow.

qr flows {list,ls,get,create,run,delete,rm,validate,check,draft,describe,export,update,schema,logs} ...

qr flows list

Your flows, newest change first.

Also: ls.

qr flows list [--base-url BASE_URL]

qr flows get

A flow and its steps (--json for its whole graph).

qr flows get id
ArgumentWhat it does
idThe flow id (flw_…)

qr flows create

Save a new flow from a graph file or a recipe (blank with neither); prints its id.

qr flows create [--recipe ID] [--name NAME] [file]
ArgumentWhat it does
fileA graph as JSON, or {graph, guards, layout, name} (or - for stdin)
--recipe IDStart from a recipe (qr recipes list)
--name NAMEA name

qr flows run

Run a flow; guards left out are the flow's.

qr flows run [--max-loops MAX_LOOPS] [--time-sec TIME_SEC] [--budget DOLLARS] [--cpu-class {standard,performance}] [--cpus {1,2,4,8,16}] [--memory-mb MEMORY_MB] [--wait] [--meta KEY=VALUE] id
ArgumentWhat it does
idThe flow id (flw_…)
--max-loops MAX_LOOPSGuard: stop after this many loops (default 5)
--time-sec TIME_SECGuard: stop after this many seconds (default 300)
--budget DOLLARSGuard: stop once it has spent this much (default 0.25)
--cpu-class {standard,performance}Standard or Performance CPUs
--cpus {1,2,4,8,16}How many vCPUs
--memory-mb MEMORY_MBMemory in MB
--waitPrint its steps as they happen until it ends
--meta KEY=VALUEA label to find it by later (repeatable)

qr flows delete

Delete a flow and its versions (its runs stay).

Also: rm.

qr flows delete id
ArgumentWhat it does
idThe flow id (flw_…)

qr flows validate

Check a flow JSON file or a saved flow without running it; exits 1 when it wouldn't run.

Also: check.

qr flows validate [--flow ID] [file]
ArgumentWhat it does
fileA flow JSON file (or - for stdin)
--flow IDA saved flow instead of a file

qr flows draft

Draft a flow from plain words with your saved Claude key, and save it.

Also: describe.

qr flows draft [--key SECRET] [--no-save] [-o FILE] description [description ...]
ArgumentWhat it does
descriptionWhat the flow should do, in plain words
--key SECRETThe saved Claude key to draft with (default ANTHROPIC_API_KEY)
--no-saveOnly print it; don't save a flow
-o, --output FILEAlso write the flow JSON to a file

qr flows export

A flow as JSON, to keep, edit or copy (qr flows create FILE).

qr flows export [-o FILE] id
ArgumentWhat it does
idThe flow id (flw_…)
-o, --output FILEWrite it to a file instead of printing it

qr flows update

Save a flow JSON file over a flow (fields the file leaves out keep their value).

qr flows update [--name NAME] id file
ArgumentWhat it does
idThe flow id (flw_…)
fileA flow JSON file (or - for stdin)
--name NAMEA name

qr flows schema

The flow JSON schema, for editors.

qr flows schema [--base-url BASE_URL]

qr flows logs

A run's steps and what each printed (-f follows it until it ends).

qr flows logs [-f] id
ArgumentWhat it does
idA run id (run_…), as qr flows run prints it
-f, --followKeep printing until it ends

qr recipes

Recipes: ready-made flows to start from.

Also: recipe.

qr recipes {list,ls} ...

qr recipes list

The recipes, with their level and default guards.

Also: ls.

qr recipes list [--level {everyday,advanced}]
ArgumentWhat it does
--level {everyday,advanced}Only this level

qr graph

Loops and graphs: forecast the cost and time of a graph, a recipe or a flow.

qr graph [--recipe ID] [--flow ID] [--template ID] [--max-loops MAX_LOOPS] [--time-sec TIME_SEC] [--budget DOLLARS] [--cpu-class {standard,performance}] [--cpus {1,2,4,8,16}] [--memory-mb MEMORY_MB] {templates,simulate} [file]
ArgumentWhat it does
action (templates, simulate)Templates is the old name for qr recipes list
fileA graph as JSON (or - for stdin)
--recipe IDA recipe instead of a file (qr recipes list)
--flow IDA saved flow instead of a file (qr flows list)
--template IDThe old name for --recipe
--max-loops MAX_LOOPSGuard: stop after this many loops (default 5)
--time-sec TIME_SECGuard: stop after this many seconds (default 300)
--budget DOLLARSGuard: stop once it has spent this much (default 0.25)
--cpu-class {standard,performance}Standard or Performance CPUs
--cpus {1,2,4,8,16}How many vCPUs
--memory-mb MEMORY_MBMemory in MB

Templates

qr templates

List our templates and yours.

qr templates [--base-url BASE_URL]

qr template-build

Build (or rebuild) your own template from a Dockerfile.

Also: build.

qr template-build [--description DESCRIPTION] [--no-wait] name dockerfile
ArgumentWhat it does
nameThe template's name
dockerfilePath to the Dockerfile, or - for stdin
--description DESCRIPTIONA line saying what the template is for
--no-waitReturn once the build has started

qr template

Show one of your templates.

qr template [--log] name
ArgumentWhat it does
nameThe template's name
--logPrint the latest build's log

qr template-rm

Delete one of your templates.

qr template-rm name
ArgumentWhat it does
nameThe template's name

Network and spending

qr learn

Learn mode: record the hosts a sandbox reaches, then allow only those.

qr learn [--allow HOST] id {start,show,apply,stop}
ArgumentWhat it does
idThe sandbox id (sbx_…)
action (start, show, apply, stop)What to do
--allow HOSTWith apply: allow only these (default: everything seen)

qr spend-cap

Cap what a sandbox may spend (an API key may only lower it).

qr spend-cap id dollars
ArgumentWhat it does
idThe sandbox id (sbx_…)
dollarsA dollar amount, or none

Looking around

qr metrics

CPU, memory, disk and network for a sandbox.

qr metrics [--hours HOURS] id
ArgumentWhat it does
idThe sandbox id (sbx_…)
--hours HOURSHow many hours back

qr audit

Show the audit log (for one sandbox, or the organization).

qr audit [--limit LIMIT] [id]
ArgumentWhat it does
idThe sandbox id (sbx_…)
--limit LIMITHow many to show

qr report

What the agent did in a sandbox, from the audit log.

qr report [--pdf FILE] id
ArgumentWhat it does
idThe sandbox id (sbx_…)
--pdf FILESave it as a PDF

qr usage

Show this month's usage and limits.

qr usage [--days DAYS]
ArgumentWhat it does
--days DAYSThe last N days instead of this month

qr ai-usage

Show what your own Claude and OpenAI keys were used for, and the estimated cost.

qr ai-usage [--days DAYS] [--key KEY]
ArgumentWhat it does
--days DAYS1 to 400, default 30
--key KEYOne key, by its secret name

qr policy

Show your organization's rules: defaults for new sandboxes and the approval rules.

qr policy [--base-url BASE_URL]

Runs of a graph or flow

qr run followed by one of these words works with runs instead of starting a sandbox.

qr run start

Start a run of a graph file, a recipe or a saved flow.

qr run start [--recipe ID] [--flow ID] [--template ID] [--max-loops MAX_LOOPS] [--time-sec TIME_SEC] [--budget DOLLARS] [--cpu-class {standard,performance}] [--cpus {1,2,4,8,16}] [--memory-mb MEMORY_MB] [--wait] [--meta KEY=VALUE] [file]
ArgumentWhat it does
fileA graph as JSON (or - for stdin)
--recipe IDA recipe instead of a file (qr recipes list)
--flow IDA saved flow instead of a file (qr flows list)
--template IDThe old name for --recipe
--max-loops MAX_LOOPSGuard: stop after this many loops (default 5)
--time-sec TIME_SECGuard: stop after this many seconds (default 300)
--budget DOLLARSGuard: stop once it has spent this much (default 0.25)
--cpu-class {standard,performance}Standard or Performance CPUs
--cpus {1,2,4,8,16}How many vCPUs
--memory-mb MEMORY_MBMemory in MB
--waitPrint its steps as they happen until it ends
--meta KEY=VALUEA label to find it by later (repeatable)

qr run list

Recent runs, newest first.

qr run list [--limit LIMIT]
ArgumentWhat it does
--limit LIMITHow many to show

qr run show

A run and its steps.

qr run show [--wait] id
ArgumentWhat it does
idThe run id (run_…)
--waitFollow it until it ends

qr run cancel

Stop a run.

qr run cancel id
ArgumentWhat it does
idThe run id (run_…)

  • Agent PlaygroundQuickstart: build and run your first flow
  • Agent PlaygroundBlocks
  • Agent PlaygroundRecipes
  • SandboxesQuickstart: your first sandbox
  • SandboxesMCP server
  • SandboxesAPI reference
  • InsightsAll posts