Installation
fetch support.
Initialize the Client
Configuration Options
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: