Docs

Reference

Wire endpoints

For a controller not written in Python. deploy and connect reach the gateway; /stream reaches the worker directly.

POST/v1/deployments

sequence-cloud (seq deploy) → gateway. Registers a policy from its spec (image, weights, resources, autoscaler). Returns 202 with deployment_id, the policy’s name, and building; poll GET /v1/deployments/{name} until ready or failed.

GET/v1/deployments/{name}/fleet

Client → gateway, under your API key. What seq policy status prints: the deployment’s workers (each one’s card, its copies of the model, the robots it seats and those on it), the robots waiting for a slot, one worker’s price per hour in its parts (its cards’ gpu_usd_per_hour, and its machine (the cpu cores and memory_gib its card sets, or what it declares where that is more) with cpu_usd_per_hour and memory_usd_per_hour, that machine’s at the serving rates), and gpus, the card it runs on (cards, one: its card, one worker’s usd_per_hour as billed, and the workers on it now), whose choice it is (source: template when it is its template’s own, else custom, with the template’s own in template_cards), and its max_gpus beside your account’s account_gpus: it holds at most the smaller. gpus is null for a policy on CPU.

GET/v1/pricing

Public, no key. The price list seq gpus, seq deploy --dry-run and sequence_ai.gpus() read, the same rows the Pricing page shows. gpus: each card --gpu (and a benchmark’s gpu=) can name, with usd_per_hour and usd_per_second (one card alone), vram_gb, policy and benchmark (whether a policy and a benchmark’s sims may run on it), rt_core and nvenc: a card’s price is its GPU alone. cpu.usd_per_core_hour and memory.usd_per_gib_hour: a core and a GiB an hour on builds, checks, shells and an eval’s benchmark machines; cpu.serving_usd_per_core_hour and memory.serving_usd_per_gib_hour: what a policy’s worker pays, deployed or in an eval. policy_machines: for each card and count a policy may deploy on ("L4", "L4:4"), and "cpu" for none, the machine its worker’s CPU and memory are billed as: its cpu cores and memory_gib, one size wherever it runs; a policy that declares more is billed what it declares. gpu_machines: for each card seq gpu add opens, the counts of it one machine holds now, every list under it together. plans maps each count whose machine needs more cores or memory than the smallest plan holds at once to the plan that holds it, for example {"4": "Team"} for an H100. CPU and memory are billed apart from the card: an hour of a worker is its cards × usd_per_hour + its machine’s cores × a serving core’s + its machine’s GiB × a serving GiB’s (the size its card sets, or what it declares where that is more, whatever it uses) and a worker that declares no GPU pays no card. min_billable_s: the seconds a policy worker’s card is billed at least once it comes up, and an eval’s machines, their CPU and memory too, each time they start. storage.usd_per_gb_month: a GB of a deployment’s weights copy or a volume, a month, billed every day it is kept; storage.dependency_usd_per_gb_month: a GB of your versions’ saved images and dependencies, a month; saving an image is not billed. storage.shared_weights_templates: the official templates’ weights a deployment on one machine reads from the platform’s read-only copy, every part of them, while its code is that template’s, unchanged - nothing is copied, so nothing of them is billed; any other weights are copied for the deployment, except a volume you uploaded, which is billed as that volume.

POST/v1/act/connect

Client → gateway, once. The body is {"model", "session"}: the policy’s name, and an id of the robot’s own, 8 to 64 letters, digits, _ or -, the same on each of its connects. Admits the call and ensures a worker is up; returns worker_url, cert_fingerprint, direct_secret and a lease, with how its answers play (hz, action_chunk_valid_len and action_chunk_replan_at: each chunk length as its deployment sets it, else as its version declares it, and each only where there is one; max_wait_for_batch likewise, where it is set), and request_timeout_s, how long the serving version allows one act, and keepalive: how often to say the robot is alive (every_s) and how long its seat outlives its last word (seat_ttl_s, 60 s). A cold worker answers 503 with Retry-After while it boots.

GET/v1/act/ready?model=…&session=…

Client → gateway: whether a worker can take the robot now, ready, and its status: ready, starting (with eta_s), queued (with queue_position and retry_after_s), cold or building. A poll only looks: it starts no worker and takes no seat. cold: a connect would place the robot now (it holds nothing, or a seat came free beside the worker it waits on) and its client connects (wait_until_ready() does); in line, its client connects again each retry_after_s, its turn. A poll keeps the place the robot holds as a keepalive does.

POST/v1/act/keepalive

Client → gateway, with {"model", "session"}, every keepalive.every_s its connect gave: keeps the robot’s seat, or its place in line, which ends seat_ttl_s after its last connect, ready poll or keepalive. "held": false: it holds none now; its next connect seats it again or puts it in line.

POST/v1/act/release

Client → gateway, with {"model", "session"}, when the robot closes: its seat, or its place in line, is free at once for the next robot waiting.

POST/v1/teleop/offer

An operator’s console → gateway, with the robot’s own key, or signed in as its owner with {"robot"}, and {"sdp", "nat", "operator"}: the console’s connection details, for the robot. {"pairing", "robot"}. 409 robot_not_connected, teleop_not_listed or robot_not_direct; 400 direct_refused for details that cannot be used; 429 offer_too_soon, at most one every 2 s (Teleoperation).

GET/v1/teleop/pairing/{id}?wait_s=20

The console waits for the robot’s answer: {"state": "offered"}, ask again; {"state": "answered", "sdp", "nat", "fingerprint"}, once; or {"state": "failed", "why"}. The answer holds both sides’ addresses, and is deleted as this call reads it. Nothing else goes through the platform: the two connect straight to each other.

POST/v1/record/connect

Your recorder → gateway, with your account’s key and {"robot"}, a robot’s name, or with that robot’s own key and no name: robot, its name; connected, whether it has a connection now; workers, the worker each of its connections to a policy sits on, each its worker name, worker_url, the cert_fingerprint to pin and a token that opens that worker’s /record for this robot alone, for 15 minutes, none while it is not connected, and none for a robot connected to teleop alone (teleop_only), which writes its steps itself; refresh_s, how often to ask again (10); and window, what each worker holds (60 s, 32 MiB). 409 record_off while the robot’s Record is off; 404 for no robot of that name; 403 another_robots_key for a robot’s key that names another robot; and 410 record_moved_to_robot for a request that names a policy, as sequence-ai before 0.60.0 sends, and for a record key (Your own recorder).

GET{worker_url}/record?after=N

Your recorder → worker, directly. One WebSocket (wss, Authorization: Bearer <token>) on which the worker sends hello (first, next), then every record of the token’s robot it holds after number N, all it holds without one, and each as it comes, one msgpack map a record: observe, act, label, end, driver and help, each with its number n, counted for that robot on that worker from 1, and the short name of its robot’s key (robot); a gap (count) where it let records go before they were read, or one numbered n, its count null, with an episode, its observations and acts, before that episode’s first record, where steps of it came while its Record was off there; refused (record_off) once its Record is off there; bye when it stops serving and every record it held was read. sequence_ai.record reads it for you.

GET{worker_url}/stream

Client → worker, directly. The gateway is not in this path. One WebSocket (wss, Authorization: Bearer <direct_secret>) that the robot’s observations, acts and episode ends travel on, as msgpack messages (x-seq-stream/3) in the order it made them, each in pieces of at most 16 KB and answered on the same connection, an act’s answer ahead of the rest: an act with outputs, what the policy’s infer returned, as it returned it, with perf, usage and request_id. An observation that was taken is answered nothing: every answer names, in X-Seq-Stream-Through, the last request served before it, and every observation up to that one was taken. The same token over plain HTTP is refused (400 invalid_request, details.reason http_gone). A 401 (rotated secret) or lease expiry sends the client back to connect to fetch fresh coordinates.

GET/v1/account

Client → gateway, under a key or signed in; a robot key reads the policies on its list alone (Keys). The read-only status of the account the key belongs to: balance (this month’s money; billing is postpaid, each month’s usage billed at its end: spendable, what you may spend now, your credits and any payment method’s line, at most what this month’s limit leaves past what was spent and what running workers and evals hold (held_usd), what seq account says is left to spend, and the console’s Left to spend; work that would spend past it is refused; period_spent_usd, what you have spent this month; credit_usd and credit_left_usd, your monthly credit and what is left of it; month_limit_usd and month_left_usd, your plan’s monthly usage limit and what is left of it before what running work holds; payment_method, the card on your account, or null), usage (the policies and benchmarks counted against your limits), limits (the per-account caps that are configured), gpus (your GPU limit, what serving, evals, build checks, shells and the GPUs you added hold now, how many are left, and the evals waiting for GPUs) and storage (what you store against your storage limit). Creating keys and adding a payment method take you signed in, never a key: in the console, or with seq key add after seq login; so does adding credit ahead, seq billing top-up.

