Private
Public Access
1
0

更新首页与指南文档
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 33s

This commit is contained in:
2025-12-26 15:54:28 +08:00
parent d8440a1ccf
commit aea92bc1ec
6 changed files with 261 additions and 121 deletions

41
docs/guide/codex.md Normal file
View File

@@ -0,0 +1,41 @@
# Codex 配置指南
Codex 是一个强大的代码生成和补全工具。
## 快速安装与配置
使用下面的单一行命令即可自动完成安装和配置。
::: code-group
```bash [macOS / Linux]
API_KEY='你的密钥' bash -c "$(curl -fsSL https://gitea.sususu.cf/sususu/xcodecli-shells/raw/branch/main/codex/setup-codex.sh)"
```
```powershell [Windows]
$key='你的密钥'; iwr -useb https://gitea.sususu.cf/sususu/xcodecli-shells/raw/branch/main/codex/setup-codex.ps1 | iex
```
:::
> 请将命令中的 `你的密钥` 替换为你的实际 API 密钥。
## 手动配置说明
Codex 的配置文件通常位于 `~/.codex/config.toml`。
配置示例 (TOML)
```toml
[server]
url = "https://api2.xcodecli.com"
token = "sk-your-key-here"
[editor]
completion = true
```
## 注意事项
- Codex 需要支持 TOML 格式的配置文件。
- 确保你的编辑器插件已正确指向本地的 Codex 配置。