Skip to main content

Variables

THEO_BASE_URL defaults to the canonical www host. Pointing it at https://hitheo.ai (without www) causes the apex to 307-redirect to www, which some HTTP clients handle by stripping the Authorization header — first-time 401. See 401 Troubleshooting.

Where They’re Used

  • CLItheo complete, theo status, theo verify, theo skill publish all read THEO_API_KEY. theo status also probes both apex and www regardless of which one THEO_BASE_URL points at, so a misconfigured env var is surfaced as a warning.
  • MCP Server — The @hitheo/mcp server reads THEO_API_KEY on startup and injects it into every tool call. THEO_BASE_URL defaults to https://www.hitheo.ai as of @hitheo/mcp@0.2.0.
  • SDK — For programmatic use, pass the key directly:

Setting Variables

Precedence

  1. Explicit constructor parameter (SDK) or CLI flag
  2. Environment variable
  3. .env file in the current directory Explicit values always override environment variables.