check this month’s room before a big runpython
# everything ending in _user is yours
import sequence_ai

acct_user = sequence_ai.account()
acct_user["balance"]["spendable"]  # what you may spend now: what seq account and the console's Left to spend say
acct_user["usage"]             # {"policies": 1, "benchmarks": 0}
POST/v1/credits/redeem

Client → gateway, signed in as yourself (a console session, or seq login); every key is refused. The body is {"code": "…"}, a promotion code from our team, which adds credit, spent before the month’s bill, once per account (any case; spaces around it are ignored). The answer is code and amount_usd. A code that is unknown, turned off or expired is 400 invalid_request; one this account has redeemed, or that every account it allows has, 409 conflict (details.reason says which: already_redeemed or used_up); after ten failed tries in an hour, 429 busy with retry_after_s. seq billing redeem CODE and seq.redeem_promo_code(code) call it.

GET/v1/account/usage

Client → gateway, under your API key. Your GPU card-hours per hour or day: from and to (ISO dates or times; this billing period so far, from the 1st of the UTC month, by default; at most 90 days by the hour or day and 400 by the month), by (hour up to a week, day beyond, unless given; or month), tz (an IANA zone the buckets start in, UTC by default) and group (none, kind, deployment or gpu). The answer has total_card_hours, total_usd and one entry per bucket and group in buckets: start, group, card_hours, cost_usd and the deployments that ran. card_hours counts GPU cards; cost_usd is those machines’ whole cost, GPU, CPU and memory, so the totals are what you are billed for them. With group=kind a group is serving (policy workers), eval, check (a version’s build check), weights (the copy of a version’s weights before its check: CPU and memory, no card-hours), build (the machine that prepares a version’s image), shell (a benchmark’s shell or a policy’s debug machine) extra (extra starts: a job runs on the closest GPU available, and another start that got a card for it is billed from that card until it ended) or gpu (a GPU you added with seq gpu add). seq usage prints it, and the console’s Usage page names the same eight.

The GPU API

What sequence-cloud’s sequence_ai.gpu and seq gpu call, under your own key (seq_dev_…) or a signed-in session. A robot key is refused.

POST/v1/gpus

{"gpu", "place", "count", "from", "name", "ports", "allow", "run"}: count is the cards of its machine, 1, 2, 4 or 8, and 1 unless you say; the others none unless you say; allow only with ports, and the address the request came from where you give none. Returns {"gpus": […]} once it is asked for, in seconds: the one GPU as GET lists it, starting, with expected_rtt: {"ms", "probes", "within_km": 150, "days": 30}, the median round trip the probes within 150 km of its place measured over the last 30 days to where it gets its card (the place that took it, where that place had the card over the last 14 days, else the quickest of the three nearest places that did) and how many probes; "ms" null and "probes" 0 where none that near measured it; expected_rtt null where no round trip is given.

GET/v1/gpus

{"gpus": [{"id", "place", "gpu", "cards", "status", "started_at", "usd_so_far", "usd_per_hour", "sent_usd", "stored_usd", "address", "address6", "name", "host", "ssh_port", "ports", "allow", "follow", "image", "robots", "run", "request", "request_cards", "asks_again_at", "asks_every_s", "waits_until"}], "quota": {"used", "limit"}}, those live (starting or running), oldest first. place is the place you gave POST, as you gave it; gpu is its card and cards how many of it the machine has; request and request_cards are its own id and cards, kept for programs that read them; usd_so_far is what it is billed, the seconds another place held its card among them, and sent_usd and stored_usd are parts of it: what it sent out to the internet, and what saving its snapshots was billed; usd_per_hour is an hour of it in all, cards times one card’s, its price plus its CPU and memory, as seq --json gpu list prints it; a card’s own price is what seq gpus and the pricing page list (What it costs); quota counts cards, a GPU of 4 using 4; address and ssh_port once it runs, and address6 for one reached over IPv6; follow, for each robot that follows it, where it was let in from (null before its first follow; Robots whose address changes); name and host, the address the name reaches, on the GPU that holds its name (A name that stays); image is base 2026.11 or snapshot <name>; robots is {"count", "rtt_p50_ms"}; run is running, restarting or failing, said within a few seconds of its command starting, and is not there for a GPU with no command. While a starting GPU waits for a card (Its status), it has three more fields: asks_again_at, when it is asked for again; asks_every_s, the seconds between two asks; and waits_until, the latest it waits. Both times are UTC, in ISO 8601.

GET/v1/gpus/history

Those over, the one ended last first, kept 30 days: {"gpus": […], "total", "offset", "next_cursor"}, each as GET /v1/gpus lists one, with its ended_at, its reason where it failed or ran out of credit (Its status), and waited_s: for a GPU that did not start, how long it waited for its card, in seconds (1200 at the time limit). limit (1–200, 50 unless you say) and cursor, the last page’s next_cursor, page it.

PUT/v1/gpus/{id}/allow

{"allow": […]}, the ranges that reach its ports from now on, in place of those it had. Returns {"id", "allow", "applied"}, applied true once the GPU says its ports are open to those alone. The robots that follow it keep where they were let in from.

POST/v1/gpus/{id}/follow-token

{"robot"}, a name of letters, digits, ., _ and -. Returns {"id", "robot", "token"}; made again for the same robot, with applied where the address its old token let in was taken away. Up to 8 robots for each GPU.

DELETE/v1/gpus/{id}/follow/{robot}

The robot follows it no more: returns {"id", "robot", "applied"}.

POST/v1/gpus/follow

Called by the robot with its follow token as the bearer, and no key. Returns {"id", "robot", "range", "applied", "ports"} and, while it runs, address, address6 and host. 401 for a token made again or taken away since, 410 for a GPU removed, and 400 with gpu_ip6_closed over IPv6 to a GPU with no address6: call again over IPv4.

POST/v1/gpus/{id}/save

{"name", "replace"}: saves a snapshot of it in the background, answering saving at once. GET /v1/gpus/saved lists your snapshots, {"snapshots": [{"name", "status", "size_gb", "gpu", "image", "saved_at", "usd_per_month", "reason"}]}, reason where one failed; DELETE /v1/gpus/saved/{name} removes one.

POST/v1/gpus/{id}/ssh

{"public_key"}, one line of a .pub file. Returns {"host", "port": 8080, "user": "root", "certificate"} for a GPU that is running.

GET/v1/gpus/places

The US cities a GPU’s place can be chosen from: {"data": [{"name", "region", "country", "lat", "lon", "also"}]}, those whose name, or another name they go by (also), starts with q, their own name first, the largest first; limit 1 to 20, 8 unless you say.

GET/v1/gpus/{id}/logs

Its log, oldest first: {"id", "status", "ended", "entries": [{"id", "at", "kind", "what", "text", "detail"}], "next"}. kind is event, which what names: requested, started, loaded, ready, waiting, restoring, restored, allow, follow, follow_token, follow_gone, name, run_started, run_exited, run_failing, snapshot_started, snapshot_saved, snapshot_failed, ended (why in detail.reason), billed; or output, a line its command printed. since (30m, 1h, 2d, or a time with its zone), after (a page’s next: ask again with it to follow, until ended and nothing new) and limit (1–1000, 500 unless you say). Kept 90 days after it ends.

DELETE/v1/gpus/{id}

Shuts it down and returns {"id", "status": "shut_down"}, the same for one already shut down. ?force=true removes one while a snapshot of it is saving, giving that snapshot up, unbilled.

GET/v1/gpus/rtt

With no key, the round trips the latency map shows: for each place on it, the median handshake public probes there measured over the last 30 days to where a GPU there gets its card, the quickest of the three nearest places that really had an L4 over the last 14 days: {"measured", "opened_only", "places": [{"city", "state", "lat", "lon", "connection", "ms"}]}. opened_only is false when no place had an L4 in that time; each place with the card then counts.

A refusal’s details.reason says why:

