Skip to main content

Installation

Requirements: Node.js 18+ with native fetch support.

Initialize the Client

Configuration Options

Retry Behavior

The SDK automatically retries on:
  • 429 Too Many Requests — respects the Retry-After header
  • 5xx Server Errors — exponential backoff (1s, 2s, 4s, max 8s)
Client errors (400, 401, 403, 404) are not retried.

Also Available

CLI

The SDK includes a CLI for terminal usage:
See the CLI Reference for all commands.

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:
Then pick your IDE:
Add to .cursor/mcp.json in your project root:
Or run:
Restart your IDE after adding the config.