← Back to Skills Marketplace
chaoliuzhu

扣子Coze CLI工具

by Chaoliuzhu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
137
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install delonix-coze-cli
Description
Interact with Coze CLI (@coze/cli) — create/deploy Coze projects, manage spaces and organizations, send messages to projects, generate images/audio/video, an...
README (SKILL.md)

Coze CLI Skill

Overview

This skill enables AI agents to interact with Coze CLI (@coze/cli) — the official command-line tool for Coze/Cozeflow development. It supports project creation, deployment, messaging, multimedia generation, and space management via terminal commands.

Use this skill when: The user wants to create/deploy Coze projects, manage spaces/orgs, generate images/audio/video, send messages to Coze projects, or automate Coze workflows via CLI.

Quick Start

Installation

npm install -g @coze/cli
coze --version   # verify

Authentication

coze auth login --oauth   # opens browser for OAuth flow
coze auth status          # verify login

Initial Setup

# Select organization
coze org list
coze org use \x3Corganization_id>

# Select workspace
coze space list
coze space use \x3Cspace_id>

Core Workflows

Create a Project

# Natural language project creation
coze code project create --message "创建一个数据分析 Web 应用" --type web

# With wait (blocking until done)
coze code project create --message "创建一个客服机器人" --type agent --wait

Supported types: agent, workflow, app, skill, web, miniprogram, assistant

List / Get Projects

coze code project list                          # all projects
coze code project list --type agent --type web  # filter by type
coze code project list --name "客服"            # search by name
coze code project get \x3Cproject_id>              # detail

Send Message to Project

coze code message send "修复登录页面的样式问题" -p \x3Cproject_id>

# With local file context
coze code message send "重构 @src/utils.ts 中的代码" -p \x3Cproject_id>

# Via pipe
cat error.log | coze code message send "分析这个错误日志" -p \x3Cproject_id>

# Check status / cancel
coze code message status -p \x3Cproject_id>
coze code message cancel -p \x3Cproject_id>

Deploy Project

coze code deploy \x3Cproject_id>           # deploy
coze code deploy \x3Cproject_id> --wait    # wait for completion
coze code deploy status \x3Cproject_id>    # check status

Preview Project

coze code preview \x3Cproject_id>

Manage Environment Variables

coze code env list -p \x3Cproject_id>                   # dev env
coze code env list -p \x3Cproject_id> --env prod        # prod env
coze code env set API_KEY xxx -p \x3Cproject_id>         # set
coze code env delete API_KEY -p \x3Cproject_id>          # delete

Generate Multimedia

# Image
coze generate image "一只在太空漫步的猫"
coze generate image "未来城市" --output-path ./city.png --size 4K --no-watermark

# Audio
coze generate audio "你好,欢迎使用 Coze CLI"
coze generate audio "你好世界" --output-path ./hello.mp3 --audio-format ogg_opus

# Video
coze generate video create "一只跳舞的小猫"
coze generate video create "日落延时" --wait --output-path ./sunset.mp4 --resolution 1080p --duration 8
coze generate video status \x3Ctask_id>

Upload File

coze file upload ./document.pdf

Output Format

# Text (default)
coze space list

# JSON (for scripting)
coze space list --format json
coze code project list --format json | jq '.[].name'

CI/CD / Non-Interactive Use

export COZE_ORG_ID=\x3CYOUR_ORG_ID>
export COZE_SPACE_ID=\x3CYOUR_SPACE_ID>
export COZE_PROJECT_ID=\x3CPROJECT_ID>

coze code deploy \x3Cproject_id> --wait --format json

Global Options

Option Description
--format json|text Output format (default: text)
--no-color Disable ANSI colors
--config \x3Cpath> Custom config file
--org-id \x3Cid> Override organization ID
--space-id \x3Cid> Override space ID
-p \x3Cproject_id> Target project ID
--verbose Verbose logging
--debug Full diagnostic logs

Configuration

Config priority (high→low):

  1. Environment variables (COZE_ORG_ID, COZE_SPACE_ID, etc.)
  2. --config CLI flag
  3. COZE_CONFIG_FILE env var
  4. .cozerc.json in project dir
  5. ~/.coze/config.json global
coze config list
coze config get base_url
coze config set base_url https://api.coze.cn

Detailed Command Reference

For the full command reference table, see:

references/commands.md

Contains: auth, org/space, project CRUD, message, deploy, env, domain, skill, multimedia generation, file upload, config, completion, upgrade, CI/CD env vars, and quick command templates.

