OpenGauss supports a wide range of AI inference providers out of the box. You can use a single provider for everything, or route different tasks (main conversation, vision, compression) to different providers. Provider selection happens at startup based on which credentials are available, and you can switch models and providers at any time inside a running session.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/math-inc/OpenGauss/llms.txt
Use this file to discover all available pages before exploring further.
Quick start
Run the interactive setup wizard to configure your provider on first use:Supported providers
OpenRouter
OpenRouter is the recommended starting point — a single API key gives you access to 100+ models from Anthropic, Google, OpenAI, Meta, Mistral, and many others. Pricing is pay-per-token with no subscriptions.- Setup
- config.yaml
- Provider routing
- Get an API key at openrouter.ai/keys
- Add it to your
.env: - Set the model in
config.yaml:
Anthropic (direct)
Use the Anthropic API directly for Claude models without going through OpenRouter. Supports two authentication methods.- API key
- OAuth login (claude.ai subscription)
OpenAI Codex
Access OpenAI’s Codex models. Supports both API key authentication and ChatGPT subscription OAuth.- API key
- ChatGPT subscription (OAuth)
Nous Portal
Nous Research’s inference platform, with access to Hermes and other research models. Authentication uses OAuth device code flow — no API key is required.- OAuth login
- config.yaml
- Base URL override
~/.gauss/auth.json and refreshed transparently.Z.AI / GLM (Zhipu AI)
Access ZhipuAI’s GLM models through the Z.AI platform.- Setup
- Custom endpoint
Kimi / Moonshot AI
Access Moonshot AI’s Kimi models, including the Kimi Code coding-focused API.- Setup
- Endpoint variants
MiniMax
Access MiniMax models through the global or China endpoint.- Global endpoint
- China endpoint
DeepSeek
Access DeepSeek models directly through the DeepSeek API.- Setup
- Custom endpoint
Custom OpenAI-compatible endpoint
Any server that implements the OpenAI Chat Completions API can be used as a provider — local vLLM, LM Studio, Ollama, LiteLLM, or a third-party proxy.- .env setup
- config.yaml
- Auxiliary models on custom endpoint
Multi-provider auxiliary models
OpenGauss uses lightweight “auxiliary” models for side tasks that don’t need to go through your main provider. You can route each task independently:| Value | Description |
|---|---|
auto | Best available: OpenRouter → Nous Portal → main endpoint (default) |
openrouter | Force OpenRouter (requires OPENROUTER_API_KEY) |
nous | Force Nous Portal (requires gauss login) |
codex | Force OpenAI Codex OAuth |
main | Use the custom endpoint from OPENAI_BASE_URL |
Switching providers at runtime
Inside a runninggauss session you can switch the active model without restarting:
/model command shows a menu of configured providers and their available models. The selection persists for the current session; to make it permanent, save it to config.yaml:
Provider priority chain
Whenmodel.provider is set to auto (the default), OpenGauss picks the first available provider in this order:
- Active OAuth session in
~/.gauss/auth.json(Nous Portal, Anthropic, or OpenAI Codex — whichever was last logged in withgauss login) - OpenRouter (if
OPENAI_API_KEYorOPENROUTER_API_KEYis set) - API-key providers checked in registry order:
- Z.AI / GLM (if
GLM_API_KEY,ZAI_API_KEY, orZ_AI_API_KEYis set) - Kimi / Moonshot (if
KIMI_API_KEYis set) - MiniMax global (if
MINIMAX_API_KEYis set) - MiniMax China (if
MINIMAX_CN_API_KEYis set) - Anthropic (if
ANTHROPIC_API_KEYorANTHROPIC_TOKENis set) - DeepSeek (if
DEEPSEEK_API_KEYis set)
- Z.AI / GLM (if
- Fallback: OpenRouter (even without a key, so startup errors are consistent)
model.provider explicitly in config.yaml or pass --provider on the command line.