Skip to content

Environment variables ​

VariableDefaultDescription
XAI_API_KEYrequired for xai-apixAI credential; never logged/returned
ASK_GROK_HARNESSxai-apiExplicit xai-api or grok-cli selection; no failover
ASK_GROK_MODELgrok-4.7Exact selected-harness Grok model ID
ASK_GROK_REASONING_EFFORThighlow, medium, high, or xhigh
ASK_GROK_MAX_OUTPUT_TOKENS16384xAI API output cap to bound accidental spend
ASK_GROK_TIMEOUT_MS600000Grok API/CLI timeout
CURSOR_API_KEYoptionalCursor CLI credential alternative to agent login
ASK_CURSOR_TIMEOUT_MS600000Model-neutral Cursor Agent harness timeout
ASK_GEMINI_MODELgemini-3.1-pro-previewOverride the Gemini default model
ASK_GEMINI_FALLBACK_MODELgemini-3.8-flashOverride the Gemini quota fallback model
ASK_CODEX_MODELgpt-6-astraOverride the Codex default model
ASK_CODEX_PREFERRED_MODELgpt-6-astraLegacy review-tier escape hatch; only attempted separately when it differs from ASK_CODEX_MODEL
ASK_CODEX_FALLBACK_MODELgpt-5.6-terraOverride the Codex quota fallback model
ASK_CODEX_REASONING_EFFORTmediumDefault Codex reasoning effort; per-call reasoningEffort wins
ASK_CLAUDE_MODELopusOverride the Claude default model
ASK_CLAUDE_FALLBACK_MODELsonnetOverride Claude Code's native fallback model
ASK_OLLAMA_MODELqwen3.8:27bOverride the Ollama model (no fallback)
ASK_ANTIGRAVITY_MODELgemini-3.1-proOverride the Antigravity base model slug
ASK_ANTIGRAVITY_EFFORThighOverride Antigravity reasoning effort (low, medium, or high)
ASK_GEMINI_TIMEOUT_MS210000 (210s)Gemini process timeout
ASK_CODEX_TIMEOUT_MS800000 (800s)Codex process timeout
ASK_CLAUDE_TIMEOUT_MS600000 (600s)Claude process timeout
ASK_OLLAMA_TIMEOUT_MS600000 (600s)Ollama request timeout
ASK_ANTIGRAVITY_TIMEOUT_MS300000 (300s)Antigravity process timeout
GMCPT_TIMEOUT_MS(per-provider default)Cross-provider timeout fallback (lower precedence than ASK_*_TIMEOUT_MS)
GMCPT_LOG_LEVELwarnLog level: debug, info, warn, error
OLLAMA_HOSThttp://localhost:11434Ollama server address

Safety / behavior switches ​

VariableDefaultDescription
ASK_CODEX_LOAD_USER_CONFIGunset (isolated)By default @ask-llm/codex-mcp passes --ignore-user-config + --ignore-rules so your ~/.codex config, MCP servers, and hooks are NOT loaded. Set to 1 to load them.
ASK_GEMINI_REQUIRE_WORKSPACE_TRUSTunset (auto-trust)By default @ask-llm/gemini-mcp co-emits the workspace-trust env vars so the CWD is trusted. Set to 1 to require explicit workspace trust instead (Gemini blocks untrusted dirs).
ASK_ANTIGRAVITY_ALLOW_UNISOLATEDunset (refused)See the provider guide for the execution gate, including /brainstorm.
ASK_ANTIGRAVITY_SANDBOX1 (sandboxed)Antigravity runs agy with --sandbox by default. Set to 0 to drop the sandbox flag.

Environment values must reach the server process, not just an unrelated terminal. Restart your host after changing its server environment. Never commit literal credentials. Model defaults are also listed under Costs and fallbacks.

Released under the MIT License.