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 scans

Configuration Commands

CommandPurpose
clausi config showDisplay current configuration
clausi config set [...]Update one or more fields
clausi config editOpen the YAML in $EDITOR / Notepad
clausi config pathPrint the config file location

Environment Variables

VariablePurpose
ANTHROPIC_API_KEYNEW v1.0.0: API key for Claude (Anthropic) - recommended
OPENAI_API_KEYAPI key for OpenAI GPT models
CLAUSI_OUTPUT_DIROverrides report.output_dir
CLAUSI_TUNNEL_BASENEW 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-here

Get your key from: https://console.anthropic.com