/install codebuddy-code
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
codebuddyto start interactive session - Choose login method:
- Google/GitHub: International version (Gemini, GPT models)
- WeChat (微信): China version (DeepSeek models)
CLI Arguments
| Argument | Description |
|---|---|
codebuddy "\x3Cprompt>" |
Execute single task |
-y / --dangerously-skip-permissions |
Skip permission confirmations (sandbox only) |
-p / --print |
Single execution mode (requires -y for file ops) |
--permission-mode \x3Cmode> |
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 |
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
--dangerously-skip-permissions risks: file deletion, scope creep, data loss. Never use in production.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install codebuddy-code - After installation, invoke the skill by name or use
/codebuddy-code - Provide required inputs per the skill's parameter spec and get structured output
What is CodeBuddy Code for OpenClaw?
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. It is an AI Agent Skill for Claude Code / OpenClaw, with 3638 downloads so far.
How do I install CodeBuddy Code for OpenClaw?
Run "/install codebuddy-code" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is CodeBuddy Code for OpenClaw free?
Yes, CodeBuddy Code for OpenClaw is completely free (open-source). You can download, install and use it at no cost.
Which platforms does CodeBuddy Code for OpenClaw support?
CodeBuddy Code for OpenClaw is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created CodeBuddy Code for OpenClaw?
It is built and maintained by Jiayu (@pmwalkercao); the current version is v1.0.1.