Variables
| Variable | Required | Default | Used By | Description |
|---|---|---|---|---|
THEO_API_KEY | ✅ | — | CLI, SDK, MCP | Your theo_sk_... API key |
THEO_BASE_URL | — | https://www.hitheo.ai | CLI, SDK, MCP | Override API base URL |
THEO_ALLOW_JS_CONFIG | — | unset | MCP | When 1, allows the MCP server to load theo.config.js / theo.config.ts instead of theo.config.json. Off by default for safety — JS/TS config executes arbitrary code from the working directory. |
Where They’re Used
- CLI —
theo complete,theo status,theo verify,theo skill publishall readTHEO_API_KEY.theo statusalso probes both apex andwwwregardless of which oneTHEO_BASE_URLpoints at, so a misconfigured env var is surfaced as a warning. - MCP Server — The
@hitheo/mcpserver readsTHEO_API_KEYon startup and injects it into every tool call.THEO_BASE_URLdefaults tohttps://www.hitheo.aias of@hitheo/mcp@0.2.0. - SDK — For programmatic use, pass the key directly:
Setting Variables
Precedence
- Explicit constructor parameter (SDK) or CLI flag
- Environment variable
.envfile in the current directory Explicit values always override environment variables.
