cometapi -h or cometapi <command> -h to inspect the exact arguments and options for the installed version.
Commands overview
Commands marked Access token require the
COMETAPI_ACCESS_TOKEN environment variable or the access_token config key. See the configuration guide for details.
Chat
Send a single message or start the multi-turn chat REPL.Models
List models from the public catalog by default. Catalog output includes model ID, provider, model type, features, endpoints, pricing, context length, and maximum completion tokens.
The catalog cache is stored at
~/.cache/cometapi/models.json.
Model info
Inspect public metadata for one model. The command resolves the model through the public catalog, then loads detail metadata for the catalog code.
Table output includes provider, model type, features, endpoints, pricing, context length, maximum completion tokens, documentation URL, and overview.
Run
Send one request through a selected endpoint format. Use--input-file for a JSON body, repeated -i key=value values for overrides, and -p/--prompt for a prompt shortcut.
Endpoint mapping:
Body merge order is
--input-file, repeated -i key=value, prompt shortcut, then positional MODEL. Inline values parse JSON when possible. Dotted keys create nested objects.
Balance
Show your CometAPI account balance or current API key billing view.Account
Show your account profile. Requires an access token.Stats
Show usage statistics. Requires an access token.Tokens
List and search API keys. Requires an access token.Logs
Browse usage logs with filters. Requires an access token.logs --request-id performs one indexed lookup against the operator log endpoint and
accepts only an exact request_id match. The CLI does not scan fallback log pages,
because the self-log endpoint does not apply request_id filtering.
Tasks
Show async task logs. Requires an access token.Doctor
Run diagnostics to verify configuration and API connectivity.Config
Manage CLI configuration stored in~/.config/cometapi/config.toml.
Init
Run the interactive setup wizard:Repl
Start a full interactive command shell:Output formats
Most data commands support--json or --format: