CodeBuddy CLI for Openclaw

An AI-powered terminal programming assistant from Tencent that enables natural language driven development directly in your shell.

pmwalkercao
v1.0.0
Feb 4, 2026
0
4.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install codebuddy-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install codebuddy-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is CodeBuddy CLI?

The CodeBuddy CLI is a robust terminal-based programming companion developed by Tencent, designed to streamline the software development lifecycle using artificial intelligence. As a featured tool within the Openclaw Skills ecosystem, it provides developers with the ability to refactor code, generate tests, and manage project structures through simple natural language prompts or interactive sessions.

Whether you are using international models like Gemini or GPT via GitHub/Google, or regional models like DeepSeek via WeChat, this tool integrates deeply into your local environment to act as a collaborative pair programmer. By leveraging Openclaw Skills like this one, developers can maintain focus within their terminal while delegating complex tasks to advanced AI agents.

CodeBuddy CLI Use Cases

  • Automating code refactoring and performance optimization via terminal prompts.
  • Generating comprehensive unit tests for existing APIs and functions automatically.
  • Performing instant code quality reviews before committing changes to version control.
  • Managing project-specific context and memory to provide tailored AI suggestions.
  • Executing quick, single-task programming operations without leaving the command line.

How CodeBuddy CLI Works

  1. The user installs the package globally and initializes an interactive session within their specific project directory.
  2. Authentication is handled based on region, allowing users to choose between international LLMs or specialized regional models like DeepSeek.
  3. The assistant indexes the local project context or specialized memory files to understand the existing codebase.
  4. Developers issue commands using natural language or slash-commands to trigger specific AI actions such as code generation or debugging.
  5. The tool processes the request and can apply edits directly to the filesystem depending on the user's selected permission mode.

CodeBuddy CLI Setup

Ensure you have Node.js 18 or higher installed on your system. To install this component of Openclaw Skills, run the following command:

npm install -g @tencent-ai/codebuddy-code

To verify the installation, check the version:

codebuddy --version

Start an interactive session by simply running:

codebuddy

CodeBuddy CLI Data Schema & Taxonomy

CodeBuddy CLI organizes project context and custom logic through a specific file structure:

Component Location Description
Project Commands .codebuddy/commands/ Markdown files defining project-specific AI tasks
Global Commands ~/.codebuddy/commands/ Markdown files for cross-project AI automations
Project Memory .codebuddy/memory/ Files used to store persistent project context
Project Guide CODEBUDDY.md A generated guide that helps the AI understand your project
Token Stats via /cost Tracks usage statistics and model expenditure

CodeBuddy CLI Advanced Features

  • Support for multiple permission modes including acceptEdits, bypassPermissions, and plan to control AI write access.
  • Comprehensive slash command system for diagnostics (/doctor), account management (/login), and session resets (/clear).
  • Ability to create custom AI workflows by placing markdown files in designated command directories.
  • Integration with project-specific memory files to maintain long-term context across multiple sessions.
  • Native support for international and regional LLM providers, making it a versatile choice for Openclaw Skills users globally.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*