腾讯AI编程终端助手
简介
腾讯官方AI编程助手CLI,支持自然语言驱动开发,集成Gemini/GPT/DeepSeek多模型,适合终端开发者提升编码效率
原始描述
CodeBuddy Code CLI installation, configuration and usage guide. CodeBuddy Code is Tencent's AI-powered CLI programming assistant supporting natural language driven development. - MANDATORY TRIGGERS: CodeBuddy, codebuddy, AI CLI, Tencent AI coding, @tencent-ai/codebuddy-code, terminal AI assistant - Use when: installing CodeBuddy CLI, configuring CodeBuddy, using CodeBuddy commands, troubleshooting CodeBuddy issues
通过你的 Agent 添加
安装目录:codebuddy-code-for-openclaw/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
CodeBuddy CLI 是腾讯推出的终端 AI 编程助手,支持自然语言驱动的代码开发。核心使用场景包括:
- 快速安装:通过 npm 全局安装
@tencent-ai/codebuddy-code,需 Node.js 18+ 环境 - 交互模式:直接运行
codebuddy启动对话,支持 Google/GitHub(国际版/Gemini、GPT)或微信登录(中国版/DeepSeek) - 单任务执行:
codebuddy "<prompt>"快速完成代码优化、单元测试生成、代码审查等任务 - 权限控制:
--permission-mode提供四种模式,建议生产环境使用acceptEdits或plan模式 - 项目管理:
/init生成项目指南,/memory管理项目记忆文件,支持自定义命令
显著优点
- 双版本支持:国际版接入 Gemini/GPT,中国版基于 DeepSeek,兼顾国内外开发者需求
- 安全设计:默认启用权限确认,
-y 危险参数明确标注 "sandbox only" 警示
- 轻量灵活:纯 CLI 形态,无 IDE 绑定,适合服务器、容器等无图形环境
- 生态集成:原生支持
/config、/doctor、/cost 等运维诊断命令
潜在局限
- 依赖 npm 生态:需 Node.js 环境,对非前端开发者有环境门槛
- 权限模式学习成本:
acceptEdits/bypassPermissions/plan 等模式差异需仔细阅读文档
- 模型选择受限:登录方式决定可用模型,无法在同一会话内自由切换
- 中文场景优化有限:尽管支持中文 prompt,但部分命令文档仍为英文
适合人群
- 偏好终端工作流的全栈开发者
- 需要在 CI/CD 或远程服务器使用 AI 辅助编程的场景
- 希望快速原型验证、代码审查而不打开 IDE 的开发者
- 已使用腾讯云服务或 CodeBuddy IDE 插件的用户
常规风险
-y 危险参数明确标注 "sandbox only" 警示/config、/doctor、/cost 等运维诊断命令- 依赖 npm 生态:需 Node.js 环境,对非前端开发者有环境门槛
- 权限模式学习成本:
acceptEdits/bypassPermissions/plan等模式差异需仔细阅读文档 - 模型选择受限:登录方式决定可用模型,无法在同一会话内自由切换
- 中文场景优化有限:尽管支持中文 prompt,但部分命令文档仍为英文
适合人群
- 偏好终端工作流的全栈开发者
- 需要在 CI/CD 或远程服务器使用 AI 辅助编程的场景
- 希望快速原型验证、代码审查而不打开 IDE 的开发者
- 已使用腾讯云服务或 CodeBuddy IDE 插件的用户
常规风险
关键警示:--dangerously-skip-permissions / -y 参数虽提升效率,但会导致文件误删、作用域失控、数据丢失等风险,安全报告明确标注 Never use in production。建议在个人沙箱环境测试后再启用,或始终使用交互式权限确认模式。
技能正文
name: codebuddy-cli description: | CodeBuddy Code CLI installation, configuration and usage guide. CodeBuddy Code is Tencent's AI-powered CLI programming assistant supporting natural language driven development.
- MANDATORY TRIGGERS: CodeBuddy, codebuddy, AI CLI, Tencent AI coding, @tencent-ai/codebuddy-code, terminal AI assistant
- Use when: installing CodeBuddy CLI, configuring CodeBuddy, using CodeBuddy commands, troubleshooting CodeBuddy issues
CodeBuddy CLI Skill
AI-powered terminal programming assistant from Tencent.
Installation
# Check prerequisites
node -v # Requires Node.js 18+
npm -v
# Install globally
npm install -g @tencent-ai/codebuddy-code
# Verify
codebuddy --version
Quick Start
- Navigate to project directory
- Run
codebuddy to start interactive session
- Choose login method:
- Google/GitHub: International version (Gemini, GPT models)
- WeChat (微信): China version (DeepSeek models)
CLI Arguments
Argument
Description
codebuddy "<prompt>"
Execute single task
-y / --dangerously-skip-permissions
Skip permission confirmations (sandbox only)
-p / --print
Single execution mode (requires -y for file ops)
--permission-mode <mode>
acceptEdits, bypassPermissions, default, plan
--version
Show version
Examples
# Interactive mode
codebuddy
# Single task
codebuddy "帮我优化这个函数的性能"
codebuddy "生成这个 API 的单元测试"
codebuddy "检查这次提交的代码质量"
# Skip permissions (sandbox only)
codebuddy -p "Review code quality" -y
Slash Commands
Command
Description
/help
Display available commands
/status
Show account info and current model
/login
Switch accounts
/logout
Sign out
/clear
Reset conversation history
/exit
End session
/config
Open configuration
/doctor
Diagnose issues
/cost
Token usage statistics
/init
Generate CODEBUDDY.md project guide
/memory
Edit project memory files
# Check prerequisites
node -v # Requires Node.js 18+
npm -v
# Install globally
npm install -g @tencent-ai/codebuddy-code
# Verify
codebuddy --version
- Navigate to project directory
- Run
codebuddyto start interactive session - Choose login method:
- Google/GitHub: International version (Gemini, GPT models)
- WeChat (微信): China version (DeepSeek models)
CLI Arguments
Argument
Description
codebuddy "<prompt>"
Execute single task
-y / --dangerously-skip-permissions
Skip permission confirmations (sandbox only)
-p / --print
Single execution mode (requires -y for file ops)
--permission-mode <mode>
acceptEdits, bypassPermissions, default, plan
--version
Show version
Examples
| Argument | Description |
|---|---|
codebuddy "<prompt>" |
Execute single task |
-y / --dangerously-skip-permissions |
Skip permission confirmations (sandbox only) |
-p / --print |
Single execution mode (requires -y for file ops) |
--permission-mode <mode> |
acceptEdits, bypassPermissions, default, plan |
--version |
Show version |
# Interactive mode
codebuddy
# Single task
codebuddy "帮我优化这个函数的性能"
codebuddy "生成这个 API 的单元测试"
codebuddy "检查这次提交的代码质量"
# Skip permissions (sandbox only)
codebuddy -p "Review code quality" -y
Slash Commands
Command
Description
/help
Display available commands
/status
Show account info and current model
/login
Switch accounts
/logout
Sign out
/clear
Reset conversation history
/exit
End session
/config
Open configuration
/doctor
Diagnose issues
/cost
Token usage statistics
/init
Generate CODEBUDDY.md project guide
/memory
Edit project memory files
| Command | Description |
|---|---|
/help |
Display available commands |
/status |
Show account info and current model |
/login |
Switch accounts |
/logout |
Sign out |
/clear |
Reset conversation history |
/exit |
End session |
/config |
Open configuration |
/doctor |
Diagnose issues |
/cost |
Token usage statistics |
/init |
Generate CODEBUDDY.md project guide |
/memory |
Edit project memory files |
Type ? during session for keyboard shortcuts.
Custom Commands
Create .md files in:
- Project:
.codebuddy/commands/ - Global:
~/.codebuddy/commands/
Update
npm install -g @tencent-ai/codebuddy-code
Security Notes
npm install -g @tencent-ai/codebuddy-code
--dangerously-skip-permissions risks: file deletion, scope creep, data loss. Never use in production.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。