Config file
Location:~/.config/cometapi/config.toml
Run the setup wizard to create the config file interactively:
config subcommand:
Available settings
Credentials
The CLI uses two types of credentials:API key
Required for all commands. The API key authenticates requests to the CometAPI model endpoints. Create an API key at CometAPI Console → API Keys. Set it in one of these ways:Access token
Optional. The access token is required for account-level commands:account, stats, tokens, logs, and tasks.
Generate an access token at CometAPI Console → Personal Settings.
Set it in one of these ways:
Security
The CLI applies the following security practices:- API keys and access tokens are never logged or displayed in full. Only the last 4 characters are shown in diagnostics output.
- The config file is created with restrictive permissions (
0600) — readable only by the file owner. - Credentials should never be committed to version control. Add the config file path to your
.gitignoreif applicable.