The CometAPI CLI is in beta. Command names and options may change while the interface stabilizes.
Features
- Chat with models using streaming output or an interactive REPL
- Browse model catalog metadata, including provider, modality, endpoint, capability, context, and pricing fields
- Inspect one model with
cometapi model info <id> - Send one request through Chat Completions, Responses, Anthropic Messages, or Gemini Generate Content formats with
cometapi run - Check balance, account profile, usage statistics, API keys, logs, and async task history
- Output table, JSON, YAML, CSV, or Markdown data
- Store local configuration in
~/.config/cometapi/config.toml
Prerequisites
- Python 3.10 or later
- A CometAPI API key
Install the CLI
Install the package from PyPI:Start using the CLI
1
Configure credentials
Run the setup wizard:You can also configure the API key with an environment variable:The optional
COMETAPI_ACCESS_TOKEN value is only needed for account, stats, tokens, logs, and tasks commands.2
Chat with a model
Send one chat message:Run
cometapi chat without a message to start the chat REPL.3
Browse models
Search the public model catalog:Filter by catalog metadata:
4
Inspect one model
Show detail metadata for one model:Output the raw detail payload:
5
Run a multi-protocol request
Send a one-off request through the default chat endpoint:Select another endpoint format when your request body follows a different provider schema:
Get command help
Use-h on the root command or any subcommand to inspect the options for the installed version: