AI API CLI匯總
CLI 是 Command-Line Interface 的簡稱,也就是 命令行界面,通俗來講就是用輸入命令的方式與計算機交互。可能大部分人都看到命令行很頭疼,感覺這些東西復雜又難記,不過其實還好啦,大部分選項參數設計的都蠻合理的,只要稍微理解它,你也可以成為 CLI 大師。
AI編程常用的CLI:
按我用過的順序:
Claude Code
進入命令行界面,安裝 Claude Code
npm install -g @anthropic-ai/claude-code
CC API Manager
Claude Code API Manager
ccapi(全稱為 Claude Code API Manager)是一款專門用于管理 Claude Code 相關 API 配置(如 Anthropic API 密鑰、基礎 URL、多環境切換)的命令行工具,能簡化 API 密鑰的存儲、切換和驗證流程。以下是完整的 安裝步驟 和 核心使用方法,適配 Linux(含 WSL)、macOS 環境(Windows 需通過 WSL 或 Git Bash 運行):
一、前提條件
使用 ccapi 前需確保:
已安裝 Node.js(v16+) 和 npm(v8+)(Claude Code 依賴 Node.js,通常已滿足;可通過 node -v 和 npm -v 驗證版本);
已安裝 Claude Code(全局安裝,即 npm install -g @anthropic-ai/claude-code,若未安裝需先完成);
擁有 Anthropic API 密鑰(格式為 sk-ant-xxx,需從 Anthropic 官網 申請)。
二、安裝 ccapi
ccapi 目前主要通過 npm 全局安裝 或 手動克隆倉庫編譯,推薦 npm 安裝(簡單高效):
方法 1:npm 全局安裝(推薦)
打開終端(WSL 終端、Linux 終端或 macOS 終端),執行以下命令:
bash
# 全局安裝 ccapi(依賴 npm,確保已安裝 Node.js)
npm install -g @anthropic-ai/ccapi
cc-switch
https://github.com/farion1231/cc-switch
https://github.com/Linuxdazhao/cc_auto_switch # https://www.xmsumi.com/detail/1302
2個用于管理和切換 Claude Code 和 Codex 不同供應商配置的桌面應用
claude-code-router(還沒搞清咋用)
https://github.com/musistudio/claude-code-router
claude-proxy
https://github.com/BenedictKing/claude-proxy
cccs - Claude Code Configuration Switcher
https://github.com/breakstring/cccs/
Task Manager
Spec Kit (Claude Code絕配)
https://github.com/github/spec-kit
Taskmaster AI - 通過AI任務管理來提升開發效率
https://gitcode.com/GitHub_Trending/cl/claude-task-master
claude-task-master
主頁:https://www.task-master.dev/
github: https://github.com/eyaltoledano/claude-task-master
npm: https://www.npmjs.com/package/task-master-ai
Claude-Code-Multi-Agent
https://github.com/Prorise-cool/Claude-Code-Multi-Agent/
多層智能代理協調系統
- Context Engineering 驅動的新一代AI編程助手生態系統
- 基于Claude Code構建的智能代理協調平臺,實現從需求到交付的全流程自動化開發
CC Extension
CCManager
https://github.com/kbwo/ccmanager
Coding Agent Session Manager for Claude Code / Gemini CLI / Codex CLI / Cursor Agent / Copilot CLI
claude-squad
https://github.com/smtg-ai/claude-squad
CC UI 開發工具
Claudable
https://github.com/opactorai/Claudable
Claudable is an open-source web builder that leverages local CLI agents, such as Claude Code, Codex, Gemini CLI, Qwen Code, and Cursor Agent, to build and deploy products effortlessly.
Claudable 是一款功能強大的基于 Next.js 的 Web 應用程序構建器,它結合了 Claude Code(也支持 Cursor CLI)的高級 AI 代理功能與 Lovable 簡單直觀的應用程序構建體驗。只需描述您的應用程序創意 - “我想要一個具有深色模式的任務管理應用程序” - 然后觀看 Claudable 立即生成代碼并向您展示工作應用程序的實時預覽。您可以將您的應用程序部署到 Vercel 并免費將數據庫與 Supabase 集成。
這個開源項目使您能夠免費輕松構建和部署專業的 Web 應用程序。
script-server
https://github.com/bugy/script-server
Shadcn/ui (支持CC)
https://ui.shadcn.com/
A set of beautifully-designed, accessible components and a code distribution platform. Works with your favorite frameworks. Open Source. Open Code.
Quick Start
Select your MCP client and follow the instructions to configure the shadcn MCP server. If you'd like to do it manually, see the Configuration section.
Claude Code
pnpm dlx shadcn@latest mcp init --client claude
Restart Claude Code and try the following prompts:
- Show me all available components in the shadcn registry
- Add the button, dialog and card components to my project
- Create a contact form using components from the shadcn registry
Note: You can use /mcp command in Claude Code to debug the MCP server.

Tools for shadcn (7 tools)
│ ? 1. get_project_registries
│ 2. list_items_in_registries
│ 3. search_items_in_registries
│ 4. view_items_in_registries
│ 5. get_item_examples_from_registries
│ 6. get_add_command_for_items
│ ? 7. get_audit_checklist
Prisma
https://www.prisma.io/
https://github.com/prisma/prisma
Ship at lightning speed, and scale to a global audience effortlessly with our next-gen serverless Postgres database.
安裝:npx prisma@latest init --db
安裝MCP:npx -y mcp-remote https://mcp.prisma.io/mcp
CC安裝MCP:claude mcp add prisma-local npx prisma mcp
圖像生視頻
https://github.com/comfyanonymous/ComfyUI
https://www.comfy.org/zh-cn/download
https://github.com/Tencent/HunyuanVideo-I2V
https://runwayml.com/
CLI
Google Gemini CLI
https://makersuite.google.com/app/apikey
GitHub Copilot CLI
https://github.com/features/copilot/cli/
簡介:由 GitHub 推出,與 Copilot 插件同源,可在終端通過自然語言生成命令行指令、解釋復雜命令,甚至生成代碼片段。支持直接將自然語言轉換為 Bash、PowerShell 等命令,適合開發者快速編寫和理解終端命令。
CodeX
https://github.com/openai/codex
About: Lightweight coding agent that runs in your terminal
npm install -g @openai/codex
iFlow (國產,心流)
https://platform.iflow.cn/cli/quickstart/index.html
Lobe-chat
https://lobehub.com/zh
https://github.com/lobehub/lobe-chat/
Lobe Chat - an open-source, modern design AI chat framework. Supports multiple AI providers (OpenAI / Claude 4 / Gemini / DeepSeek / Ollama / Qwen), Knowledge Base (file upload / RAG ), one click install MCP Marketplace and Artifacts / Thinking. One-click FREE deployment of your private AI Agent application.
費用:https://lobehub.com/zh/pricing
Kat-coder (快手 Kwaipilot 團隊)
https://streamlake.com/product/kat-coder
快手 Kwaipilot 團隊的官方技術 Blog:https://kwaipilot.github.io/KAT-Coder/
KAT-Dev-32B 模型開源地址:https://huggingface.co/Kwaipilot/KAT-Dev
KAT-Coder 開發工具接入指南:https://www.streamlake.com/document/WANQING/me6ymdjrqv8lp4iq0o9
KAT-Coder API Key 申請:https://console.streamlake.com/console/wanqing/api-key
KIRO (Amazon.com)
codeFlicker
Droids (所說這里有大量免費API)
OK Computer (這地址看著不對勁)
https://kuleem2nugt64.ok.kimi.link/
AI編程常用的GUI:
Cursor
Cursor 相關工具
Fly Cursor
https://github.com/liqiang-xxfy/fly-cursor-free
https://docs.qq.com/aio/DUGd6V2t5WUVoQUdG?p=nUOs9ro4dA2OpuiU5UJclO
MCP
ZAi MCP
https://www.npmjs.com/package/@z_ai/mcp-server
AI Workflow
n8n
開源地址:https://github.com/Zie619/n8n-workflows
三方平臺
智譜AI:BigModel
anyrouter
aicodeditor
CC Club
privnode.com
streamlake
https://console.streamlake.com
https://gptapi.asia
https://cn.gptapi.asia
https://gptapi.asia
其它AI聚合/中轉平臺
https://wolfai.top/
https://aicodeditor.com/
https://openrouter.ai/
https://www.moonshot.cn/
https://open.bigmodel.cn/
https://gaccode.com/
其他工具
自助升級 ChatGPT Plus 工具
https://getgpt.pro/
國內自助升級 ChatGPT Plus 工具: getplus.app , 詳細教程:國內升級 ChatGPT 手把手教程
教程:https://csguide.cn/private/chatgpt-plus-tutorial.html
ChatGPT 賬戶注冊工具
如果你還沒 ChatGPT 賬戶,可以去用谷歌郵箱、微軟郵箱等注冊一個,或者直接在這里幾塊錢購買一個成品賬號登錄都可以:https://chatgptzh.com.cn/gpt
https://sk.i6ls.com//links/584D744D
學習資源
相關網站
https://ai-bot.cn/
https://academy.claude-code.club/
浙公網安備 33010602011771號