Loading...
Loading...
Tambo CLI reference for project setup and component installation. Agent-friendly with non-interactive mode and exit codes. Use when running tambo init, tambo add, npx tambo commands, or browsing the component library. For guided project creation with tech recommendations, use start-from-scratch skill. For adding Tambo to existing projects, use add-to-existing-project skill.
npx skill4agent add tambo-ai/tambo clinpx tambo init --api-key=sk_... # Initialize with API key
npx tambo add message-thread-full --yes # Add a component
npx tambo create-app my-app --template=standard # New app from template# In CI or piped environments, this returns guidance (exit 2) instead of prompting
npx tambo init
# Error: Project name required.
# Run one of:
# tambo init --project-name=myapp # Create new project
# tambo init --project-id=abc123 # Use existing projectprocess.stdin.isTTYprocess.stdout.isTTYCIGITHUB_ACTIONS=trueFORCE_INTERACTIVE=1| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (network, invalid args, etc.) |
| 2 | User action required - check stderr for exact command |
# Option 1: Direct API key (simplest for agents)
npx tambo init --api-key=sk_...
# Option 2: Create new project (requires prior auth)
npx tambo init --project-name=myapp
# Option 3: Use existing project
npx tambo init --project-id=abc123
# Skip all prompts with defaults
npx tambo init --yes --project-name=myappnpx tambo add form --yes # Skip confirmation
npx tambo add form graph --yes # Multiple components
npx tambo add form --prefix=src/components # Custom directory
npx tambo add form --dry-run # Preview changes
npx tambo add form --legacy-peer-deps # For dependency conflicts| Component | Description |
|---|---|
| Complete message thread with all content and interactions |
| Message thread in a side panel or modal context |
| Message threads that can be expanded or collapsed |
| Individual messages with markdown support |
| Composes and sends messages in a conversation |
| AI-generated suggestions to help users compose responses |
| Controls and actions in the interface |
| Reusable input fields with styles and validation |
| Visualizes graph-based data structures |
| Collects user input with validation support |
| Interactive map with clustering and heatmap support |
| Displays rendered components from chat messages |
| Chronological history of a conversation thread |
| Dropdown menu for collapsible chat threads |
| Displays messages within a thread |
| Container that auto-scrolls to new messages |
| Inline AI editor button for interactable components |
| MCP elicitation UI for user input requests |
| MCP prompt and resource picker buttons |
npx tambo add message-thread-full control-bar --yesnpx tambo list --yesnpx tambo create-app my-app --template=standardnpx tambo auth login --no-browser # Prints URL instead of opening browser
npx tambo auth status # Check current auth (no prompts)npx tambo full-send # Complete setup with componentsAGENTS.mdnpx tambo add form --yes # Also updates AGENTS.md| Flag | Commands | Purpose |
|---|---|---|
| init, add, list | Skip all prompts |
| init | Direct API key input |
| init | Create new project |
| init | Use existing project |
| auth login | Output URL instead of opening |
| add | Preview without installing |
| add, list | Custom component directory |