@@ -36,7 +36,8 @@ Set an API key for your preferred LLM provider:
3636export ANTHROPIC_API_KEY=< YOUR_ANTHROPIC_KEY>
3737```
3838
39- Or ` OPENAI_API_KEY ` , ` GOOGLE_API_KEY ` , ` HF_TOKEN ` , or a local LLM through an Ollama server.
39+ Or ` OPENAI_API_KEY ` , ` GOOGLE_API_KEY ` , ` HF_TOKEN ` , ` AI_GATEWAY_API_KEY ` ,
40+ ` MISTRAL_API_KEY ` , or a local LLM through an Ollama or llama.cpp server.
4041
4142Launch the REPL:
4243
@@ -81,13 +82,19 @@ The agent needs an LLM to interpret natural language. Set the relevant API
8182key as an environment variable, or pass ` --provider ` explicitly, or set ` /provider `
8283while on the REPL.
8384
84- | Provider | Flag | API key env |
85- | -----------| ------------------------| --------------------------------------|
86- | Anthropic | ` --provider anthropic ` | ` ANTHROPIC_API_KEY ` |
87- | OpenAI | ` --provider openai ` | ` OPENAI_API_KEY ` |
88- | Gemini | ` --provider gemini ` | ` GOOGLE_API_KEY ` or ` GEMINI_API_KEY ` |
89- | Hugging Face | ` --provider huggingface ` | ` HF_TOKEN ` |
90- | Ollama | ` --provider ollama ` | none (local) |
85+ | Provider | Flag | API key env |
86+ | -------------------| --------------------------| --------------------------------------|
87+ | Anthropic | ` --provider anthropic ` | ` ANTHROPIC_API_KEY ` |
88+ | OpenAI | ` --provider openai ` | ` OPENAI_API_KEY ` |
89+ | Gemini | ` --provider gemini ` | ` GOOGLE_API_KEY ` or ` GEMINI_API_KEY ` |
90+ | Hugging Face | ` --provider huggingface ` | ` HF_TOKEN ` |
91+ | Vercel AI Gateway | ` --provider vercel ` | ` AI_GATEWAY_API_KEY ` |
92+ | Mistral | ` --provider mistral ` | ` MISTRAL_API_KEY ` |
93+ | Ollama | ` --provider ollama ` | none (local) |
94+ | llama.cpp | ` --provider llama_cpp ` | none (local) |
95+
96+ Set ` HF_BILL_TO ` to an organization name to bill Hugging Face requests to it
97+ rather than to your personal account.
9198
9299You can set the provider explicitly with the CLI option ` --provider ` or the REPL command ` /provider ` .
93100Otherwise the agent will pick one in this order:
@@ -97,11 +104,14 @@ Otherwise the agent will pick one in this order:
97104 set.
981052 . ** Auto-detected** - the first key found in priority order
99106 (` ANTHROPIC_API_KEY ` → ` GOOGLE_API_KEY ` /` GEMINI_API_KEY ` →
100- ` OPENAI_API_KEY ` → ` HF_TOKEN ` ). With several keys on the REPL, you'll be prompted to
107+ ` OPENAI_API_KEY ` → ` HF_TOKEN ` → ` AI_GATEWAY_API_KEY ` →
108+ ` MISTRAL_API_KEY ` ). With several keys on the REPL, you'll be prompted to
101109 pick.
102- 3 . ** Local** - if no cloud key is set, the agent probes
103- ` http://localhost:11434/v1 ` (Ollama default server endpoint)
104- and uses it if there's at least one model pulled.
110+ 3 . ** Local** - if no cloud key is set, the agent probes the local
111+ servers (Ollama at ` http://localhost:11434/v1 ` , llama.cpp at
112+ ` http://localhost:8080/v1 ` ) and uses one if it has at least one model
113+ loaded. Local servers need no key and are never auto-detected from the
114+ environment, so select them with ` --provider ollama ` / ` --provider llama_cpp ` .
105115 You can change the server URL with the ` --base-url ` CLI option.
1061164 . ** No provider at all** - If the CLI option ` --no-llm ` is set
107117 it falls back to the basic REPL (slash commands only).
@@ -118,8 +128,12 @@ The CLI option `--list-models` or pressing TAB on the REPL command `/model` prin
118128The CLI option ` --effort <none|minimal|low|medium|high|xhigh> ` or the REPL command ` /effort `
119129sets the per-turn reasoning budget for thinking models.
120130It maps to each provider's native reasoning-effort knob and is ignored by non-thinking models.
121- The REPL defaults to ` low ` so turns stay snappy.
131+ Effort resolves in order: an explicit ` --effort ` flag, then the value remembered
132+ in ` .lp-agent.zon ` , then the provider's own default, then the mode default.
133+ The REPL mode default is ` low ` so turns stay snappy.
122134` --task ` defaults to ` medium ` where answer quality matters more than per-turn latency.
135+ A few providers set their own default that wins over the mode default;
136+ Mistral defaults to ` none ` because its default model rejects reasoning effort.
123137Higher effort can mean fewer tool calls per task (the model plans better),
124138so it's a real tradeoff rather than a pure slowdown.
125139Effort selection persists in ` .lp-agent.zon ` .
0 commit comments