Skip to content

configure

fialr configure ai [options]

Set up the AI enrichment provider. Supports local Ollama (default) and cloud Claude API (BYOK). API keys are stored in the system keychain, not in config files.


ArgumentDescription
aiConfigure the AI enrichment provider (currently the only subaction)
OptionDescription
--showDisplay current provider and API key status
--provider NAMESet provider: ollama (local) or claude (cloud)
--key KEYSet API key for cloud provider (must start with sk-ant-)

When no flags are provided, runs in interactive mode.


ProviderTiersSetupCost
OllamaAll tiersInstall Ollama, pull modelFree (local)
Claude2, 3 (Tier 1 with two-step confirmation)API key from AnthropicPay-per-token

Tier 1 files use local AI (Ollama) by default. Cloud access for Tier 1 requires two-step confirmation (config flag + CLI flag). This is enforced in the enrichment orchestrator.


API keys are resolved in this order:

  1. ANTHROPIC_API_KEY environment variable (for CI and scripting)
  2. System keychain via keyring library
  3. Error with setup instructions

Keys set via --key are stored in the system keychain. They are never written to fialr.toml or any config file.

PlatformBackend
macOSKeychain Access (security CLI)
LinuxSecret Service API (GNOME Keyring, KDE Wallet) via keyring

On Linux, ensure a Secret Service provider is running. Most desktop environments include one. For headless/server environments, you can use the ANTHROPIC_API_KEY environment variable instead.


Terminal window
# Interactive setup
fialr configure ai
# Set up Claude with API key
fialr configure ai --provider claude --key sk-ant-...
# Switch back to local Ollama
fialr configure ai --provider ollama
# Check current configuration
fialr configure ai --show

  • Enrichment guide — provider selection and configuration walkthrough
  • enrich — run enrichment with the configured provider
  • config — general configuration management