Package managers
Install the React SDK using your preferred package manager:Packages
@tambo-ai/react
The main React SDK. Provides hooks, providers, and utilities for building AI-powered applications.- Version: 1.1.0
- Published as:
@tambo-ai/reacton npm - License: MIT
- Repository: github.com/tambo-ai/tambo
@tambo-ai/client
Framework-agnostic core client. Used internally by@tambo-ai/react but can be used standalone for other frameworks (Vue, Svelte, etc.).
- Version: 1.0.0
- Published as:
@tambo-ai/clienton npm - License: MIT
Peer dependencies
Tambo requires React 18 or 19:Tambo does not require
react-dom, making it compatible with React Native.Schema validation
Zod is required for defining component prop schemas:^3.25.76) and Zod 4 (^4) are supported. We recommend Zod 4 for new projects.
MCP features (optional)
If you use MCP features (Model Context Protocol) via@tambo-ai/react/mcp, install:
The
@modelcontextprotocol/sdk is bundled with @tambo-ai/react and does not need to be installed separately.CLI tool
The Tambo CLI is used for project initialization, component generation, and development utilities. You can run it directly withnpx (no installation required):
CLI commands
tambo init- Initialize Tambo in your projecttambo add <component>- Add components from the registrytambo list- List available componentstambo create-app <name>- Create a new Tambo apptambo update- Update existing componentstambo upgrade- Upgrade Tambo dependencies
TypeScript
Tambo is written in TypeScript and includes full type definitions. TypeScript 5.9+ is recommended. Add TypeScript to your project if you haven’t already:Environment variables
Add your Tambo API key to.env.local:
.env.local
Verification
Verify your installation by checking the package versions:Framework support
Next.js (recommended)
Tambo works out of the box with Next.js 13+ (App Router):app/layout.tsx
Vite
For Vite projects, wrap your app inmain.tsx:
src/main.tsx
React Native
Tambo is compatible with React Native since it doesn’t depend onreact-dom:
App.tsx
Troubleshooting
Module not found: @tambo-ai/react
Make sure you installed the package:Type errors with Zod schemas
Ensure you’re using Zod 3.25.76 or higher, or Zod 4:MCP features not working
If you use@tambo-ai/react/mcp, install the optional dependency:
Peer dependency warnings
If you see peer dependency warnings, install the required peer dependencies:Next steps
Quickstart
Build your first Tambo app
Provider configuration
Configure TamboProvider options
Register components
Learn about component registration
API reference
Explore hooks and APIs