This guide is for deploying and self-hosting Tambo.
Looking to contribute? See CONTRIBUTING.md for local development setup.
Tambo consists of three services:
| Service | Technology | Host Port | Description |
|---|---|---|---|
| Web | Next.js | 8260 | Dashboard and user interface |
| API | NestJS | 8261 | REST API for client requests |
| PostgreSQL | PostgreSQL 17 | 5433 | Database |
- Docker and Docker Compose installed
- OpenAI API key (or compatible provider)
git clone https://github.com/tambo-ai/tambo.git
cd tambo./scripts/cloud/tambo-setup.shThis creates docker.env from docker.env.example.
Edit docker.env with your values. At minimum, you must set:
# Required
POSTGRES_PASSWORD=your-secure-password-here
API_KEY_SECRET=your-32-character-api-key-secret
PROVIDER_KEY_SECRET=your-32-character-provider-secret
NEXTAUTH_SECRET=your-nextauth-secret
FALLBACK_OPENAI_API_KEY=your-openai-api-keydocker.env.example includes placeholder values; replace them with strong secrets before starting the stack.
./scripts/cloud/tambo-start.sh./scripts/cloud/init-database.sh- Web Dashboard: http://localhost:8260
- API: http://localhost:8261
For detailed configuration, production deployment, and operations guides, see the docs site:
- Self-Hosting Overview — Architecture, auth model, and security considerations
- Quickstart — Step-by-step first deployment
- Authentication — OAuth and email login setup
- Docker Compose — Production deployment and building images
- Kubernetes — K8s manifests for all three services
- Operations — Backup, restore, upgrade, and monitoring
- Environment Variables — Full reference for all configuration options
- Scripts — All helper scripts and npm aliases
- Troubleshooting — Common issues and fixes