Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,28 @@ function SelfHostingAiProviders() {
ANTHROPIC_API_KEY=<provider-key>
ANTHROPIC_AI_MODEL=claude-sonnet-4-6`}
/>
<p>
<code>ANTHROPIC_AI_BASE_URL</code> defaults to <code>https://api.anthropic.com</code> — set
it only to route through a gateway or proxy in front of the real Anthropic API.
</p>

<h2>OpenAI API</h2>
<p>
Distinct from OpenAI-compatible below: this is the native OpenAI API path (
<code>AI_PROVIDER=openai</code>), for when you have an OpenAI account key rather than a
gateway or local endpoint.
</p>
<CodeBlock
filename=".env"
code={`AI_PROVIDER=openai
OPENAI_API_KEY=<provider-key>
OPENAI_AI_BASE_URL=https://api.openai.com/v1
OPENAI_AI_MODEL=gpt-5.5`}
/>
<p>
<code>OPENAI_AI_BASE_URL</code> and <code>OPENAI_AI_MODEL</code> already default to the
values shown — set them only to override the endpoint or model.
</p>

<h2>OpenAI-compatible endpoint</h2>
<CodeBlock
Expand All @@ -79,6 +101,26 @@ OPENAI_COMPATIBLE_AI_API_KEY=
OPENAI_COMPATIBLE_AI_MODEL=llama3.1`}
/>

<h2>Ollama (dedicated provider)</h2>
<p>
<code>AI_PROVIDER=ollama</code> is a separate provider id from routing Ollama through{" "}
<code>openai-compatible</code> above — use whichever matches how you want
fallback/dual-review chains to identify it. Defaults to a local Ollama at{" "}
<code>http://localhost:11434/v1</code> with no API key.
</p>
<CodeBlock
filename=".env"
code={`AI_PROVIDER=ollama
OLLAMA_AI_BASE_URL=http://ollama:11434/v1
OLLAMA_AI_API_KEY=
OLLAMA_AI_MODEL=llama3.1`}
/>
<p>
Set <code>OLLAMA_AI_BASE_URL</code> to <code>http://ollama:11434/v1</code> when using the
compose <code>ollama</code> profile; <code>OLLAMA_AI_API_KEY</code> is normally left blank
for a local, unauthenticated Ollama instance.
</p>

<h2>Fallback and dual review</h2>
<p>
A comma-list is a fallback chain by default. Use this for subscription CLIs when you want
Expand Down
Loading
Loading