Synopsis
The command-line interface (CLI) manages workspaces, fleets, access, secrets, and memory.<COMMAND> comes from the tables below. Run any command with --help to see its accepted values.
Identifier placeholders come from the matching create or list command. You choose name, path, provider, message, and query values.
Example with output
Options
Global options
<API_URL> is the API base URL for your deployment.
Login options
Write these afterlogin. Only agentsfleet login reads them.
Browser on this computer
-
Start sign-in from an interactive terminal on the same computer as your browser.
- Compare the check code in your browser with the code in your terminal.
- Choose Authorize only if you started the sign-in and both codes match.
login_url on this computer.
If the browser cannot reach your terminal, cancel while waiting and restart with --no-open.
Start a new sign-in if the request expires.
Browser on another device
Use manual code entry for a remote terminal, such as a Secure Shell (SSH) session, or a browser on another device.-
Start manual sign-in in your interactive terminal.
-
Open the printed
login_urlin your browser. - Choose Authorize only if you started this sign-in.
- Enter the browser’s six-digit verification code in the terminal that started sign-in.
--no-input.
Account and diagnosis
Workspaces and access
Chat
agentsfleet chat creates, resumes, and reviews a private draft. It is the only way to create a fleet or a Library entry from the terminal. Only the person who starts a draft can read it.
<MODEL_REF> is the ref of an authoring model from GET /v1/workspaces/{workspace_id}/models?purpose=authoring. <SETUP_REVISION> is the fleet’s setup_revision field from agentsfleet --json fleet show <FLEET_ID>.
In an interactive chat, ordinary text is a message. These actions start with /:
Save, publish, and apply each use only the setup you last reviewed. A message after a review needs a new review first.
Outside a terminal, add
--no-input and name every action as a flag. This pair reviews a Definition, then saves it with the digest the review printed:
One invocation takes one source and at most one of
--save, --apply, and --publish. A digest that does not match the current review is refused with exit code 4.
A Save that leaves the fleet installing prints each waiting check and exits with code 1. A Save, Apply, or publish whose reply was lost prints the --operation-id and --candidate-id values to retry with.
List, rename, and delete setup chats
agentsfleet chat list reads one page per run, most recently updated first. It prints TITLE, CHAT, STATUS, VERSIONS, and UPDATED.
STATUS reads In progress, Setup ready, Saving fleet, Fleet saved, or Chat closed. VERSIONS lists the recorded Proposed, Saved, and Published versions, such as Proposed v3 · Saved v2.
To read the next page, run the same command with --cursor <TOKEN>. <TOKEN> is the value the previous page printed. A page with no rows reads No setup chats match this list.
With
--json, the command prints the server’s page as returned, with items and next_cursor.
agentsfleet chat rename <DRAFT_ID> <TITLE> sets a new title. <TITLE> is trimmed and must hold 1 to 100 characters, with no NUL character. A busy or closed chat fails with UZ-AUTHOR-002, and nothing changes.
agentsfleet chat delete <DRAFT_ID> asks Delete setup chat <DRAFT_ID>? Saved fleets keep running. [y/N] first. Pass --yes to skip the question. Without a terminal, or with --json, --yes is required.
--workspace <WORKSPACE_ID>.
Fleets
agentsfleet delete has no dry-run option. Run agentsfleet kill first, then check the fleet identifier before deletion.
agentsfleet library and agentsfleet library list answer different questions. The first lists everything this workspace can use, platform entries included. The second lists only what your account owns, which is the set agentsfleet library delete can act on.
agentsfleet library delete removes an entry permanently. Removing a platform entry, another account’s entry, or one already gone answers UZ-AUTHOR-001 and exits with code 3.
Fleets and Library entries come only from reviewed chat drafts. The file, GitHub, and template import commands, agentsfleet install, and agentsfleet fleet update were removed; agentsfleet chat replaces them.
Approvals
Saving a fleet that declares a mintable credential opens an integration grant for approval. An approved grant covers repository writes until it is revoked. Rules declared under
gates can also ask for approval during a run; a waiting gate parks that run until someone decides it.
See Approvals for the scope of each decision and how to revoke a grant.
Schedules
Every subcommand takes the fleet identifier. The four that act on one schedule take its identifier after it.
Run
agentsfleet schedule sync <FLEET_ID> <SCHEDULE_ID> when the saved schedule reports an unconfirmed registration.
A successful HTTP response can still carry a schedule whose synchronization failed; check its state and diagnostic message.
Each option is accepted by the subcommands named beside it.
A fleet holds at most 32 schedules.
agentsfleet schedule list prints SCHEDULE_ID, SCHEDULE, STATUS, NEXT RUN, MESSAGE, and AGO. SCHEDULE is the server’s description of the expression with its zone, such as At 9:00 AM (UTC).
STATUS reads Scheduled, Paused, Activation pending, or Next run unavailable. NEXT RUN is a Request for Comments (RFC) 3339 time only for a scheduled row, and — otherwise. The server computes both.
create, update, show, and sync print one line in the same terms.
--json, or when standard output is not a terminal, schedule commands print the server’s JSON as returned. The exception is delete, which prints {"deleted":true,"schedule_id":"<SCHEDULE_ID>"} after the server confirms deletion. A schedule response missing a field the client reads fails with SCHEDULE_RESPONSE_INVALID and exit code 3.
Secrets and memory
agentsfleet secret delete has no dry-run option. The deleted secret value cannot be recovered.
Model catalogue
The table prints
MODEL, NAME, PROVIDER, CONTEXT, IN/MTOK, CACHED/MTOK, and OUT/MTOK.
Context windows show exact token counts. Rates show exact dollars per million
tokens, including zero and fractions of a cent.
The client reads every catalogue page before printing. Use --json for each
model’s full price schedule, context source, and verification time.
The dashboard’s model picker reads the same catalogue. Model rates apply when
you use platform credentials. Your provider bills model usage when you supply
your own credentials.
If the catalogue is empty, ask an administrator to add models. During secret
creation, an empty or unavailable catalogue skips the client’s provider check.
The server still validates the credential.
Tenant settings
Billing includes paid failed setup attempts. The setup column shows these costs, with a work identifier for each setup attempt.
--limit <COUNT> reads 1 to 100 charge records per page, with a default of 10. Any value that is not a whole number in that range is refused with exit code 4. Use the returned next_cursor as <TOKEN> in --cursor <TOKEN> to read the next page.
Charges for the same fleet event group within each page. Every returned charge contributes to the displayed totals, including a repeated charge and a category the client cannot label. Totals add exact nanodollar amounts, so no charge is rounded away.
Errors
Login reports network and API sign-in failures with exit code
1.
A rejected invocation is answered before any request is sent. The form is always the same: what is wrong, then the command that puts it right. What is wrong may be an absent argument, a value that failed validation, or an unrecognized command.
--json the same rejection is a parseable envelope on standard error, carrying a stable code you can switch on:
MISSING_ARGUMENT, MISSING_OPTION_VALUE, MISSING_REQUIRED_OPTION, UNKNOWN_COMMAND, UNKNOWN_OPTION, INVALID_ARGUMENT, and EXCESS_ARGUMENTS.
API failures include a stable error code and request identifier when the server supplies them. Use both values when reporting a problem.
A server failure is reported with the message the server wrote for a reader, not with its internal detail text. A Save refused after a setup change reads This setup changed. Review it before saving. in place of the server’s detail text.
The error registry lists the message each code carries.