AI Summaries
Anthropic API key
Use claude-haiku-4-5 via the Anthropic API.
Get an API key
Create a key at console.anthropic.com. Keys start with sk-ant-.
Setup via init wizard
bash
larkx init
? AI summaries — how do you want to generate them?
Skip (recommended — summaries cost extra tokens)
Local Claude (uses your Claude subscription — no key needed)
❯ Anthropic API keyIf ANTHROPIC_API_KEY is already set in your environment, larkx uses it automatically — no prompt. Otherwise the wizard asks you to paste your key, which is stored in .larkx/config.json (gitignored).
Setup via environment variable (alternative)
bash
# macOS / Linux
export ANTHROPIC_API_KEY=sk-ant-...
# Windows PowerShell
$env:ANTHROPIC_API_KEY="sk-ant-..."
# Then run
larkx index --aiIf
ANTHROPIC_API_KEY is set in the environment but no AI provider is configured in config.json, larkx falls back to using it automatically for backward compatibility.Model used
Summaries use claude-haiku-4-5 — Anthropic's fastest, lowest-cost model. Each summary is limited to 100 output tokens (one sentence). Files longer than 200 lines are truncated to the first 100 + last 20 lines before being sent.
Generate summaries
bash
larkx index --ailarkx confirms before starting. Progress saves every 5 files so interrupted runs pick up where they left off.