details.reasonstatuswhen
place_unknown400the place is no city and no latitude and longitude, or names places far apart; details.candidates lists them
gpu_unknown400no card is called that; the error lists those you can name
gpu_count400count is not 1, 2, 4 or 8, or its card has no machine of that many; details.counts lists the counts it can be
gpu_ports400a port, a range or the command cannot be had, or allow came without ports; the message says which
snapshot_not_found400 (404 removing one)no snapshot of yours has that name
snapshot_not_ready409the snapshot is still being saved, or its last save did not finish
snapshot_name400a snapshot’s name that cannot be had; the message says why
snapshot_exists409a save names a snapshot you have, without replace
name_taken409a save names something else of yours, not a snapshot
gpu_saving409the GPU is saving one already, or is removed while it saves without force
storage_full409a save while your storage is at its limit
gpu_robot, gpu_follow_most400a robot to follow that cannot be had, or more robots than one GPU follows
gpu_robot_not_found404no robot of that name follows the GPU
gpu_name400the name is not 1 to 40 lowercase letters, digits and hyphens; nothing was added
gpu_name_unavailable503no GPU can be named right now; none was added, add it again shortly
gpu_limit_reached, cpu_limit_reached, memory_limit_reached, container_limit_reached409past one of your plan’s limits; nothing was added
gpu_no_card503that card could not be requested right now: none was added; add it again in a minute. Otherwise, the GPU is added at once and starts as soon as a card is ready near that place. The wait for a card is not billed (Its status).
gpu_busy503the platform’s GPUs are all in use right now
gpu_not_running409SSH asked of a GPU that is not running, or an allow list of one that is over
gpu_no_port409an allow list for a GPU that opened no port
public_key400no ed25519, ECDSA or RSA public key of 2048 bits or more
gpu_logs_since400a log’s since is no time and no span back from now
gpu_not_found404no GPU of yours has that id

When your account can spend no more, adding is refused with 402 insufficient_credit (Account and billing).

Official templates

The templates are in the model library: the policy templates and the benchmark templates. seq init <template> [dir] writes one into a folder of your own, from the platform, and its card in the console downloads the same files as <template>-v<N>.tar.gz; seq init --list is the live list, and each template’s README says how to use it. A policy template deploys as your own policy (seq deploy), a benchmark registers as your own benchmark, and an adapter registers as your own adapter, named in an eval with --adapter. Each template’s versions (what each changed, what it needs, how to start from it or upgrade to it) are on its update page.

The seq CLI

