Requires Rust to be installed. The CLI is not published to crates.io; the official versioned artifacts are the Homebrew formula and the GitHub release binaries.
The CLI checks for a newer release at most once per day and prints a one-line notice on stderr when one is available. The check never changes command output, exit codes, or behavior, and it is skipped entirely in agent mode. Set COVAL_NO_UPDATE_CHECK=1 to disable it.
# Refresh the tap and upgrade a Homebrew installbrew updatebrew upgrade coval-ai/tap/coval
Authentication
Interactive Login
coval login
You will be prompted to enter your API key. Get one from Dashboard Settings.
API Key Flag
Pass your API key directly:
coval login --api-key sk_your_api_key
Passing API keys as command arguments can expose them in shell history and process lists. For CI/CD pipelines, prefer using the COVAL_API_KEY environment variable or your CI provider’s secret management instead.
Verify Authentication
coval whoami
Displays your masked API key (e.g., sk_...****) to confirm you are authenticated.
Configuration
The CLI stores configuration in a platform-specific config directory. Run coval config path to see the exact location on your system.
View Config Path
coval config path
Get a Config Value
coval config get api_keycoval config get api_urlcoval config get workspace_id
Set a Config Value
coval config set api_key sk_your_api_keycoval config set api_url https://api.coval.devcoval config set workspace_id 01HZXW6Q8V4M2R7N5K3J9T1BCD
Config File Format
api_key = "sk_..."api_url = "https://api.coval.dev"# Optional: run every command in this workspaceworkspace_id = "01HZXW6Q8V4M2R7N5K3J9T1BCD"