← Self-hosted · Docs index

06 — AI providers

Your install calls AI providers directly with your keys. No vendor proxy sits in between, and the vendor gets no usage data.

Provider .env Used by
Anthropic ANTHROPIC_API_KEY=sk-ant-… (+ AI_PROVIDER=anthropic) chat, agent steps, AI builders, ai_agent steps (Claude models)
OpenAI OPENAI_API_KEY=sk-… (+ AI_PROVIDER=openai to make it the default) same, with GPT models
OpenRouter OPENROUTER_API_KEY=sk-or-… extra ai_agent models (Gemini, Llama, DeepSeek, Grok, …)

After editing, run ./webarmctl restart. In the pipeline editor, the ai_agent model list shows only the models whose provider key is set (GET /api/pipelines/ai-models).

Choosing models

Cost control

Gateways, proxies, private endpoints