commandwhat it does
seq init <template> [dir]start from a template, a policy, a benchmark or an adapter (see Official templates); seq init --list shows them all
seq serve [folder] [--port N]serve a folder’s @seq.policy from this machine until Ctrl-C, built and batched as the platform builds and batches it, a template’s weights downloaded with your key; a robot connects with sequence_ai.connect("http://<this machine>:<port>") (port 8000 unless you say)
seq weights get <template>[@vN]download one version of an official template’s weights, the latest unless you name one, with your key, into ~/.cache/sequence-ai/weights/<template>/<version> or --dir, each file checked by its sha256; files already there are kept
seq deploy [folder] [--name <name>] [--timeout S]build and deploy a policy as <name>, or register a benchmark or an adapter; ready when the command returns. --dry-run checks it and prints the request instead, with nothing built: against your sequence-ai’s contract, and with a key the platform’s own check (a policy, a benchmark or an adapter alike, refused as its deploy or registration would be), with, for a name deployed before, its last first start (how long its newest measured version took to ready, step by step, and about what this version’s check and its build machine cost; a name with no version measured yet says there is no data), and, for a policy, its price, a worker by the hour while robots use it, the robots it seats and what more add, and its warm floor a day and a month. --override replaces the version serving (a benchmark’s: the one evals run), deleted for good once this one has passed its check and serves (without it every version is kept) and takes over a name this account holds for another class; --no-wait returns once the build starts; --timeout S is how long this deploy may run, in seconds from when the platform accepts it: then the platform stops its build, whatever becomes of your terminal (--no-wait and Ctrl-C included), its machines end, what ran until then is billed, and a command still following it exits 5. Without it, it runs until it ends, or to the platform’s own limit
seq eval run <policy> --benchmark <name>score a deployed policy on a registered benchmark, its latest version that passed its check, or --benchmark name@vN for any version it keeps; --adapter name@vN, --tasks a,b, --trials N (or per task, TASK=N,*=M), --seeds 10-19, --policy-machines N, --benchmark-machines N, --param eval.max_seconds=N, --spend-cap X; --rerun-failed EVAL_ID runs an eval’s errored episodes again into its report, --rerun-unsuccessful EVAL_ID runs the ones it did not succeed on as an eval of their own; prints each metric overall and per task, and the cost; every flag in Run an eval
seq eval report <eval_id>an eval’s report, with how busy each of its machines was and how long a request took between them; --wait until it finishes; --csv the eval’s CSV, a row per episode, the one the console downloads (-o PATH writes it to a file); --records DIR every episode’s record: what its policy was sent, its cameras as video, and each answer; --replays DIR every episode’s 3D replay and the scenes it is drawn in. seq eval cancel <eval_id> stops one
seq eval replay <eval_id>|FILEan eval’s episodes in 3D, played in the console’s own player on a page on your machine that only the browser its link was opened in can open: orbit, zoom, the timeline and the cameras beside it; --episode N opens that one first, --no-browser prints the link (over SSH it does). A FILE --replays saved plays offline, with the scene saved beside it
seq eval episodes <eval_id>an eval’s episodes, a running one’s too, 50 a page (--limit, --cursor): each one’s task, seed, steps, seconds on the robot’s clock, the steps it paused, how it ended, whether it succeeded and its metrics; --task T (repeatable), --outcome success|failure|error, --arm N, --csv every episode those take, as the eval’s CSV (-o PATH writes it to a file)
seq eval cancel <eval_id>stop an eval at once, a machine waiting for its card or moving included: it starts no new episode and no new machine, and nothing is billed from the cancel on; what ran is reported. One still waiting for GPUs is dropped, nothing billed
seq eval rm <eval_id> …delete ended evals for good, as the console’s Eval runs tab does: their reports, episodes and recordings; one still queued or running is refused (seq eval cancel it first). A key, or you signed in (seq login)
seq eval status <eval_id>where an eval is (waiting for GPUs, running or ended) with episodes done of the total and every metric so far; --watch until it ends
seq eval logs <eval_id>what an eval’s machines printed: the benchmark machines’ output and the policy machines’ lines; --side, --arm, --machine, --before (the lines before a line’s number or a time, as its last line names it), --follow, --limit N the lines to start with (500 unless given, at most 2,000); how long each line is kept: How long logs are kept
seq eval ls <policy>a deployed policy’s evals over time; seq eval ls --benchmark B lists every eval on that benchmark instead, across your policies: when, policy and version, benchmark version, adapter, episodes, cost, the success rate (a policy named: its alone; --since); seq eval ls --adapter A the evals that ran your adapter A, and A@vN those that ran that version (with a policy or --benchmark named, theirs alone; --status STATE: those in one state, pending, queued, running, completed, failed or canceled)
seq adapter lsyour adapters: latest version, versions, the last eval that ran each and its pairs; seq adapter versions <name> its versions, newest first (when, sha256, class, whether its parameters changed, the lines it changed against the one before, how many evals ran each) and its newest version’s pairs (<name>@vN: the lines that version changed); seq adapter source <name>[@vN] writes a version’s file back as it was registered, to edit and deploy again (-o PATH); seq adapter check <file or name@vN> reads its two methods and its pairs here, without an eval or a GPU, and exits non-zero when it declares no pairs; seq adapter rm <name> deletes every version for good (refused while an eval that runs it waits or runs); what an adapter is: Adapters
seq benchmark lsyour benchmarks, newest first: version, status, the template version each comes from, card, the most worlds a machine of it builds, latest eval; 50 a page (--limit, --cursor)
seq benchmark versions <name>its versions, newest first, each with its build: its state, how long it took, the step a failed or canceled one stopped in and, for one a newer registration replaced, the version that replaced it; and the one evals run: the latest once it passed its check, else the latest that did. Every earlier version that passed is kept until you delete it
seq benchmark source <name>the code a version runs, as it was registered, into a new folder: the one new evals run, or <name>@vN; -o PATH names the folder (default ./<name>-v<N>)
seq benchmark logs <name>its eval runs’ lines, as a policy’s logs are its machines’: the newest five runs merged by time, each line under the policy and version it ran, or one run (--worker and its eval id, or the start of it), --since every line back to a time, --before each run’s lines before a time or a line’s number; --build a version’s build and check log instead, the check’s own output included (<name>@vN --build: that version’s)
seq port export | check-model | scaffold | compare | convertport a classic-MuJoCo benchmark to MuJoCo Warp, or a SAPIEN one to SAPIEN’s GPU PhysX, and compare the two versions on the same episodes (On the CPU, or on a GPU)
seq benchmark upgrade <name> [--to <template>@vN] [--dry-run] [--no-wait] [--timeout S]move a benchmark registered from an official template to the template’s current version, or with --to <template>@vN to any published version of its template (a CPU version moves to that version’s CPU version): registered again as its next version, what you changed kept; until it passes its check, evals run its latest version that passed its check; --timeout S is how long this upgrade may run, in seconds from when the platform accepts it: then the platform stops its build, whatever becomes of your terminal (--no-wait and Ctrl-C included), its machines end, what ran until then is billed, and a command still following it exits 5. Without it, it runs until it ends, or to the platform’s own limit
seq benchmark shell <name> [-- <command>]runs one command on a machine of the benchmark’s newest version (in its image, on the card it declares, one opened for it as an eval’s benchmark machine is) and prints its output; the first command waits while the machine opens, saying what it waits on; where no machine has saved its image yet, that machine builds and saves it first, 20 to 35 minutes for a large one, billed as a build, and none opens while another is saving it; it runs as your benchmark’s code runs there, with none of your secrets, for 30 s, or up to 120 s with --timeout, billed as a check of that machine from its first second, and not at all if the machine is taken back before it answers a command; its card counts against your GPU limit, seq benchmark status says it, and it ends 10 minutes after the last command, or at --stop. With no command, or with one typed at a terminal, it opens a terminal on that machine instead, as seq policy shell does
seq benchmark status <name>a registered benchmark’s build state: building, ready or failed; once ready, its template version, whether its evals record a 3D replay, and how many tasks it has
seq benchmark tasks <name>a benchmark’s tasks, the ones an eval chooses from: each one’s description, seeds, episodes and time limit, with the template and 3D replay of that version (<name>@vN for another)
seq benchmark cancel <name>stop a benchmark’s registration in flight: its machines end at once, billed for what they ran until then, as a canceled eval is; evals run the version before it
seq benchmark rm <name>[@vN]delete a benchmark for good, which nothing can undo: what it stores goes, its name and quota place are free at once, and the evals that ran it keep their reports and recordings, the recordings billed as storage until you delete those evals (--dry-run, --force cancels the evals running on it); <name>@vN deletes that version alone, once no eval runs it; its latest, and the one evals run while the latest is not ready, cannot be
seq policy lsyour deployments: the serving version, one building beside it, the card, the weights; under each, what is pending, a newer template version to seq policy upgrade to; 50 a page (--limit, --cursor)
seq policy status <name>a deployment’s state: its build (building, ready or failed); its fleet on one line, the workers it has and the GPUs they hold, its max_gpus, how long a new robot waits for a seat when it is full, and robots per worker: the robots one worker seats, what each of its copies seats added up (Batching requests); each worker (by its name, a0001) with its copies, the robots it seats, the robots on it (sessions) and how long it has served; which robots list it, the queue, what it costs an hour, and each worker’s GPU over the last day, its utilization’s median and peak and the most memory it held (--wait follows a build)
seq policy versions <name>its versions: building (or failed), serving, every earlier one kept until you delete it, each with its template version and its build, how long it took, why it was built (the files, checkpoint, card or template it changed, and for an image rebuilt, what changed in its definition: its base image, Python, packages, environment or steps), the step a failed one stopped in; then the builds of versions no longer kept. A re-deploy builds beside the serving version, which keeps serving until the new one is ready, and if the new one fails, the serving one goes on serving
seq policy source <name>the code a version runs, as it deployed it, into a new folder: the version serving, or <name>@vN; -o PATH names the folder (default ./<name>-v<N>). The code a version runs
seq policy upgrade <name> [--to <template>@vN] [--dry-run] [--no-wait] [--timeout S]move a deployment made from an official template to the template’s current version (refused, saying why, when the platform cannot deploy it), or with --to <template>@vN to any published version of its template: a new version built beside the one serving, what you changed and its scaling kept; says what changes, what stays and, when it changes, one worker’s price an hour before and after (--dry-run says it and deploys nothing; --no-wait returns once the version is accepted; --timeout S is how long this upgrade may run, in seconds from when the platform accepts it: then the platform stops its build, whatever becomes of your terminal (--no-wait and Ctrl-C included), its machines end, what ran until then is billed, and a command still following it exits 5. Without it, it runs until it ends, or to the platform’s own limit)
seq policy rollback <name>[@vN]serve a kept earlier version again (the one before the version serving, or <name>@vN as seq policy versions lists it): it serves from that moment and nothing is rebuilt; robots on another version are disconnected, and each connects again to reach it, after a cold start when no worker of it is running
seq policy settings <name>every setting of a policy: its value, what its code says, where the value comes from, who changed it last and when, and how many of its running workers have taken a change
seq policy set <name> KEY=VALUE …change settings without a redeploy, all of them or none, each said with when it takes effect; KEY= puts one back to what the code says. The keys: max_gpus, min_workers, buffer_workers, idle_timeout (how long a worker stays up with no robot connected, 2 to 1,200 s, billed all the while); warm hours schedule.hours='Mon-Fri 08:00-18:00', schedule.min_workers, schedule.tz; an inference parameter params.NAME; plan.every_s; the chunk lengths action_chunk_valid_len, action_chunk_replan_at; max_wait_for_batch; budget.monthly_usd; alerts.webhook; models; and the machine (gpu, weights, cpu, cpu_limit, memory, memory_limit, replica_start) one of which builds a new version from the same image and code
seq policy data export <name> --out DIRdownload what a robot’s Record kept in your storage while it kept episodes there, as a LeRobot dataset, by its name in seq volume ls, capture:robot.<robot> (--format jsonl for the raw records); what a policy captured before robots had a Record is read by the policy’s name, a deleted deployment’s by capture:<name>-<id8> (What was kept before)
seq policy stop <name> / seq policy start <name>emergency stop: every worker ends now and every connect is refused; start lets robots connect again. A version still building finishes and is checked as usual, its check billed like any worker, and once it passes it is the version that serves when you start
seq policy rm <name>delete it for good, which nothing can undo, saying first what goes with it (seq policy rm <name>@vN deletes that version alone, once its workers have ended; the one serving cannot be): workers stop now, it comes off its robots’ lists, what it stores goes, its storage billing stops, the name and the quota slot are freed; the field data it captured is never deleted with it: it stays yours as a dataset, capture:<name>-<id8>, billed as storage until you delete it with seq volume rm. Refused while robots are connected or evals run on it, unless --force, which disconnects them and cancels the evals. --dry-run says it and deletes nothing (What keeping a deployment costs)
seq policy rename <name> <new>give it a new name to connect by; its versions, keys and settings stay with it. Running workers end, and robots reconnect under the new name
seq robot create <name>a new robot with an empty list, and its key, printed this once (Robots)
seq robot set <name> policies=<p1>,<p2>the robot’s whole list of policies: what you leave out comes off (policies= with no names clears it), and a robot connected to one taken off is refused when its connection next renews
seq robot set <name> policies=<p1>,teleopteleop on the list: a person can drive the robot, and it can connect to no policy at all (Teleoperation)
seq robot set <name> record=onits steps may be recorded, by you: the platform keeps none of them (record=off stops every recorder of it). record.retention_days= is refused, as nothing is kept for days (Field data)
seq robot record <name> [-o FILE]record the robot’s steps to a file here as they come, straight from the workers that serve it, until Ctrl-C or its Record is turned off: a new file, <name>-<when>.msgpack unless -o names one, that sequence_ai.read_record reads back. Its Record must be on; while the robot is not connected it waits (Field data)
seq robot listevery robot you have, offline ones too, each with its status, its list and when it was last seen, and how many your plan allows, never a key
seq robot show <name> [-o DIR]one robot, offline too, as the console’s Robots page opens it: what its worker holds of each connection, its cameras’ newest frames (-o DIR saves each as a JPEG file), its episode and step, its latest actions and plans, its link over its latest acts (the round trip’s p50 and p95, retransmits a minute and the share of uploads that took two trips), and its sequence-ai’s heartbeat, heard how long ago, and acting, waiting, stale (and why) or silent (When the arm runs out of answer)
seq robot key <name>a new key for the robot, printed this once: the old one stops at once and a robot connected with it is cut off
seq robot rm <name>delete the robot and its key: a robot connected with it is cut off at once; its next act is refused
seq gpu add | places | list | history | logs | ssh | allow | follow | follow-token | save | saved | removeGPU machines of your own, root over SSH (GPUs), near a place in the United States: --place is a US city or a latitude and longitude in the US, and one outside is refused; list is of those live, each by the place you gave, and history of those over, the one ended last first (--limit, --cursor); seq gpu places <words> lists the US cities whose name, or another name they go by, starts with the words (an airport’s code, as SFO, only typed whole), the largest first (--limit, 1 to 20, 8 unless given), each with its latitude and longitude, either of which --place takes, and a city found by another name with that name after it: (as Big Apple)
seq login [--profile <name>]sign in on this machine as you, as on the console: it prints a code and opens the console’s page to confirm it on (or prints the page, to open anywhere). A command with no $SEQUENCES_API_KEY then runs as you; keys, payments and the account itself need you signed in: a key makes no keys. --profile keeps this sign-in under a name of its own and makes it the active one, so another person’s sign-in on the same machine stays apart
seq logout [<id>] [--profile <name>]sign this machine out (of the active profile, or the one named); with an id from seq account, end that sign-in wherever it is: another machine, a lost one
seq profile list | activate <name> | currentthe profiles your sign-ins are kept under on this machine: each one, who is signed in under it at which platform, the active one starred; activate makes one the one seq signs in as from then on. $SEQUENCES_PROFILE picks one for a single process
seq key listyour keys, each by its name and last four, with what it spent and its limit, when it lapses and was last used, and how many more your plan allows, never a key
seq key add <name> --expires <period> [--limit <usd>]a new key, printed this once; it lapses after 7d, 1m, 3m, 6m, 1y or never
seq key set <key> [--expires <period>] [--limit <usd|none>]change a key’s expiry or its limit; none removes the limit
seq key revoke <key>revoke a key by its id, the first characters of it, or its last four: it opens nothing within 30 seconds, and a robot connected with it is cut off within a minute
seq policy fork <source> <new>a new policy copied from one as it serves (its code, its settings and a copy of its weights), built as a deploy is; the robots that list it, its captured data and versions stay with the first
seq policy logs <name> [--rid r-…]your machines’ lines in words, each led by the machine that wrote it, and every request of your robots the platform refused, one line each (Logs); by default the newest page of events, not a window back in time; --since a time reads every line back to it, a page at a time (--all shows every act and print on its own); --before the page before a line’s number or a time; --worker a0001 one worker’s lines alone; --rid joins one request across them with the timings your robots reported, and finds a refused request or a connect by its id; --build shows the newest build instead (<name>@vN --build: that version’s). How long each line is kept: How long logs are kept
seq policy doctor <name>checks the deployment on the platform: its state and version, its capacity, its last cold start and a running worker’s /ping. Never starts a worker and sends no act
seq policy shell <name> [-- <command>]a terminal in a container of a worker serving the deployment (what is installed, where its files are, what its card says) with no command, or with one typed at a terminal: your keys reach it as typed, Ctrl-C included, its window follows yours, a dropped connection comes back within a minute, and it ends as you leave it or as the worker ends, with its exit code; where stdin or stdout is no terminal, as in a script, a pipe or > out.txt, the command runs once and prints its output, for 30 s, or up to 120 s with --timeout, one command at a time on a worker; either runs as your policy’s code runs there, with none of your secrets; --worker a0001 picks the worker, and a deployment with no worker running has nowhere to open one (Debugging)
seq policy debug <name> [--episode ID] [--stop]a machine of its own on the version the deployment serves (its image, card, files and settings, no robot sent to it) where the policy loads as a worker loads it, plays its @seq.sample episode (or --episode ID, one its field data kept) with any breakpoint() in its code stopping in your terminal, then leaves a terminal on it; while it opens it says what it waits for; billed by its card, or its CPU and memory where it has none, from its first second, it ends 10 minutes after you leave it, at --stop, or after an hour; each seq policy debug starts the policy again and plays that episode from the start, on the machine while it is up, and a breakpoint() stops nowhere else: in the build’s check and on serving workers it does nothing
seq usagewhat your machines used and cost over this billing period (the UTC month so far): GPU card-hours per hour up to a week and per day beyond (or --by hour, --by day, or --by month over up to 400 days) with what those machines cost (GPU, CPU and memory), in UTC; --since / --until another window (a date, a time, or a span back: 7d); --group kind|deployment|gpu; --policy <name> one deployment’s rows (a benchmark’s name: its eval machines’) and, over a window that ends now, what its robots did: acts, errors, the round trip’s p50 / p95 split into inference and the rest, the on-time rate (the share of action chunks that acted within their time budget) and the stall count, and its spend (the total its Usage tab shows, with its storage and the image saves billed before saving one became free); --csv the rows alone
seq accountsigned in, who you are, your sign-ins and the account’s id (the one the console’s Account page asks for to delete it); then this month: what you have spent, what is left to spend (your credits and any card, up to your monthly limit), and whether a payment method is on the account; and your GPU cards: the limit, how many serving, evals, build checks, shells and GPUs hold now, how many are left, and the evals waiting for GPUs; and your storage against its limit
seq account setchange your name (--name), email (--email: a link goes to the old address and one to the new, and the change is made once both are opened), photo (--photo PATH, a PNG, JPEG or WebP of 2 MB at most; --photo none removes it), the time zone the console and the CLI show times in (--time-zone Asia/Tokyo, or local for each machine’s own) and the clock (--clock 12 or 24), and your storage limit (--storage-limit 500GB, 2TB or a number of GB, any size; plan puts back your plan’s), as the console’s Account page does. You signed in (seq login)
seq account deletethe console’s Account page, opened in your browser: the account is deleted there, where you confirm it, never from the terminal
seq billing top-up <USD>add credit ahead, $5 at least, spent before the month’s bill (billing is postpaid: nothing needs adding first): the payment page’s link, opened in your browser, then the wait for the credit to land (--no-wait says the link and returns); a card is typed on the payment page, never here. Every seq billing command takes you signed in (seq login), as the console’s Billing page does
seq billing creditsthe credits added, newest first: card, invoice payment, starting credit, grant, promotion code (--page, 20 a page)
seq billing redeem <code>redeem a promotion code from our team: its free credit added to your balance, once per account
seq billing planyour plan and every plan; seq billing plan team (or starter) moves you to it
seq billing invoices [<number>]the month so far and the invoices issued; with an invoice’s number, that invoice whole (--page)
seq billing detailsthe details invoices print; --change opens the page to change them
seq billing cardthe payment method your month’s bill goes to: the page to add a card or make another the default, opened in your browser; usage past the monthly credit needs one. A card is typed on that page, never here
seq modelseverything you can start from: the models the platform serves (chat, decide), each with its price, its context and the inputs it takes, and the templates seq init writes (--endpoint; seq init --list lists the templates alone)
seq gpusthe cards seq deploy --gpu can name: memory, price per hour, whether a policy and a benchmark may use it, RT cores and video encoding; and what a CPU core and a GiB of memory cost, which a worker that declares no GPU pays alone (GET /v1/pricing)
seq auditwho did what to your account: you (in the console or with seq), one of your keys, or the platform, which says why it changed something (a deployment’s max GPUs lowered to your account’s GPU limit, say); an upgrade says the template versions it moved between, “v14 → v15”; a dry run changes nothing and is not written (--limit, --before; seq --json audit for JSON)
seq storagewhat you keep on the platform: the total and, by kind (checkpoints, datasets, captured data, eval recordings), how many volumes and how much each, with about what it costs a month at the storage price, and how much of your storage limit it uses.
seq volume put <name> <dir>upload a checkpoint or dataset directory (resumable; md5-checked; run again, only the files that changed are sent); seq volume ls lists your volumes and what uses each, seq volume show <name> one of them, seq volume files <name> [<path>] every file and its size, all of them at once, seq volume get <name> [<path>] --out <dir> downloads a file, a folder or the whole volume (a large one resumes if the connection drops), seq volume rm <name> [<path>] deletes the volume for good, or one file or folder of it (a new version without it; refused while a deployment or benchmark uses the volume)
seq secret set <name> --env KEYstore or rotate a credential by name (values read from stdin, never shown back; --env repeatable); seq secret ls lists names and env-var names, seq secret rm <name> deletes one, refused while a deployment uses it; --force deletes it anyway, and those deployments’ workers stop serving

