Docs

Deploy your own robot policy

Author a policy as one @seq.policy class, seq deploy it to a GPU or a CPU, and call it from your control loop with connect() and act(). Score it on our benchmarks.

Start

Overview

Author a policy as a decorated class, seq deploy it, and call it from your control loop. Optionally score it on any tasks you choose from our benchmarks.

Install

The platform’s commands (seq deploy, seq eval, seq gpu, seq login) and connect() by a policy’s name come with sequence-cloud, which sequence-ai brings with it on Python 3.10 or later:

installshell
export SEQUENCES_API_KEY="seq_dev_..."  # identifies your account: it owns your deployments
pip install sequence-ai

The data path in sequence-ai is open source, under the Apache-2.0 license: seq serve on the GPU, connect() on the robot and the components between them, the same code on a GPU of your own as on ours (Open source; its source on GitHub). Renting GPUs, deploying and billing are General Sequences' service.

This key is the one the CLI, your code and your robots use for your policies.

On macOS, /usr/bin/seq (a system tool that prints numbers) can come first on your PATH: if seq deploy answers invalid floating point argument, check which seq, or run the CLI as python -m seq ….

The rest of this page is each step in turn: author a policy, deploy it, run it, and benchmark it.

the whole arcpython + shell
# 1 — author: one class, decorated with the image and weights it needs (everything ending in _user is yours)
@seq.policy(hz=15, weights=seq.Weights.template("<template>", version=1),
            init={"weights_dir": "{weights}"})
class MyPolicy_user(seq.Policy):
    def __init__(self, weights_dir): self.model_user = ...
    @seq.infer
    def infer_user(self, obs, *, seed=None): return self.model_user(obs)

# 2 — deploy (shell), on the card it runs on:
#     $ seq deploy my_policy_user --name my_policy_user --gpu L4      (the folder this file is in)

# 3 — run: connect once, then act from your robot's own loop
with sequence_ai.connect(model="my_policy_user") as policy_user:
    policy_user.observe(robot_user.read())       # every input goes this way
    chunk_user = policy_user.act()               # what infer_user returned

Your account

A few read-only calls tell you where you stand before you deploy or run anything. Your account (what you have spent this month, what you have running, your limits and your GPUs) is read under your key; the models the platform serves and the price list are public and need none.

where you standpython
import sequence_ai

# your account: this month's spend, usage, limits
acct_user = sequence_ai.account()
acct_user["balance"]["period_spent_usd"]  # spent this month, billed at its end
acct_user["usage"]               # {"policies": 1}
acct_user["limits"]              # the per-account caps that are set
acct_user["gpus"]["available"]   # cards you can start now
acct_user["compute"]["cpu_cores"]  # {"used": 1.125}: cores, as memory_gib; containers says its limit too

# public: no key needed
sequence_ai.models()             # the models it serves (chat, decide, speech) and the templates
sequence_ai.models(kind="model")  # one kind: "model" or "template"
sequence_ai.gpus()               # each card's price, and CPU and memory's

# your bill, per day, deployment and resource
sequence_ai.billing("2026-10-01", "2026-10-31")
account()what it holds
balancethis month’s money, in USD (UTC months): period_spent_usd, what you have spent this month, the number the console shows; credit_usd and credit_left_usd, your monthly credit and what is left of it; 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) the console’s Left to spend; 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 (brand, last4, exp_month, exp_year), or null when it has none; free_credit, this month’s free credit: monthly_usd, used_usd, left_usd and resets_at; held_usd, what running workers and evals hold until they stop (absent while nothing is held)
planyour plan: its name, monthly_fee_usd and monthly_free_credit_usd; limit_overrides, beside it, the limits set for your account apart from its plan, each with its plan’s own value (absent when none)
usagewhat counts against your limits now: policies, your policies that have not failed
limitsthe per-account caps that are set, such as max_policies_per_user or max_gpus_per_user; a cap of null is unlimited
gpusyour GPU limit, the cards serving, evals, build checks, shells and the GPUs you added hold now (in_use: serving, eval, build, shell, gpu and their total), how many are available, and the evals waiting for cards (waiting_evals); a count that could not be read is null (unknown, never “full”)
computethe machines with no GPU you run now - your CPU policies’ workers, your CPU machines and shells and your CPU build checks - against your plan’s limit (containers: {"used", "limit"}; Starter 10 CPU machines at once, Team 80), and the CPU cores and memory they requested (cpu_cores, memory_gib: {"used"}, and a limit only where one is set for your account: no plan limits cores or memory). An eval’s own machines are not counted. A worker that would pass the limit is not started: the robot takes a slot on a worker already up or waits in line (container_limit_reached). A policy’s worker may request at most 16 cores
storagewhat you keep against your storage limit: used_bytes, limit_bytes (your own, else your plan’s) and used_share, with warn from 80% and full at it (absent when it cannot be read)

