# cs models (/docs/cli/models)

`cs models` shows what runs your [Tasks](/docs/cli/tasks): the models each
engine offers, the seats (the AI provider accounts) that run them, and how
they are used.

The Agents area is a preview: it may change at any time.

## Usage

```bash
cs models [list]
cs models accounts [--live] [--force]
cs models accounts pick [--engine <e>] [--model <id>]
cs models accounts history <id> [--days 7]
cs models accounts rename <id> --label <label>
cs models accounts delete <id>
cs models accounts setup-token <id>
cs models accounts add --label <label> [--codex]
cs models accounts add --opencode [--label <label>] < key
cs models accounts add --cursor [--label <label>] < key
cs models accounts add --antigravity [--label <label>] < key
cs models accounts add --antigravity --google --label <label>
cs models accounts relogin <id>
cs models stats [--range 7d|30d|90d] [--provider <engine>] [--window five_hour|weekly|fable]
                [--space <name>] [--timezone <IANA>]
cs models tokens [--range 7d|30d] [--space <name>|unknown] [--model <id>] [--timezone <IANA>]
```

Every command takes `--json`: it prints the answer as JSON instead of the
view. `accounts pick`, `accounts history`, `stats` and `tokens` have no view:
they print JSON. `cs models --help` prints this usage.

## list

`cs models` lists the models your organization may launch, by engine, with
the efforts each accepts and the defaults a
[`cs tasks create`](/docs/cli/tasks#create) without `--model` or `--effort`
gets. The list is the service's, so a model it adds shows here without a new
`cs`.

## accounts

`cs models accounts` is the quota board of your seats: one seat a line, the
hottest first, with the space each is in and its five-hour and weekly use.
`--live` polls the seats first.

```bash
cs models accounts
cs models accounts pick --model <id>        # which seat a new Task would use
cs models accounts add --label "Reid's Max"  # sign a seat of your own in, into ~
claude setup-token | cs models accounts setup-token <id>
```

`add` and `relogin` sign a seat in through your browser: for a Claude seat,
paste the code the page shows; for a Codex seat (`add --codex`), enter the
code `cs` prints, and `cs` waits up to ten minutes (exit `7` after that). A
seat you add goes into your own space. `add --opencode` adds an OpenCode seat
from one OpenCode Go API key on stdin; `add --cursor` adds a Cursor seat from
one API key on stdin; `add --antigravity` adds an Antigravity seat from one
Gemini API key on stdin, or with `--google`, through your Google sign-in.
`setup-token` reads the token from stdin, never from an argument. `delete`
forgets a seat's stored tokens and history for good.

## stats and tokens

`cs models stats` (how near the seats ran to their limits) and
`cs models tokens` (tokens used and their estimated cost, never billing)
print JSON, in days of your time zone unless `--timezone` names another;
`--space` keeps one space's seats.

## Errors

A failure prints `Error: <message>` with one of cs's
[exit codes](/docs/cli#output-and-exit-codes), and `7` when a seat's sign-in
stopped waiting. The refusals are those of
[`cs tasks`](/docs/cli/tasks#errors); `no seat <id> that you can see` means
the seat does not exist or is not yours to see: `cs models accounts` lists
them.