Variables
| Variable | Required | Default | Used By | Description |
|---|---|---|---|---|
THEO_API_KEY | ✅ | — | CLI, SDK, MCP | Your theo_sk_... API key |
THEO_BASE_URL | — | https://hitheo.ai | CLI, SDK, MCP | Override API base URL |
Where They’re Used
- CLI —
theo complete,theo status,theo skill publishall readTHEO_API_KEY - MCP Server — The
@hitheo/mcpserver readsTHEO_API_KEYon startup and injects it into every tool call - SDK — The SDK reads
THEO_API_KEYwhen used via CLI; for programmatic use, pass the key directly:
Setting Variables
Precedence
- Explicit constructor parameter (SDK) or CLI flag
- Environment variable
.envfile in the current directory
