重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/tambo-ai/tambo --skill cli专为智能体设计的项目初始化和组件管理命令行工具。
npx tambo init --api-key=sk_... # 使用 API 密钥初始化
npx tambo add message-thread-full --yes # 添加组件
npx tambo create-app my-app --template=standard # 从模板创建新应用
CLI 会自动检测非交互环境并返回操作指引,而不是挂起等待输入:
# 在 CI 或管道环境中,此命令会返回指引(退出码 2)而不是提示输入
npx tambo init
# 错误:需要项目名称。
# 请运行以下命令之一:
# tambo init --project-name=myapp # 创建新项目
# tambo init --project-id=abc123 # 使用现有项目
当满足以下任一条件时,视为非交互环境:
process.stdin.isTTY 为 false(管道输入)process.stdout.isTTY 为 false(管道输出)CI 环境变量广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
GITHUB_ACTIONS=true可通过设置 FORCE_INTERACTIVE=1 强制启用交互模式(需要真实的 TTY)。
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 1 | 错误(网络、参数无效等) |
| 2 | 需要用户操作 - 请查看 stderr 获取具体命令 |
# 选项 1:直接提供 API 密钥(对智能体最简单)
npx tambo init --api-key=sk_...
# 选项 2:创建新项目(需要预先认证)
npx tambo init --project-name=myapp
# 选项 3:使用现有项目
npx tambo init --project-id=abc123
# 使用默认值跳过所有提示
npx tambo init --yes --project-name=myapp
npx tambo add form --yes # 跳过确认
npx tambo add form graph --yes # 添加多个组件
npx tambo add form --prefix=src/components # 自定义目录
npx tambo add form --dry-run # 预览更改
npx tambo add form --legacy-peer-deps # 解决依赖冲突
访问 ui.tambo.co 浏览和预览所有组件。
| 组件 | 描述 |
|---|---|
message-thread-full | 包含所有内容和交互的完整消息线程 |
message-thread-panel | 侧边栏或模态框中的消息线程 |
message-thread-collapsible | 可展开或折叠的消息线程 |
message | 支持 Markdown 的独立消息 |
message-input | 在对话中撰写和发送消息 |
message-suggestions | AI 生成的建议,帮助用户撰写回复 |
control-bar | 界面中的控制和操作 |
input-fields | 具有样式和验证的可复用输入字段 |
graph | 可视化基于图的数据结构 |
form | 收集用户输入并支持验证 |
map | 支持聚类和热图的交互式地图 |
canvas-space | 显示聊天消息中的渲染组件 |
thread-history | 对话线程的按时间顺序历史记录 |
thread-dropdown | 可折叠聊天线程的下拉菜单 |
thread-content | 在线程内显示消息 |
scrollable-message-container | 自动滚动到新消息的容器 |
edit-with-tambo-button | 可交互组件的内联 AI 编辑器按钮 |
elicitation-ui | 用于用户输入请求的 MCP 引导界面 |
mcp-components | MCP 提示和资源选择器按钮 |
每个组件包含:
npx tambo add message-thread-full control-bar --yes
这将添加一个完整的聊天界面,包含:
npx tambo list --yes
npx tambo create-app my-app --template=standard
npx tambo auth login --no-browser # 打印 URL 而不是打开浏览器
npx tambo auth status # 检查当前认证状态(无提示)
npx tambo full-send # 包含组件的完整设置
CLI 会自动创建/更新包含 Tambo 文档的 AGENTS.md 文件:
npx tambo add form --yes # 同时更新 AGENTS.md
生成的部分包含为非交互使用格式化的 CLI 命令。
| 标志 | 命令 | 用途 |
|---|---|---|
--yes, -y | init, add, list | 跳过所有提示 |
--api-key | init | 直接输入 API 密钥 |
--project-name | init | 创建新项目 |
--project-id | init | 使用现有项目 |
--no-browser | auth login | 输出 URL 而不是打开浏览器 |
--dry-run | add | 预览而不安装 |
--prefix | add, list | 自定义组件目录 |
每周安装量
92
代码仓库
GitHub 星标
11.1K
首次出现
2026年2月5日
安全审计
安装于
gemini-cli89
opencode89
codex88
github-copilot86
amp83
kimi-cli83
Agent-friendly CLI for project setup and component management.
npx 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
The CLI detects non-interactive environments and returns guidance instead of hanging:
# 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 project
Non-interactive when ANY of these are true:
process.stdin.isTTY is false (piped input)process.stdout.isTTY is false (piped output)CI environment variable is setGITHUB_ACTIONS=trueOverride with FORCE_INTERACTIVE=1 (requires real TTY).
| 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=myapp
npx 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
Browse and preview all components at ui.tambo.co.
| Component | Description |
|---|---|
message-thread-full | Complete message thread with all content and interactions |
message-thread-panel | Message thread in a side panel or modal context |
message-thread-collapsible | Message threads that can be expanded or collapsed |
message | Individual messages with markdown support |
message-input | Composes and sends messages in a conversation |
message-suggestions |
Each component includes:
npx tambo add message-thread-full control-bar --yes
This adds a complete chat UI with:
npx tambo list --yes
npx tambo create-app my-app --template=standard
npx 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 components
The CLI auto-creates/updates AGENTS.md with Tambo documentation:
npx tambo add form --yes # Also updates AGENTS.md
The generated section includes CLI commands formatted for non-interactive use.
| Flag | Commands | Purpose |
|---|---|---|
--yes, -y | init, add, list | Skip all prompts |
--api-key | init | Direct API key input |
--project-name | init | Create new project |
--project-id | init | Use existing project |
--no-browser |
Weekly Installs
92
Repository
GitHub Stars
11.1K
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
gemini-cli89
opencode89
codex88
github-copilot86
amp83
kimi-cli83
AI界面设计评审工具 - 全面评估UI/UX设计质量、检测AI生成痕迹与优化用户体验
58,500 周安装
Claude Code 插件钩子开发指南:事件驱动自动化脚本与工作流集成
165 周安装
Casper Design System:基于 shadcn/ui 和 Tailwind CSS v4 的 React SaaS 设计系统
161 周安装
AI搜索优化指南:AEO与GEO策略,提升内容在ChatGPT、Perplexity等AI引擎的可见性
164 周安装
Gmail自动化脚本:Python实现邮件搜索、发送与管理,支持OAuth身份验证
165 周安装
Drupal Canvas组件元数据规范:YAML配置与属性定义指南
44 周安装
TypeScript JSDoc 文档生成指南:函数、接口、类型全面记录与自动化
163 周安装
| AI-generated suggestions to help users compose responses |
control-bar | Controls and actions in the interface |
input-fields | Reusable input fields with styles and validation |
graph | Visualizes graph-based data structures |
form | Collects user input with validation support |
map | Interactive map with clustering and heatmap support |
canvas-space | Displays rendered components from chat messages |
thread-history | Chronological history of a conversation thread |
thread-dropdown | Dropdown menu for collapsible chat threads |
thread-content | Displays messages within a thread |
scrollable-message-container | Container that auto-scrolls to new messages |
edit-with-tambo-button | Inline AI editor button for interactable components |
elicitation-ui | MCP elicitation UI for user input requests |
mcp-components | MCP prompt and resource picker buttons |
| auth login |
| Output URL instead of opening |
--dry-run | add | Preview without installing |
--prefix | add, list | Custom component directory |