CLI: Setup
CLI Authentication Token
Our CLI uses an auth token for secure commands. You can generate this token from your web dashboard (under Security or API Access). Once you have the token:
- Run
agents-cli setup
. - Follow the prompts to paste your token.
- Optionally set a custom API base URL.
Your token is saved in ~/.agents-api/config.ini
(readable only by your user).
Example Setup Flow
BASHagents-cli setup # [Prompts for opening token creation page] # [Choose how to get your token (browser, URL, paste)] # [Paste your token] # [Choose API server option] agents-cli info # Shows your account credits and a summary of all commands.
API Server Options
During setup, you can choose between different API server options:
- Default local server (http://localhost:8080)
- Production server (https://api.levangielaboratories.com)
- Custom URL
You can always view or change these settings later with agents-cli config
.
Additional Configuration
The setup process also lets you configure HTML documentation generation prompts. When enabled, certain commands will offer to generate rich HTML reports with detailed information.
All settings are stored in ~/.agents-api/config.ini
and can be updated using the config
command.