Skip to content

civex ai

Configure the AI assistant

Command Description
clear Remove the AI API key from _civex/config.toml.
set-key Set the AI API key and provider in _civex/config.toml.
set-model Set the model used by the AI assistant.
status Show current AI configuration.
usage Show all-time AI token usage, broken down by provider/model.

civex ai clear

Remove the AI API key from _civex/config.toml.

Usage

civex ai clear [OPTIONS]

Options

Option Type Default Description
--yes, -y flag false Skip confirmation

civex ai set-key

Set the AI API key and provider in _civex/config.toml.

Usage

civex ai set-key [OPTIONS] API_KEY

Arguments

Argument Type Required Description
API_KEY str yes API key. For Ollama, pass any value (e.g. 'ollama') — the key is ignored locally.

Options

Option Type Default Description
--provider, -p str anthropic Provider: anthropic | groq | gemini | ollama | openai-compat
--model, -m str Model name (uses provider default if not set)
--base-url str Base URL (only needed for openai-compat provider)

civex ai set-model

Set the model used by the AI assistant.

Usage

civex ai set-model MODEL

Arguments

Argument Type Required Description
MODEL str yes Model name

civex ai status

Show current AI configuration.

Usage

civex ai status

civex ai usage

Show all-time AI token usage, broken down by provider/model.

Usage

civex ai usage