Skip to main content
The fonoster CLI manages a workspace from your terminal: applications, numbers, webhooks, call records and more. Commands are named <topic>:<command>, such as applications:create. Run any command with --help to see its flags.
This page covers the commands developers use. Operators of a self-hosted install also use separate tools to run the platform. See the Self-hosting section.

Install

The CLI is the @fonoster/ctl package on npm. It needs Node.js 22 or later.

Log in

Create an API key in the dashboard under API keys, then link your workspace. The CLI asks for the endpoint (keep api.fonoster.ai for Fonoster Cloud), the key ID and the secret:
The CLI saves the workspace and its key in ~/.fonoster/config.json and makes it the active workspace. Every other command runs against the active workspace.

Global flags

Every command accepts this flag: The CLI always connects over TLS. To reach an install that uses its generated certificate, log in with --ca-file pointing at a copy of the install’s config/tls/ca.pem.

Workspaces

workspaces:login asks for the endpoint, key ID and secret. Pass all three as flags to skip the questions, for example in CI:

API keys

See Workspaces, members and API keys.

Applications

Applications are your Autopilot agents and streams.

Create and update flags

applications:create and applications:update take the same flags. --agent makes the application an Autopilot agent, and --url makes it a stream. The fields are described in Autopilot configuration. --assistant and --flavor were renamed to --agent and --protocol in 0.30. The CLI refuses the old names with that hint.

Evaluate an agent

applications:eval runs an agent’s test cases. It’s marked experimental. It reads an eval file, not the plain agent file: the agent’s configuration and its testCases nest under intelligence.config. See Test your agent. The command exits with a non-zero code when a bar is missed or the run has an error. With no bars set, it also does when a scenario fails. Run the test cases and also save a JSON summary:

Providers

See Providers and models and Use your own vendor keys.

Numbers

sipnet:numbers:linkTwilio signs in to Twilio with a Standard API key (recommended) or your Auth Token, which gives full access to your Twilio account. Twilio’s Restricted keys can’t link a number. The secret never goes in a flag: the command reads it from TWILIO_API_KEY_SECRET or TWILIO_AUTH_TOKEN, or asks for it without echo. Without a terminal, the command never asks: a missing value exits 1 and names the flag or variable. sipnet:numbers:linkWhatsApp takes either --phone-number-id (Fonoster turns on SIP calling in Meta, points the number at Fonoster with SDES and keeps the SIP password Meta issues) or the phone number by itself (you register the printed SIP server in WhatsApp Manager and paste the password). Neither secret goes in a flag: the command reads the token from META_ACCESS_TOKEN and the password from WHATSAPP_SIP_PASSWORD, or asks for them without echo. Without a terminal, the command never asks: a missing token exits 1 and names the variable. See Numbers and routing, Link a Twilio number and Link a WhatsApp Business number.

Trunks

See Connect a SIP trunk.

SIP agents, domains and credentials

SIP agents are softphones and desk phones. The CLI calls them agents. See SIP agents (softphones).

Calls

sipnet:calls:create flags:
See Make outbound calls.

Webhooks

--event takes call.started, call.ended, call.failed, call_record.sealed or provider.deprecated. See Webhook events.

Call records

records:list flags: records:get and records:download flags:
See Read and verify call records.

Secrets

See Secrets.

MCP

mcp:configure adds Fonoster’s MCP server to Claude Desktop’s configuration, with the active workspace’s API key. It works on macOS and Windows. See Use Fonoster from an AI client (MCP).

Help and feedback