A command that reads (status, ls, logs, usage, a build) asks again twice on a new connection when its connection fails, each retry said on stderr, and then says what it read, how long it tried and what failed; one that changes something (a deploy, a stop, a delete) is sent once.

Every time the CLI prints says its zone’s name (14:05 EDT, the date in front when it is not today) in the zone and on the 12- or 24-hour clock you chose (seq account set --time-zone, --clock) when this machine is signed in, else in $TZ, else your system’s zone, on 24 hours. seq usage and a policy’s monthly budget go by the UTC month, in UTC. --json prints the platform’s own values (ISO times with their offset), for scripts.

Logs

seq policy logs <name> (seq --json policy logs <name> for the events as JSON) and the console’s Logs tab show the newest page of the lines your deployment’s machines wrote, in words, each led by the machine that wrote it, a0001 · deploy check, and the machines themselves: when each started, was ready and stopped, how long its policy took to load, the card it ran on and what an hour of it costs you, a worker’s price, the one seq policy status says, for a machine the table below bills to you. Each machine of a deployment is named in the order it started, from a0001 (after a9999 comes b0001), and keeps its name: a worker is named the same in seq policy status, the console’s Workers and its lines, and seq policy logs <name> --worker a0001 shows that worker’s lines alone. Without --since it shows the newest lines, and while older ones are kept a line at its end names the --before that reads the page before them; --before takes that line’s number or a time. --since 2h (or a time) reads every line back to then.