Usage Guidance
This skill appears to be a straightforward CLI helper for the official Coze CLI, but exercise caution before installing/using it: - Verify provenance: the bundle's metadata (ownerId/slug) and 'Source: unknown' conflict with README links; confirm you trust the publisher and the @coze/cli npm package on npmjs.org or the official Coze docs before running installs. - Be careful with local files and env vars: the skill explicitly shows commands that pipe or upload local files (cat file | coze ... and coze file upload). Do not pipe or upload secrets, keys, credentials, or arbitrary ~/ files unless you intend to send them to Coze servers. - Check config and base_url: the CLI reads ~/.coze/config.json and respects COZE_CONFIG_FILE; ensure these files do not contain secrets you don't want transmitted. Avoid switching base_url to unknown endpoints unless you trust them. - OAuth behavior: 'coze auth login --oauth' opens a browser; tokens from OAuth will be stored by the CLI. Review where the CLI stores tokens and limit their scope when possible. - If you need stronger assurance, ask the skill publisher for the canonical source (GitHub repo or npm package link) and verify checksums/version on the npm package before installing. Given the metadata inconsistencies and the undeclared but used env/config variables and explicit file upload/piping instructions (data exfiltration vectors), treat this skill as suspicious until provenance and intended env usage are confirmed.
Capability Analysis
Type: OpenClaw Skill Name: delonix-coze-cli Version: 1.0.0 The skill bundle provides a legitimate and well-documented interface for the official Coze CLI (@coze/cli). It enables AI agents to manage Coze projects, deployments, and multimedia generation through standard terminal commands. The instructions in SKILL.md and references/commands.md are consistent with official Coze documentation, and there is no evidence of malicious intent, data exfiltration, or unauthorized execution.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The name/description and the SKILL.md consistently describe a wrapper for the official Coze CLI (@coze/cli). The actions described (project CRUD, deploy, message, multimedia generation, file upload) align with that purpose. However, repository/registry metadata show small inconsistencies (different ownerId and slug in _meta.json vs registry metadata and 'Source: unknown' despite README linking to a GitHub repo), which reduces trust in provenance.
Instruction Scope
The runtime instructions instruct the agent to run CLI commands that may read local files and pipe their contents to the remote service (e.g., 'cat error.log | coze code message send' and 'coze file upload <path>'). Those are expected for this CLI but are explicit data exfiltration vectors — any sensitive local file piped/uploaded would be sent to the Coze backend. The instructions also tell the agent to open an OAuth browser flow and to set/consult configuration in ~/.coze/config.json and COZE_CONFIG_FILE. The SKILL.md references many env vars and config paths that are not declared in the skill metadata (see environment_proportionality).
Install Mechanism
The skill is instruction-only (no install spec in the bundle). The Quick Start tells users to install via 'npm install -g @coze/cli' — a normal, expected mechanism. Because the skill itself does not include an automated install step, nothing is written by the skill package. Installing the CLI from npm is a separate, standard action; verify you trust the @coze/cli npm package before running it.
Credentials
The skill metadata declares no required environment variables, yet the instructions reference numerous COZE_* environment variables and config files (COZE_ORG_ID, COZE_SPACE_ID, COZE_PROJECT_ID, COZE_CONFIG_FILE, COZE_ENTERPRISE_ID, COZE_AUTO_CHECK_UPDATE, and ~/.coze/config.json). This is a mismatch: the instructions expect env/config values but the skill does not declare them. Some of these values may be harmless IDs, but config files and env vars can store tokens or point the CLI to alternate base_url values. The skill also documents 'coze config set base_url' which could redirect CLI traffic to a custom endpoint — useful for testing but a potential abuse vector if misconfigured.
Persistence & Privilege
The skill is not marked 'always: true' and is user-invocable. It does not request to modify other skills or system-wide settings. No persistent installation behavior is present inside the skill bundle (instruction-only).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install delonix-coze-cli
  3. After installation, invoke the skill by name or use /delonix-coze-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首发版本:扣子CLI交互,支持工作流和Bot管理
Metadata
Slug delonix-coze-cli
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 扣子Coze CLI工具?

Interact with Coze CLI (@coze/cli) — create/deploy Coze projects, manage spaces and organizations, send messages to projects, generate images/audio/video, an... It is an AI Agent Skill for Claude Code / OpenClaw, with 137 downloads so far.

How do I install 扣子Coze CLI工具?

Run "/install delonix-coze-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 扣子Coze CLI工具 free?

Yes, 扣子Coze CLI工具 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 扣子Coze CLI工具 support?

扣子Coze CLI工具 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 扣子Coze CLI工具?

It is built and maintained by Chaoliuzhu (@chaoliuzhu); the current version is v1.0.0.

💬 Comments