Skip to main content

CloudBase AI CLI Usage Documentation

Introduction

CloudBase AI CLI is a unified command-line tool that integrates multiple mainstream AI programming tools, supporting both built-in and custom models.

enables you to use AI programming assistants such as CodeBuddy Code, Claude Code, OpenAI Codex, aider, and Qwen Code with a simple command.

It also features built-in CloudBase AI Toolkit, supporting the complete workflow from development to deployment and enabling operation in any environment.

Core Advantages

  • 🔧 Unified Management - Manage multiple AI programming CLI tools with a single command, without switching between multiple tools
  • 🤖 Multi-Model Support - Supports built-in and custom large models, including Kimi K2, Zhipu GLM-4.5, etc.
  • 🚀 One-Click Development & Deployment - Complete process from code generation to cloud deployment, supporting Web applications, Mini Programs, and backend services
  • 🌍 Ubiquitous - Runs in any environment, including Mini Program Developer Tools, VS Code, GitHub Actions, etc.

Application Scenarios

Quick Start

1. Install

Recommended: one-click installation script

Installation can be completed in just seconds (compared to npm installation which typically takes minutes), delivering a faster and more convenient experience:

curl https://static.cloudbase.net/cli/install/install.sh  -fsS | bash

2. Initialize AI Configuration

Run CloudBase AI CLI in the terminal:

# Start Configuration Wizard
tcb ai

On first startup, the configuration wizard will guide you through:

  • Select AI tool
  • Complete AI tool configuration

After completing the setup, you can start using AI tools for assisted development. Subsequently, you can run tcb ai --setup to switch tools and models.

3. Commence Experience

tcb ai

# Or Preset Prompts
tcb ai -- "help me create an order management system"

# Or use non-interactive mode
tcb ai -- -p "Hello"

# List all available commands
tcb ai --help

Detailed Development Guide

Refer to the detailed tutorial: Using CloudBase AI CLI to develop a mini program for recycling idle items in the neighborhood

Try Now

Run Anywhere, from Code Generation to Cloud Deployment!

No API Key required. The new environment comes with 1 million tokens, supporting quick access to mainstream models like DeepSeek and Kimi K2.

How It Works

Detailed Usage Instructions

Launch AI Tool

# AI Tool with Default Configuration
tcb ai

# Specify AI tool
tcb ai -a codebuddy
tcb ai -a claude
tcb ai -a codex
tcb ai -a aider
tcb ai -a qwen

Parameter Passthrough

Pass parameters directly to the target AI tool using the -- delimiter:

# Pass Parameters to CodeBuddy
tcb ai -a codebuddy -- --mcp-server "config.json"

# Pass Parameters to Claude
tcb ai -a claude -- -p hi

# Equivalent to running codebuddy --mcp-server "config.json" or claude -p hi

Specify Template

Directly specify the template during AI development:

# Use AI Command and Download Templates
tcb ai --template rules
tcb ai --template miniprogram
tcb ai --template react

Supported templates

  • miniprogram - WeChat Mini Program + CloudBase
  • react - Web application - React + CloudBase
  • vue - Web application - Vue + CloudBase
  • uniapp - Cross-platform application - UniApp + CloudBase
  • rules - AI rules and configurations
  • none - Do not download any templates

View current configuration

tcb ai --config

Reconfigure

# Reset all configurations
tcb ai --reset

# Run Configuration Wizard
tcb ai --setup

Supported AI Tools

AI ToolCommand Parameter
CodeBuddy Code-a codebuddy
Claude Code-a claude
Openai Codex-a codex
aider-a aider
Qwen Code-a qwen

Getting Help

Command Line Help

# View command help
tcb ai --help

Frequently Asked Questions

Having issues? Refer to CloudBase CLI FAQ for detailed help.

Technical Support

🔥 WeChat Discussion Group

Encountered any issues or want to exchange experiences? Join our technical community!

WeChat Group QR Code
Scan the QR code to join the WeChat technical discussion group

Why Choose CLI?

CLI turns AI programming capabilities into programmable infrastructure that can be invoked by scripts, automated processes, and CI/CD systems, eliminating the need to switch between multiple GUI tools and enabling integration into existing development workflows.

Supporting cloud-native development, containerized deployment, and continuous integration/continuous deployment (CI/CD), propelling AI evolution from "code generation" to "full-process collaboration"

Configuration Instructions

Currently, CloudBase AI CLI supports configuration for the following AI tools:

  • CodeBuddy Code
  • Claude Code
  • Openai Codex
  • aider
  • Qwen Code

All tools support two configuration methods:

  • Configure a custom LLM: usually requires configuring your own API KEY and the corresponding Base URL
  • Configure LLM in the CloudBase environment: No need to configure the API KEY by yourself, just log in and select the CloudBase environment by following the command-line prompts
AI ToolsCustom Configuration RequirementsCloudBase Environment ConfigurationRelated Documentation
CodeBuddy Code- API KEY
- Support OAuth authentication
- MCP server configuration
- Environment variable configuration
✨ One-click login, automatic configurationConfiguration document
Claude Code- Base URL
- API KEY
- Requires configuration for Anthropic-compatible models
- Supports configuration for Kimi-K2, Zhipu GLM-4.5
✨ One-click login, automatic configurationConfiguration document
OpenAI Codex- Base URL
- API KEY
- Model name
- Requires configuration for OpenAI-compatible models
✨ One-click login, automatic configurationConfiguration document
aider- Base URL
- API KEY
- Model name
- Requires configuration for OpenAI-compatible models
✨ One-click login, automatic configurationConfiguration document
Qwen Code- Base URL
- API KEY
- Model name
- Requires configuration for OpenAI-compatible models
✨ One-click login, automatic configurationConfiguration document