Configuration
Configuration File
All settings live in a single YAML file:
Windows: %USERPROFILE%\.clausi\config.yml
macOS/Linux: ~/.clausi/config.yml
Configuration Structure
Typical structure:
openai_key: "sk-..."
report:
company_name: "ACME Corp"
company_logo: "C:/assets/logo.png"
template: "default" # default | detailed | executive
regulations:
default: EU-AIA # default selection for scansConfiguration Commands
| Command | Purpose |
|---|---|
clausi config show | Display current configuration |
clausi config set [...] | Update one or more fields |
clausi config edit | Open the YAML in $EDITOR / Notepad |
clausi config path | Print the config file location |
Environment Variables
| Variable | Purpose |
|---|---|
ANTHROPIC_API_KEY | NEW v1.0.0: API key for Claude (Anthropic) - recommended |
OPENAI_API_KEY | API key for OpenAI GPT models |
CLAUSI_OUTPUT_DIR | Overrides report.output_dir |
CLAUSI_TUNNEL_BASE | NEW v1.0.0: Overrides the API base URL (useful for tunnel connections or local dev) |
Precedence: CLI flag → environment variable → config file → default.
Tip: Using Claude (Recommended)
Claude 3.5 Sonnet is faster, cheaper, and better for compliance analysis than GPT-4. To use Claude:
export ANTHROPIC_API_KEY=sk-ant-your-key-hereGet your key from: https://console.anthropic.com