Guide · Updated 2026-05-31
OpenRouter + Liminal
OpenRouter gives one API for many models. Liminal uses any OpenAI-compatible endpoint — here's how to wire it up.
1. Get an OpenRouter API key
Create an account at openrouter.ai and generate an API key. Add credits or enable free models as needed.
2. Install Liminal
Run the installer: `curl -fsSL https://www.vireondynamics.com/install/install.sh | bash`
The script clones liminal-ai and opens the web UI on localhost.
3. Set environment variables
In your project `.env`: AGENT_API_KEY=your_openrouter_key, AGENT_API_BASE_URL=https://openrouter.ai/api/v1, AGENT_MODEL=your chosen slug (e.g. deepseek/deepseek-v4-pro).
See https://docs.vireondynamics.com/liminal/ for the full environment reference.
4. Verify
Send a small task in the web UI or TUI. Check the harness trace for model routing and token usage.
FAQ
Common questions
Does Liminal require OpenRouter?
No — OpenAI, Anthropic, xAI, or a local Ollama endpoint work with the same OpenAI-compatible config.