1. 编程软件对接教程
ccode
  • 概述
  • 首次快速开始
    • API站使用简单介绍
      • 购买以及兑换教程
      • 令牌获取与分组选择-简单调用教程
    • Web版使用简单介绍
      • 网页版简单使用教程
  • 编程软件对接教程
    • Cherry Studio
    • Claude Code
    • CodeX
    • Cline /Roo /Kilo
    • API编程 高阶使用教程
      • CodeX Skill的介绍与使用
  • 详细接口对接文档
    • 视频生成
      • Sora 2
        • 兼容模式
          • 流式输出
        • 标准模式
          • 创建任务
          • 查询进度
          • 获取视频内容
      • Seedance 2.0
        • 创建任务
      • Grok 视频
        • 创建任务
    • 图片生成
      • GPT-image-2/fast
        • 图片生成
        • 图片编辑
      • GPT-image-2 Pro/Plus/tokens
        • 图片生成
        • 图片编辑
  1. 编程软件对接教程

CodeX

前提:#

令牌获取与分组选择-简单调用教程
令牌分组请选择:codex专用

系统要求#

Node.js 版本 ≥ 22
支持的操作系统:macOS、Linux、Windows (WSL)
Git Bash 必须!

安装步骤#

1.
安装 Node.js 22 或更高版本(自行询问Ai安装方法或者直接百度,mac用户需要先安装Xcode)
2.
验证node安装:node --version
3.
全局安装指令:npm install -g @openai/codex
4.
验证claude安装:codex --version
5.
获取必要的配置信息
6.
与 Ccode.vip 连接。以下是两种方法,都可以使用。
手动配置
软件辅助设置

站长推荐的提示词和 MCP#

desktop-commander
先全局安装:npx @wonderwhy-er/desktop-commander@latest setup
config.toml底部再添加:
# --- MCP servers added by Codex CLI ---
[mcp_servers.desktop-commander]
command = 'npx'
args = ['-y', '@wonderwhy-er/desktop-commander@latest']
startup_timeout_ms = 60000
.codex目录(全局提示词)或项目目录(项目提示词)新增或修改AGENTS.md
Reading/Browsing: Always use the desktop MCP (Desktop Commander) tool. Writing/Editing: For code changes and new files, always use the Codex CLI's apply_patch tool (the standard tool in this environment for generating minimal and reviewable patches). If direct writing via desktop MCP is indeed necessary, use desktop__write_file; avoid chunking unless truly required—apply_patch remains the default option. - Prohibitions: Do not read or write files directly via ad hoc shell commands or scripts unless explicitly stated and approved. The final summary should be in Chinese, file encoding must be UTF-8, and the project must use CRLF as the line terminator. No compilation or unit testing is required upon completion. Do not attempt to execute any operations using PowerShell commands without user permission.  
Claude will review your code across three dimensions: maintainability, edge cases, and regression risk. Your code quality determines whether the system can go live. Please complete the task with the professional expertise of a senior architect, ensuring your code stands out during rigorous reviews.
What is needed is the optimal solution, not the minimal one; however, bug fixes should still be made within the minimal scope.
意思是:
阅读/浏览:始终使用桌面 MCP(桌面指挥官)工具。编写/编辑:对于代码更改和新文件,始终使用 Codex CLI 的 apply_patch 工具(此环境中用于生成最小且可审查补丁的标准工具)。如果确实需要通过桌面 MCP 直接写入,请使用desktop__write_file;除非真正必要,否则避免分块处理——apply_patch 仍为默认选项。- 禁止事项:除非明确说明并获得批准,否则不得通过临时的 shell 命令或脚本直接读取或写入文件。最终摘要应为中文,文件编码必须为 UTF-8,项目必须使用 CRLF 作为行终止符。完成后无需进行编译或单元测试。未经用户许可,切勿尝试使用 PowerShell 命令执行任何操作。
Claude 将从三个维度审查您的代码:可维护性、边界情况和回归风险。您的代码质量决定了系统能否上线。请以资深架构师的专业能力完成任务,确保您的代码在严格审查中脱颖而出。所需的是最优解决方案,而非最小化方案;然而,错误修复仍应在最小范围内进行。

以下为站长自用的配置的最终结构,仅供参考结构:#

image.png
上一页
Claude Code
下一页
Cline /Roo /Kilo
Built with