Skip to content

Foan CLI

The public Foan CLI lets you work with your agents, campaigns, calls and balance from a terminal. You will need Node.js 20 or newer and a Foan login with the appropriate access.

Terminal window
npm install -g foan-ai
foan --help
Terminal window
foan login
foan whoami

The first command opens your browser to sign in. The second shows the account and organisation you will use. On a machine without a browser, foan login --no-browser prints the sign-in link to open elsewhere.

Terminal window
foan agents list
foan calls list
foan wallet

Run foan <command> --help for a command’s options. Add --json when your own script needs structured output. Check the selected organisation before commands that change anything, spend credits or start calls.

Terminal window
foan logout

For unattended scripts, use an appropriately scoped API key through the FOAN_API_KEY environment variable. Keep it in your own secret store, never in a shared script or a chat message.