Skip to main content

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.

All API keys and secrets used by OpenGauss live in a single file: ~/.gauss/.env. This keeps credentials out of your config file and out of version control. The file is created automatically during gauss setup and is stored with owner-only permissions (0600) so other users on the same machine cannot read it.

Setting values

2
gauss setup
3
The wizard walks you through selecting a provider and configuring the keys you need.
4
Or set keys directly with gauss config set
5
gauss config set OPENROUTER_API_KEY sk-or-v1-...
gauss config set TELEGRAM_BOT_TOKEN 123456:ABC-...
6
OpenGauss automatically routes any _API_KEY or _TOKEN value to .env instead of config.yaml.
7
Or edit the file directly
8
nano ~/.gauss/.env
Never commit ~/.gauss/.env to source control. The file contains your API keys. If you accidentally expose it, rotate your keys immediately from each provider’s dashboard.

Example .env file

# ~/.gauss/.env

# ── Primary provider ───────────────────────────────────────────────────────
OPENROUTER_API_KEY=sk-or-v1-...

# ── Tool services ──────────────────────────────────────────────────────────
FIRECRAWL_API_KEY=fc-...
BROWSERBASE_API_KEY=bb-...
BROWSERBASE_PROJECT_ID=proj_...
FAL_KEY=...

# ── Voice ──────────────────────────────────────────────────────────────────
VOICE_TOOLS_OPENAI_KEY=sk-...
ELEVENLABS_API_KEY=...

# ── Messaging platforms ────────────────────────────────────────────────────
TELEGRAM_BOT_TOKEN=123456:ABC-...
DISCORD_BOT_TOKEN=...
SLACK_BOT_TOKEN=xoxb-...
SLACK_APP_TOKEN=xapp-...

Variable reference

Provider keys

These keys tell OpenGauss which LLM provider to use and how to authenticate with it.
VariableDescriptionWhere to get it
OPENROUTER_API_KEYOpenRouter API key — gives access to 100+ models through one keyopenrouter.ai/keys
ANTHROPIC_API_KEYDirect Anthropic API key for Claude modelsconsole.anthropic.com
ANTHROPIC_TOKENAnthropic OAuth token (set automatically by gauss login)
GLM_API_KEYZ.AI / ZhipuAI GLM key (also accepted as ZAI_API_KEY or Z_AI_API_KEY)z.ai
ZAI_API_KEYAlias for GLM_API_KEYz.ai
Z_AI_API_KEYAlias for GLM_API_KEYz.ai
GLM_BASE_URLOverride the Z.AI base URL (advanced)
KIMI_API_KEYKimi / Moonshot AI keyplatform.kimi.ai
KIMI_BASE_URLOverride the Kimi base URL
MINIMAX_API_KEYMiniMax global endpoint keyminimax.io
MINIMAX_BASE_URLOverride the MiniMax base URL
MINIMAX_CN_API_KEYMiniMax China endpoint keyminimaxi.com
MINIMAX_CN_BASE_URLOverride the MiniMax China base URL
DEEPSEEK_API_KEYDeepSeek API key for direct accessplatform.deepseek.com
DEEPSEEK_BASE_URLCustom DeepSeek base URL
NOUS_BASE_URLNous Portal base URL override (advanced)
OPENAI_BASE_URLCustom OpenAI-compatible endpoint for local models or proxies
Using a local model or vLLM? Set OPENAI_BASE_URL to your local endpoint and configure model in config.yaml to match the model name your server expects:
OPENAI_BASE_URL=http://localhost:8000/v1
OPENAI_API_KEY=not-needed
# config.yaml
model: "meta-llama/Llama-3.1-70B-Instruct"

Tool service keys

These optional keys unlock additional tool capabilities.
VariableDescriptionUnlocksWhere to get it
FIRECRAWL_API_KEYFirecrawl web scraping and searchweb_search toolfirecrawl.dev
FIRECRAWL_API_URLOverride for self-hosted Firecrawl instance
BROWSERBASE_API_KEYBrowserbase cloud browserbrowser_navigate, browser_clickbrowserbase.com
BROWSERBASE_PROJECT_IDBrowserbase project IDbrowser_navigate, browser_clickbrowserbase.com
FAL_KEYFAL.ai image generationimage_generatefal.ai
VOICE_TOOLS_OPENAI_KEYOpenAI key for Whisper STT and OpenAI TTSvoice_transcription, OpenAI TTSplatform.openai.com/api-keys
ELEVENLABS_API_KEYElevenLabs premium TTS voicesElevenLabs TTS providerelevenlabs.io
TINKER_API_KEYTinker RL training servicerl_start_training, rl_check_statustinker-console.thinkingmachines.ai
WANDB_API_KEYWeights & Biases experiment trackingrl_get_resultswandb.ai/authorize
GITHUB_TOKENGitHub PAT for Skills Hub (higher rate limits, skill publishing)Skills Hubgithub.com/settings/tokens
GROQ_API_KEYGroq Whisper API (free tier STT)stt.provider: groqconsole.groq.com

Messaging platform tokens

These keys activate OpenGauss’s gateway mode for messaging platforms.
VariableDescriptionWhere to get it
TELEGRAM_BOT_TOKENTelegram bot token from @BotFather@BotFather on Telegram
TELEGRAM_ALLOWED_USERSComma-separated Telegram user IDs permitted to use the bot@userinfobot
DISCORD_BOT_TOKENDiscord bot token from the Developer Portaldiscord.com/developers
DISCORD_ALLOWED_USERSComma-separated Discord user IDs permitted to use the bot
SLACK_BOT_TOKENSlack bot token (xoxb-). Requires scopes: chat:write, app_mentions:read, im:history, im:write, users:readapi.slack.com/apps
SLACK_APP_TOKENSlack app-level token (xapp-) for Socket Modeapi.slack.com/apps
WHATSAPP_ENABLEDSet to true to enable the WhatsApp bridge
WHATSAPP_MODEWhatsApp bridge mode (see WhatsApp setup docs)
WHATSAPP_ALLOWED_USERSComma-separated phone numbers (with country code) allowed to use the bot
SLACK_ALLOWED_USERSComma-separated Slack user IDs permitted to use the bot
GATEWAY_ALLOW_ALL_USERSSet to true to skip the allowed-users check on messaging platforms (default: false)

Agent and behavior settings

VariableDescription
GAUSS_HOMEOverride the Gauss config directory (default: ~/.gauss). Useful for isolated environments or CI.
GAUSS_YOLO_MODESet to true to bypass dangerous command approval prompts. Equivalent to approvals.mode: off in config.
GAUSS_MAX_ITERATIONSMaximum tool-calling iterations per conversation (default: 90). Overrides agent.max_turns in config.
MESSAGING_CWDWorking directory for terminal commands executed via messaging platforms.
SUDO_PASSWORDSudo password for commands requiring root. Piped via sudo -S. Works with all terminal backends.
GAUSS_PREFILL_MESSAGES_FILEPath to a JSON file containing [{role, content}] messages injected at API-call time for few-shot priming. Never persisted to sessions.
GAUSS_EPHEMERAL_SYSTEM_PROMPTExtra system prompt text injected at API-call time. Never saved to session logs.

File security

OpenGauss protects your credentials automatically:
  • The ~/.gauss/ directory is created with 0700 permissions (owner-only access).
  • The .env file is created with 0600 permissions (owner read/write only).
  • Writes to .env are atomic — the file is written to a temporary path and renamed, preventing partial reads.
  • The file is never included in session logs or trajectories.

Build docs developers (and LLMs) love