seq policy logs also lists every connect and ready check of your robots that the platform refused (the deployment stopped, a queue that timed out, a budget or the month’s limit at its end), each on its own line, never merged: when, why, what the robot was told and its request id, which seq policy logs <name> --rid <id> finds. A wait is not a refusal: a robot waiting for a worker to warm up, or in line for a seat, is not listed. The console’s Logs tab does not show them.

machinewhat it isbilled to you
deploy checka new version’s check: it loads the policy and answers a few acts before the version servesyes
servinga machine your robots connect toyes
evalan eval’s policy machine; each eval has its own, even when evals run the same versionas the eval

A copy is your model loaded once on its card, or across its cards (gpus_per_replica): a machine runs one on each. The lines, and each as the platform writes it (seq --json policy logs <name> --rid <id> shows a request’s lines with these fields):

the line sayswhat happenedas written
started for a robot (key arm-1) · v1 on L4 · Started on the closest GPU available to the robot.the platform started the machine: why (for a robot, the deployment’s minimum workers or warm hours, a buffer, an eval, its build’s check), for whom, its version and card, and why it runs where it doesmachine.start reason by version card region placed near
fetching the weights: 4.1 GB of 12.4 GB (8 of 21 files)the machine copies your weights to itselfcoldstart.provision_start, coldstart.heartbeat
weights ready: 21 files, 12.4 GBevery weight file is therecoldstart.provision_done object_count total_bytes
loading the policyyour class began to be built: its constructor, with what init= sayscoldstart.load_start
2 GPUs: 2 copies of the modelhow the machine runs your modelworker.layout cards slots gpus_per_replica
copy 1 of 1 readya copy answersreplica.ready slot devices replicas (its load_s: the copy’s start to ready, as the machine timed it)
loaded in 290.2 syour class’s own build time, the one load time the machines list showscoldstart.load_done load_ms
ready to serveevery copy answerscoldstart.ready
first act answered in 0.6 ms, before it servesthe machine ran one act on each copy, as a robot sends it, so your robot’s first act finds the copy warmworker.first_act replicas ms
up: cold start (waited 12 s for its card, loaded in 48 s, 1 min 5 s in all) · seats 4 robotsthe machine came up: how (a cold start, or restored from its snapshot), each part’s time and the whole, and how many robots it seatsmachine.up how card_wait_s setup_s restore_s load_s up_s seats region
serves up to 4 robots at once (2 a copy) · each act has 467 ms, what its robot leaves before its answer runs out · one act 200.0 ms (p95 230.0 ms) · seated by its build check’s timing on L4, nothing timed herehow many robots the machine serves at once, and the time each act has: what its robot leaves before its answer runs out, the steps from action_chunk_replan_at to action_chunk_valid_len at hz, or, where the policy sets max_wait_for_batch, how long each robot waits for an answer (“each robot waits up to 1700 ms for an answer to share a batch”), against one act’s time on its card. A machine on the card its version’s build check ran on seats by that check’s timing; the check’s own machine timed the sizes itself, and its line ends at the act’s time.worker.schedule outcome seats robots_per_copy buffer_ms wait_ms latency timed_on card
serves up to 1 robot at once · each act has 200 ms, what its robot leaves before its answer runs out · one act 200.0 ms (p95 230.0 ms) · warning: its robots ask too late to be batched: …a copy seats one robot although the policy lists batches of 2 or more: a batch of two, with a robot’s round trip and 50 ms to spare, does not answer within what its robots leave. A smaller action_chunk_replan_at leaves more; seq deploy says the same in a hint (Batching requests). Or its robots ask too often (“its robots ask too often to be batched”): two robots’ batches would fill more than 90% of the time between a robot’s asks, by how much the line says, and a robot that asks later in each answer can seat more. Or two robots cannot share a copy (“its robots cannot share a copy”): a batch of two answers in time, but two robots at the default round trip, run on a simulated clock, have an answer late in some of the ways their acts can fall, in what share of them the line says. An act that comes while the other robot’s batch runs waits for it, and a robot nearer its worker has more time for that wait. Where the policy sets max_wait_for_batch, the wait takes the place of what its robots leave (“a batch of 2 does not answer within the wait its policy sets for a batch”), and a longer wait seats moreworker.schedule … warning
serves one robot a copy while it times its batch sizes beside its robots: it can seat more once they are timeda machine on a card its version’s build check did not run on: it serves at once, and times the sizes the policy lists while its robots act, their acts on that copy waiting behind each size’s run. The line above follows once they are timedworker.schedule outcome=after_ready seats robots_per_copy sizes
150 acts by key arm-1 (robot c0070d8d): p50 218 ms, p95 226 ms, max 227 ms, 0 failed · read p50 9 ms · queue p50 0 ms · batch p50 0 msa robot’s acts in one run, folded into one line: how many, by which key and robot, how fast, how many failed, and the parts of an act’s time; --all shows each act on its own, as belowact.done folded by session; its machine’s own sum, act.summary count errors p50_ms p95_ms max_ms
act r-3f2a91c0 served in 242.1 ms (read 1.0 · frames 118.1 · queue 0.7 · batch 0.0)one act: its time in the machine, then where it went, each part only when it was measured, read reading the request, frames waiting for the observations its robot sent before it to reach its policy (a long one is an observation late on its way), queue waiting for a free copy, batch waiting for the other acts of its batch (@seq.concurrent), model load a model loaded for this act, decode decoding its inputs, where your policy reports it; and, when your policy runs in a process of its own, policy its own compute there and transfer moving its inputs and outputs to and from itact.done rid session total_ms child_infer_ms ipc_ms parse_ms frames_wait_ms queue_wait_ms batch_wait_ms model_load_ms decode_ms (session: the robot’s connect session, so each robot’s acts fold as its own run)
act r-… served in 912.0 ms (…) · slow: its run’s acts usually take 218 msan act slower than the time it had: longer than its robot leaves, the time the machine’s worker.schedule line gives each act (slow: longer than its robot leaves (467 ms)), or, where its own line or an older machine says how long one chunk plays, longer than that (slow: longer than one chunk plays (500 ms)); with neither, over 3 times the median of its run’s acts before it and at least 200 ms more (its run’s first 20 acts are not judged), as here. Listed on its own, never folded into its runact.done, judged as the log is read
act r-… served in 263.0 ms (read 1.0 · queue 0.4 · batch 58.0 · outside 131.0 · spare 12.5)an act of a policy that batches (@seq.concurrent) also says outside, the time its robot says its acts spend outside the machine (its network and its own computer, over its latest acts), and spare, how much of the time its robot leaves was still left when its batch went to the policy; below zero, the act was already late; each only when measuredact.done outside_ms slack_ms
act r-… served in 212.4 ms (policy 120.2 · read 88.1 · queue 0.0) · connection: round trip 87.3 msan act whose machine reads its robot’s connection off its own network stack also says the round trip it measured to the robot, and, for an eval’s act, the upload: how long the act’s request took to come in, from its first bytes to its last, near nothing when it came in one flight, about one round trip when it took two, a round trip more the robot paid to send it; (to a proxy in front of the machine) when the machine is reached through one, whose round trip that is. Only when measuredact.done upload_ms tcp_rtt_ms tcp_rttvar_ms tcp_retrans tcp_total_retrans tcp_cwnd tcp_delivery_kbps tcp_peer (tcp_peer=private: a proxy in front of the machine, or a robot on its own network)
robot aaaa1111: its answers come too late - 250 ms of its answer left as it asks, about 341 ms needed (40 waiting to be batched with other robots · 120 in the machine · 131 outside it · 50 to spare); it asks every 500 ms, its replan 400 msa robot’s answers reach it after the answer it plays has run out: what was left of that answer as it asked (its own count, or what its policy leaves), against what an answer takes (the platform’s wait to batch its act with other robots’ acts, the rest of its time in the machine, and its time outside it) with 50 ms to spare; and how often it asks against the step it asks at (action_chunk_replan_at). When it asks later than that, because each answer comes after it, asking earlier cannot help: a longer action_chunk_valid_len or less latency can. Where the policy sets max_wait_for_batch, an answer is held to that wait instead (“1700 ms it waits for an answer at most”). Said at most once a robot a minuterobot.buffer_short session left_ms left_from need_ms worker_ms wait_ms outside_ms outside_from post_ms batch interval_ms replan_ms
robot a1b2c3d4: its arm has had nothing to play for 0.4 s - the act for its next answer is still on its way · request r-1a2b3c4dthe answer the robot played ran out with no next one in hand, as its machine heard it from the robot’s heartbeat: why, the act for the next answer still on its way (late, its request id), that act raised (failed), or the robot’s loop asked for none in time (not_asked), and for how long so far. A stretch shorter than a heartbeat (0.4 s) has no line of its own; seq robot show counts every one (When the arm runs out of answer)robot.stale session reason for_ms
robot a1b2c3d4: its arm plays again after 1.3 s with nothing to play - its next answer came late · request r-1a2b3c4dthat stretch ended: how long the arm went without an answer, and why; with any shorter one that ended since, how many there were and their time in all (“2 stretches with nothing to play, 0.7 s in all”)robot.resumed session reason stale_ms stretches
act r-… failed after 12.0 ms (the robot’s error says why)the act failed; the robot’s error says whyact.fail
error in an act cut short: its copy of the policy, or its worker, stopped: …the copy answering an act died under it, or its machine failed; sequence-ai sends the act again in a new episodeworker.error context=act.unavailable
act r-… turned away: still loadingan act came while no copy was up: before the machine was ready, or while its only copy started again after it stoppedact.warming
copy 2 stopped: out of GPU memorya copy died, and whyreplica.died slot reason
episode 9f86d081… ended: its copy stopped (out of GPU memory); its next act starts a new episodethe platform ended an episode, not its robot: the copy holding it stopped, or it sent no act for its idle time while its place was wanted; sequence-ai starts a new oneepisode.lost episode cause
stopped (no robot connected to it for 60 s) · billed up to 14:32:47 (3 min 34 s from when it got its GPU)the platform ended the machine, and why (for idleness, the idle timeout it waited out); its bill ends at that time, this line’s own, and how long it ran from when its bill began: when it got its GPU, or, with no GPU, when it started. A version’s first machine also ran its build’s check, which the time includes (“2 min 35 s of it its build’s check”); a machine that ran less than the minimum says the minimum it was billed and how long it ran (“1 min, the minimum: it ran 30 s”); “not billed”: it never got a card, or the platform ended it for a reason of its own (a second start for the same place, or an eval’s machine given no work)machine.stopped reason cause billed billed_s check_s min_s since idle_s
robot connected (session c0070d8d, v1) · request r-9e1c04aa · the nearest worker with room in its region, about 420 km from it · key arm-1a robot connected to the deployment: why it was seated on its worker and how far that worker runs from it, and the key it connected withconnect.ok rid session version region why km
robot disconnected (session c0070d8d, it closed its session) · key arm-1a robot’s session ended, and why: it closed it, its lease ran out, its worker stopped, it moved to another worker, or its key was revokedconnect.release session why
connect refused (stopped, 409): deployment ‘my_policy_user’ is stopped; start it again · request r-5a5a5a5a · session c0070d8dthe platform refused a robot’s connect: why and its status, what the robot was told, the request’s id. One line for each refusalconnect.refused rid status code reason session detail hint
ready poll refused (insufficient credit, 402): …the platform refused a robot’s ready checkready.refused, the same fields

