Installation
fetch support.
Initialize the Client
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | required | Your theo_sk_... API key |
baseUrl | string | https://www.hitheo.ai | API base URL (always target www — the apex redirects and some HTTP clients strip the Authorization header on 3xx) |
timeoutMs | number | 30000 | Request timeout in milliseconds |
maxRetries | number | 2 | Max retry attempts on 429/5xx errors |
Retry Behavior
The SDK automatically retries on:- 429 Too Many Requests — respects the
Retry-Afterheader - 5xx Server Errors — exponential backoff (1s, 2s, 4s, max 8s)
Also Available
CLI
The SDK includes a CLI for terminal usage:MCP Server — IDE Integration
Use Theo inside Cursor, Claude Code, Warp, Windsurf, and VS Code via MCP: First, set your API key as an environment variable:- Cursor
- Claude Code
- Warp
- Windsurf
- VS Code
- All IDEs
Add to Or run:
.cursor/mcp.json in your project root: