The CometAPI CLI is the official command-line tool for CometAPI. It helps you chat with models, inspect the model catalog, send one-off requests, check balance, and browse account usage from the terminal. Use the PyPI package page as the public homepage for installation and package metadata. This documentation expands on the same commands without requiring access to the private source repository.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
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
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.Get command help
Use-h on the root command or any subcommand to inspect the options for the installed version:
Main commands
| Command | Description |
|---|---|
chat [MESSAGE] | Send a chat message or start the chat REPL |
models | List and filter model catalog metadata |
model info <id> | Inspect one model’s public metadata |
run [MODEL] | Send one request through chat, responses, anthropic, or gemini formats |
balance | Show account or API key balance |
account | Show account profile |
stats | Show usage statistics |
tokens | List and search API keys |
logs | Browse usage logs and export CSV |
tasks | Browse async task logs |
init | Run the setup wizard |
doctor | Run configuration diagnostics |
config | Manage local configuration |
repl | Start an interactive command shell |