A line your policy prints itself is shown as it printed it.

How long logs are kept

Every plan keeps each kind of log for the time below, then deletes it; a Custom plan can agree to keep them longer. Deleting your account deletes every log and every day’s totals at once, and every eval’s recordings within minutes after; all of it within 30 days at the most, as the Terms say.

whatkept
Builds: each build of a version, its steps and what changedAs long as the version is kept, older versions kept for rolling back included; deleted with the version or its deployment. A failed build a newer deploy replaced: the newest 3, each 7 days at most
A worker’s starts and stops, its errors, warnings and tracebacks, and what your code prints while it loads30 days
Each act7 days; the line that sums up a robot’s run (its acts, their times and errors), 30 days
What your code prints as it acts7 days, at most 10 MB a worker a day, what it prints while it loads included: past that, the rest of the day’s lines are cut and one line says so
What an eval’s benchmark machines write, their errors and tracebacks included7 days
A GPU’s log: what happened to it, and what its --run command printed90 days after it ends
Requests of your robots the platform refused: the deployment stopped, a queue that timed out, no credit left14 days; how many a day, 90 days
Each request’s latency and cost14 days; each day’s totals, which Usage reads, 90 days
Each run’s on-time rate and stalls30 days; each day’s totals, 1 year
An eval’s records and 3D replaysAs long as the eval; deleted with it, its report too. seq volume rm eval:<id> deletes them alone and keeps its report
Usage records and invoicesFor the long term, as accounting requires: they are your bill, not a log

Secrets (BYOK)

Store a credential once by name and refer to it from a policy by that name; the value reaches your policy only as its environment variables, when it runs, is masked in its logs, and is never shown again. A secret is one name bound to a set of environment variables.

set: values read from stdin, never argvshell
seq secret set hf         --env HF_TOKEN            # private hf:// weights (and your policy's own use)

# there is no --value flag: pipe it in, or type it at the hidden prompt
printf '%s' "$HF_TOKEN" | seq secret set hf --env HF_TOKEN

seq secret ls                                       # names + env-var NAMES + timestamps; the value is never shown

There is no command that reads a stored value back: a secret is write-only, and re-running set rotates the whole bundle. A secret you set again reaches the deployments already running with it, so read it when your code uses it (open its connection or ask for its token then), not once in its constructor, where a value read, or a connection opened with it, stays as it was. Use it from a policy by name:

use it, by name onlypython
@seq.policy(hz=15, secrets=[seq.Secret.from_name("hf")])
class MyPolicy_user(seq.Policy):
    ...

Error codes

Every response that is not 2xx carries one JSON body: detail (a sentence), code, retryable, retry_after_s, request_id, hint and details. Switch on code rather than the status, and quote request_id when you report a problem. It is also in the X-Seq-Request-Id header. An answer with a retry_after_s (a 429, a 503 worth waiting out) sends it as Retry-After too.

statuscodewhat happenedwhat to doretryPython exceptionseq exits
400invalid_requestThe request itself is wrong: a missing or mistyped field, bad params, or the wrong endpoint for the model (a chat model sent to /v1/decide).Fix the request, as the error’s hint says.noInvalidRequest2
413payload_too_largeThe request body is over the size limit.Send less: fit each camera frame on the robot to the size the policy reads, as the error’s hint says; a frame at that size is a few kB.noInvalidRequest2
401unauthenticatedNo key, or a key that is invalid, revoked or expired.Use a valid key.noAuthError3
403forbiddenThe resource is yours to see, but this credential may not do this: a robot key used for management, to read the account beyond the policies on its list, for a model they do not declare, or for a policy not on its list (key_bound, with the list as it stands in details.policies), a key bound to another deployment, or a key where you must be signed in.Use a key that is allowed.noPermissionDenied3
402insufficient_creditThis month’s usage reached your plan’s monthly limit, a Custom contract’s credit line, or, with no payment method on the account, your credits; or the key’s own credit limit is reached. The message says which.At the monthly limit, wait for the 1st or upgrade to Team on the Billing page; with no payment method, add one there; at a contract’s credit line, ask us to raise it; at the key’s own limit, raise or remove it on the Keys page (a robot key from before robots came: replace it), or use another key.noOutOfCredit6
402budget_exhaustedThe deployment’s own monthly budget is reached.Raise the monthly budget or turn it off.noOutOfCredit6
404not_foundIt does not exist, or it is not yours: another account’s deployment, volume, secret or eval reads as missing, and so do deleted deployments and retired routes.Check the name. To start from a template: seq init <template>, then seq deploy.noNotFound4
409conflictIt conflicts with the current state: the name is taken, the deployment is building, failed or stopped, the account is at its deployment limit, or an act’s episode lost its state with the replica that held it (details.reason episode_lost).Change the state first: another name, wait for the build, seq policy start, or delete a deployment. For episode_lost, start a new episode with a new episode_id; sequence-ai does it for you.noConflict5
410goneThe name existed and was retired on purpose; it will not come back. A catalogue model taken offline answers this, with the date, the reason and its replacement.Use details.replacement; hint says how.noGone4
429busyEvery replica of the worker is busy, or the key is calling faster than its rate limit.Wait retry_after_s, then retry.yesUnavailable7
503warmingThe worker is starting and will be ready shortly.Wait retry_after_s, then retry.yesUnavailable7
503unavailableTemporarily unavailable: no GPU capacity, an upstream briefly unreachable, or a worker draining.Retry later; sequence-ai reconnects on its own.yesUnavailable7
502upstream_errorThe provider behind a chat or decide model returned an error.Retry once; if it persists, report it with the request_id.yesUnavailable7
504timeoutThe request took longer than its time limit.Retry.yesUnavailable7
500policy_errorYour deployed policy’s own code raised.Read the traceback: seq policy logs <deployment>.noPolicyError1
500internalA bug on our side.Report it with the request_id.noInternalError1
424dependency_missingA secret its deployment references was deleted: its connects are refused and its workers stop serving, a running robot’s next act included.Recreate the secret, or redeploy without it.noInternalError1

