--- layout: home hero: name: XCodeCLI text: AI CLI 配置工具 tagline: 一键配置 Claude Code / Gemini CLI / Codex 连接到 XCodeCLI API actions: - theme: brand text: 快速开始 link: /guide/ features: - icon: 🚀 title: 一键配置 details: 运行一条命令,自动检测 API 端点并写入配置文件 - icon: 🔧 title: 跨平台支持 details: 支持 macOS、Linux、Windows,提供 Bash 和 PowerShell 脚本 - icon: 🔒 title: 安全备份 details: 自动备份现有配置,支持回滚 ---

⚡ 一键安装配置

运行一条命令,自动安装并配置 Claude Code、Gemini CLI、Codex

{{ commands[activeTab] }}

💡 提示:将命令中的 你的密钥 替换为你的实际 API 密钥

## 支持的工具 | 工具 | 配置位置 | 配置格式 | | ----------- | ------------------------- | -------- | | Claude Code | `~/.claude/settings.json` | JSON | | Gemini CLI | `~/.gemini/.env` | ENV | | Codex | `~/.codex/config.toml` | TOML | ## API 端点 脚本会自动测试以下端点,选择第一个可用的: - `https://api2.xcodecli.com` (主要) - `https://api.xcodecli.com` (备用)