Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

SmartAssist is configured primarily through environment variables, with per-session overrides available through CLI flags and the gateway’s config.* RPC methods (see Gateway RPC Methods).

Environment variables

VariablePurpose
ANTHROPIC_API_KEYAnthropic Claude API key
OPENAI_API_KEYOpenAI API key
GOOGLE_API_KEY / GEMINI_API_KEYGoogle Gemini API key
SMARTASSIST_PROVIDERDefault model provider (anthropic, openai, google)
SMARTASSIST_MODELDefault model to use

Model providers

See Model Providers for the full provider specification, including streaming, tool calling, and vision support per provider.

Secrets

Credentials and tokens (channel bot tokens, provider keys) can be stored using smartassist-secrets, which provides encrypted-at-rest credential management rather than relying solely on plaintext environment variables.