Errors in Python

In Python each code above is one exception class (the Python exception column), all inheriting SequencesError: switch on .code, show .hint, quote .request_id. Unavailable carries .warming and .retry_after_s; Gone carries .replacement; a policy that raised comes back as PolicyError with .remote_traceback, or as the built-in exception itself (ValueError, …). A failed seq command prints error[<code>]: … and exits with the number in the last column, so a script can tell retry (7) from give up.

Set SEQUENCES_API_KEY in the environment, or pass api_key= to connect(). Create a key in the console; browse models in the model library.

Keys

There are two kinds of key. Your key (seq_dev_) manages your policies and reads the account; an account may hold several, say one for CI and one for your own backend. Keys, payments and the account itself take you signed in. A robot key (seq_robot_) is one robot’s, and reaches the policies on its list. A key made earlier may start seq_prod_ or seq_live_, and works as any other. A record key (seq_record_), which read one policy’s steps, opens nothing now: every request with one answers 410 record_moved_to_robot, as a recorder reads a robot’s steps with your key or the robot’s own (Your own recorder).

keymade onwhat it may doexpiry and limit
Key
seq_dev_…
(seq_prod_… or seq_live_… made earlier)
the console’s Keys page, or seq key add signed in (seq login)everything of your policies: deploy to and manage them, read the account (its balance, usage and limits), run evals and benchmarks, call any model. Topping up, invoices, keys and the account itself take you signed in (seq login).chosen when it is made; changed from its row on the Keys page
Robot key
seq_robot_…
(seq_live_… made until 18 October 2026)
with its robot: the console’s Robots page, or seq robot create <name>connect to and act the policies on its robot’s list, call on /v1/chat and /v1/decide the models they declare, and read its own robot’s steps while its Record is on (Your own recorder), nothing else. Any other model is refused 403 with the list it may call; a policy not on its list and managing anything are refused too. Of its account it sees the policies on its list alone: seq usage --policy with one’s name shows what that policy’s machines used and cost, per UTC day, and seq policy status with its name how it runs (its state, its workers and the robots on them, whether it is stopped). Listing policies (seq policy ls), scaling, starting or stopping one, any other policy and the account’s balance, limits, volumes and evals need a key; its bills, you signed in.none: it lasts until it is replaced or its robot is deleted. A key made before robots came keeps the expiry it had until it is replaced

A robot key is made with its robot, from the console or the command line: seq robot create <name> prints it this once, for a company’s own provisioning to write onto each new robot. seq robot list lists every robot you have, offline ones too, each with its list and its connections now, never the key itself. seq robot key <name> makes a new key and stops the old one, and seq robot rm <name> deletes the robot and its key: either way a robot connected with the old key is cut off at once (Robots).

robotsshell
seq robot create arm_1_user                  # its key, printed this once
seq robot set arm_1_user policies=pick_user  # what it may connect to
seq robot list                               # offline ones too
seq robot key arm_1_user                     # the old key stops now
seq robot rm arm_1_user                      # cut off now

A policy declares the models it calls while it runs with models=; seq deploy refuses a name the catalogue does not have. There is nothing else to set up: each time a robot connects, and while it keeps its lease, the platform hands the policy’s worker a short-lived credential for exactly those models as SEQUENCES_API_KEY, so the policy’s own chat() and decide() calls work and no key is stored on the worker. The calls are billed to your account under the key the robot connected with: when several robots share one worker, the one that connected or renewed last. Ten minutes after the last robot’s last connect or renewal, the credential lapses; a call then is refused, and the robot that connects next gets a fresh one. A SEQUENCES_API_KEY you give the policy yourself, as a secret, is used instead; set again, it reaches the workers started after, not those already running. A policy’s plan calls models the same way.

A deployed policy reaches the internet: any public address (your own storage, a database, an API, a model service of your own, a download at run time) over TCP or UDP. Every address not on the public internet is closed to it, the platform’s own among them. Its chat() and decide() calls, and the model catalogue they look a name up in, go through its worker to the platform.

A key has an expiry: 7 days, 1 month, 3 months, 6 months, 1 year or none, counted from when it is made on your own clock (Account → Preferences). It may also carry a credit limit: what it may spend in all, which never resets. Both are chosen when the key is made and can be changed on a live key from its row on the console’s Keys page, which also shows what each key has spent so far. A robot key has neither; one made before robots came keeps the expiry it had until it is replaced, and its robot’s Settings tab shows it.

A key’s limit counts its model calls, the evals it starts, the workers its connects start, and the build checks of the deploys, upgrades and benchmark registrations it makes. A worker’s GPU, CPU and memory count toward the key whose connect started it, so a robot that connects to a worker another key started adds nothing to its own key’s spend. The calls a policy makes while it runs count toward the key its robot connected with (the latest, when several robots share the worker). At its limit a key’s calls are refused with 402 insufficient_credit, saying how much of the limit is used; a connect that would start a worker, an eval, a deploy, an upgrade or a registration is refused before it starts, while a robot already on a worker keeps its place. Nothing resets the limit: raise or remove it to go on. The account’s monthly limit still applies to every key: at it (or, with no payment method on the account, once its credits are used up) the same are refused with 402 insufficient_credit, and a robot already in an episode finishes that episode (at most 15 minutes, billed) and its next call is refused with the same error. An expired key answers 401 unauthenticated, a robot’s until it is replaced. An account’s key that has expired is listed no more and cannot be renewed: a new expiry for it is refused with 409 conflict, details.reason key_expired. Make a new one; what the expired key spent stays on your bill.

An account’s keys have a limit: 10 in use on Starter, 40 on Team. Its robots, a key each, have their own: 10 on Starter, 200 on Team. A Custom plan starts at Team’s and can be set for the account. The Keys page shows how many keys are in use, and the Robots page how many robots. A deleted key and an expired one do not count.

a policy that plans with a language model (everything ending in _user is yours)python
import sequence_ai, seq

@seq.policy(name="arm_policy_user", hz=15, models=["qwen3-8-27b"],
            weights=seq.Weights.template("<template>", version=1), init={"weights_dir": "{weights}"})
class ArmPolicy_user(seq.Policy):
    def __init__(self, weights_dir):
        self.model_user = ...                 # your policy, from the template's weights

    @seq.plan(every_s=2.0)
    def plan_user(self, robot):               # this robot's next step
        reply_user = sequence_ai.chat("qwen3-8-27b", [{"role": "user", "content": [
            sequence_ai.image(robot.state["seq.observations"][-1]["image_user"]),
            {"type": "text", "text": "Next step, in one sentence?"}]}],
            max_tokens=100, reasoning={"effort": "none"})
        return reply_user.content

    @seq.observe
    def update_user(self, obs, episode):      # {"image_user": the camera's frame, ...}, as the robot sends it
        episode.state["obs_user"] = obs

    @seq.infer
    def act_user(self, episode):              # the robot's newest plan; none before its first
        plans_user = episode.state.get("seq.plans")
        return self.model_user(episode.state["obs_user"], plans_user[-1]["value"] if plans_user else None)

Amounts and prices

Every amount is in US dollars: two decimals from $1 ($12.40, $1,234.50), four below ($0.0042, $0.4200), and <$0.0001 for one smaller that is not zero; a negative one puts its sign first (-$5.00). A column of amounts, such as a month’s days, says each with the decimals its smallest takes, so they line up ($6.2100 over $0.7530). An amount the database keeps to the cent (this month’s spend, and the free credit and the monthly limit used of it) is said to the cent, $0.75, in seq account and the console alike. A price is that figure an hour, said to the cent when it comes to whole cents ($0.80/h, an L4’s), else as an amount ($0.0347/h, a CPU core’s): usage is billed by the second, a policy worker’s card at least 60 seconds once it comes up and an eval’s machines, their CPU and memory too, each time they start (a build check, and a start that ends before it comes up, have no minimum), and a price is always said by the hour. A plan’s fee and its monthly credit are whole dollars ($5 a month).