Agents CLI
The smallestai agents command group manages the agent itself. Create new agents, list what you have, look up config, print a dashboard URL, check phone-number status, and place outbound calls. It sits alongside smallestai agent-crew (which manages crew code) and smallestai auth (which manages credentials). One binary, three concerns.
Setup
Auth resolution is the same across every smallestai subcommand.
SMALLEST_API_KEYenvironment variable. Takes precedence.~/.smallestai/credentials.json. Written bysmallestai auth login.
If neither is set, every agents command exits with an auth error before making a request.
Base URL. Set SMALLEST_BASE_URL to point at a non-production environment (https://api.dev.smallest.ai, self-hosted, etc.). Defaults to https://api.smallest.ai.
Commands
agents create: create a new agent
Creates an agent with the given name. Everything else is optional and can be set later from the dashboard, edit_and_publish, or the versioning API.
Arguments
Options
Example
Prints the created agent’s ID.
agents list: list agents in your organization
No arguments. Returns every agent the API key can see, most-recently-created first. Useful for grabbing an ID to feed the other commands.
agents get: inspect one agent's config
Prints the full agent config. Includes prompt, voice, language, model, tools, timeouts, and every other field. What you see is the active revision on the live branch, which is the exact config used on the next call. See Agent Versioning for the branch and revision model.
agents dashboard: open the agent in the console
Prints the dashboard URL for the agent. Pipe to open (macOS) or xdg-open (Linux) to jump straight there.
agents phone-status: check phone-number attachment
Shows whether the agent has a phone number assigned. Run before agents call. If phone-status says no number is attached, the outbound call fails with a missing-caller-ID error. Rent or attach a number from Deploy → Phone Numbers first.
agents call: place an outbound call
Dials --to from the agent, using either the agent’s assigned number or the one you pass via --from-product-id. The command exits as soon as the call is queued; check status with client.atoms.calls.get(id=call_id) (see gotcha below).
Options
Example
Prints the call ID on success. Track status with client.atoms.calls.get(id=<call_id>).
client.atoms.calls.get(...) takes id=<call_id> as the keyword, not conversation_id=.
End-to-end example
Create an agent, check its phone attachment, place a call.
Related
Deploy your own crew code alongside the platform agent.
The ordered guide to configuring an agent from the dashboard.
Branches, drafts, and revisions for the agent config.
Publish, restore, and diff revisions programmatically.

