CodeBuddy CLI for Openclaw

CodeBuddy CLI is a Tencent-developed terminal assistant that transforms natural language prompts into executable code and project optimizations.

pmwalkercao
v1.0.1
Feb 4, 2026
2
5.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install codebuddy-code

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-code 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?

CodeBuddy CLI represents a powerful leap in developer productivity, serving as a natural language interface for your terminal. Developed by Tencent and featured within the Openclaw Skills ecosystem, this tool allows developers to interact with their codebase using high-level instructions rather than manual syntax. It supports a diverse range of Large Language Models, including Gemini and GPT for international users, as well as DeepSeek for those using the WeChat-based China version.

By integrating directly into the development workflow, this skill enables seamless code generation, refactoring, and quality checks without leaving the command line. It is designed for developers who want the power of an AI coding agent with the speed and flexibility of a CLI tool, making it a vital addition to the Openclaw Skills collection.

CodeBuddy CLI Use Cases

  • Rapidly generating unit tests for complex APIs using simple text prompts.
  • Automating performance optimizations and code quality reviews before staging commits.
  • Executing single-task coding operations without entering a full IDE environment.
  • Managing project-level context and documentation through automated initialization routines.

How CodeBuddy CLI Works

  1. The user installs the package globally and authenticates using a preferred provider (GitHub, Google, or WeChat).
  2. Upon running the codebuddy command, the tool initializes a session and analyzes the current directory's context.
  3. The user provides a natural language instruction or uses a slash command to trigger a specific agentic behavior.
  4. CodeBuddy processes the request through its connected LLM to generate a plan or direct file edits.
  5. The tool applies changes based on the selected permission mode, ensuring security and user control over the codebase.

CodeBuddy CLI Setup

To get started with this skill from the Openclaw Skills library, follow these steps:

# Verify Node.js 18+ is installed
node -v

# Install the CLI globally
npm install -g @tencent-ai/codebuddy-code

# Launch the interactive session and login
codebuddy

CodeBuddy CLI Data Schema & Taxonomy

CodeBuddy CLI organizes its configuration and project memory using a structured file hierarchy:

Path Purpose
.codebuddy/commands/ Local project-specific custom Markdown commands.
~/.codebuddy/commands/ Global custom commands accessible across all projects.
CODEBUDDY.md A project guide generated via the /init command to provide AI context.
/memory Virtual directory managed by the CLI to store and edit project-specific AI memory.

CodeBuddy CLI Advanced Features

  • Custom Command Extensions: Create .md files to define specific automated workflows and logic.
  • Granular Permission Control: Use modes like acceptEdits or plan to audit AI changes before they hit the disk.
  • Diagnostic Suite: Built-in /doctor and /status commands to monitor account health and model configuration.
  • Token Management: Track resource consumption with the /cost command to optimize usage within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*