The same from the shell: seq account, seq models (the platform’s models), seq gpus and seq usage, what your machines used and cost this billing period, in UTC (--since 2026-09-01 --until 2026-10-01 another, --csv for a spreadsheet). The wire call is GET /v1/account. Creating keys and adding a payment method take you signed in, never a key: in the console (a payment method on its Billing page), or with seq key add after seq login. Credit you add ahead is spent before the month’s bill: seq billing top-up once signed in, or a promotion code from our team, once per account, redeemed on the Billing page or with seq billing redeem CODE once signed in (seq login; in Python seq.redeem_promo_code("CODE")).

Plans, credit and the monthly limit. Billing is postpaid: you use first, and each month’s usage is billed at its end, on the 1st of the next month (UTC), to the payment method on your account. Deleting your account first charges what it owes (the Invoices page’s due) to your payment method; if the charge fails, the account is kept and the page says why. Amounts under $0.50 are not charged. A Team plan ends at once, its current month not refunded. Usage is charged at the price list on every plan. Every account is on a plan. Starter is $0 a month with $5 of free credit each month, up to 3 policies, 5 GPU cards and 600 calls a minute. Team is $200 a month with the free credit its card on the pricing page says, up to 20 policies, 50 GPU cards, 2,400 calls a minute and more storage and keys; Custom is agreed per account (volume prices, a monthly limit for your fleet). The month’s credit is spent first, renews on the 1st of each month (UTC) and does not carry over. Every feature needs a card on file, added on the console’s Billing page; your free credit is still spent first, then any credits you added. Each plan has a monthly usage limit too: $200 on Starter, $2,000 on Team, your contract’s on Custom; at it, new billed work is refused until the 1st: no robot connects and no new episode starts. A robot in the middle of an episode finishes it first, for at most 15 minutes, and then stops; that usage is billed as usual. The console shows what you have spent this month. The pricing page lists each plan’s limits. Move to Team from the console’s Billing page (Upgrade to Team, billed monthly); Cancel Team there keeps it to the end of the paid month. If a renewal cannot be charged, Team stays while the charge is retried, but that month’s free credit is Starter’s $5 until the payment goes through; if every retry fails, the account moves to Starter at the end of the period. account() shows the month under balance (spendable, what you may spend now; period_spent_usd, credit_left_usd, month_left_usd), and the plan’s other limits under limits.

When your GPUs ran. seq usage prints your GPU card-hours (one card for one hour) over this billing period (the UTC month so far, the bill’s own) per hour, or per day past a week, with what those machines cost (GPU, CPU and memory: what you are billed for them) and the policies, evals, builds, build checks, weight copies and shells that ran, each with its starts. --since 7d, --since 2026-10-01 --until 2026-10-07 (at most 90 days; 400 with --by month) and --by day change the range and the columns; --group kind, deployment or gpu splits each column; --policy <name> keeps one policy’s and says what its robots did; --csv prints the rows alone. Times are UTC, as the bill’s. In Python it is seq.gpu_usage(since="7d", group="kind"); the console’s Usage tab on Billing draws the same numbers.

Data policy and billing

  • Invoices. An account that used or paid anything in a month gets that month’s invoice on the 1st of the next: its lines, the credit spent, and what is due, which is charged to the payment method on your account; less than $0.50 is not charged but carried to the next month’s invoice. The console’s billing page lists them, each printable.
  • Builds and checks. Deploying a policy version runs machines of its own, each billed by the second and each a line of its own in seq usage and on the invoice: its build (the machine that prepares its image, apart from the one its check runs on) at the pricing page’s CPU and memory rates for builds, checks, shells and an eval’s benchmark machines; and its build check (the machine that loads it and answers its sample episode before it serves, from that machine’s first second, its boot and the image built on it included) at its card’s price and those CPU and memory rates for the cores and memory it asks for. A check that fails is billed too.
  • Monthly limit. What a month’s usage may reach: $200 on Starter, $2,000 on Team, your contract’s on Custom. At it, calls that start billed work are refused with 402 insufficient_credit, saying which limit it is: this month's usage limit is reached: $200.00 of $200.00 on the Starter plan - it resets on 1 December at 00:00 UTC; Team's limit is $2,000.00. With no card on file it is Every feature needs a card on file; your free credit is still spent first - add one on the Billing page, from the first call. A robot already in an episode finishes that episode (at most 15 minutes, billed) and its next call is refused with the same error.