LOKI LogoLOKIv1.10.0

loki init

Scaffold a .loki/ workspace in the current directory.

Usage

bash
loki init [--url http://localhost:8000]

Flags

FlagTypeDefaultDescription
--url, -ustringhttp://localhost:8000Default 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:8000
timeout_seconds: 10
headless: true
chaos:
default_persona: rage-clicker
click_burst_count: 5
api_chaos:
enabled: true
fault_rate: 0.3
auth_chaos: true
auth_fault_rate: 0.4
ai:
provider: gemini
model: gemini-flash-latest
# Optional connection overrides:
# api_base: http://localhost:11434/v1
# api_key_env: MY_PROVIDER_KEY
# api_key: AIza...