loki init
Scaffold a .loki/ workspace in the current directory.
Usage
bash
loki init [--url http://localhost:8000]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
| --url, -u | string | http://localhost:8000 | Default target URL written to .loki/config.yaml. |
Generated files
.loki/config.yaml— Target URL, chaos persona, API Chaos fault rates, and AI provider configuration..loki/rules.md— Natural-language business rules and assertions evaluated after each chaos run..loki/knowledge.json— Detected repository stack fingerprint (languages,frameworks_and_tools,detected_files).
.loki/config.yaml
target:default_url: http://localhost:8000timeout_seconds: 10headless: truechaos:default_persona: rage-clickerclick_burst_count: 5api_chaos:enabled: truefault_rate: 0.3auth_chaos: trueauth_fault_rate: 0.4ai:provider: geminimodel: gemini-flash-latest# Optional connection overrides:# api_base: http://localhost:11434/v1# api_key_env: MY_PROVIDER_KEY# api_key: AIza...
