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:

  1. Run agents-cli setup.
  2. Follow the prompts to paste your token.
  3. Optionally set a custom API base URL.

Your token is saved in ~/.agents-api/config.ini (readable only by your user).

Example Setup Flow

BASH
agents-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:

  1. Default local server (http://localhost:8080)
  2. Production server (https://api.levangielaboratories.com)
  3. 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.