# 参考与排障

> 查找 CLI 参数、斜杠命令、快捷键、环境变量和问题定位入口。

- 网址：https://funcoding.ai/agents/codex/reference/
- 核实日期：2026-10-18（命令、配置和价格以官方文档为准）
- 官方来源：[Codex 官方文档：Developer commands](https://learn.chatgpt.com/docs/developer-commands?surface=cli)、[Codex 官方文档：Environment variables](https://learn.chatgpt.com/docs/config-file/environment-variables)

---
启动失败先检查安装和认证；运行中的行为不符合预期时，检查实际配置、权限和工作目录。以下页面提供可直接查阅的命令与配置入口。

- [CLI 命令与参数](https://funcoding.ai/agents/codex/reference/cli-reference/)：shell 中的启动与自动化选项。
- [斜杠命令](https://funcoding.ai/agents/codex/reference/commands/)：会话内的控制菜单。
- [快捷键](https://funcoding.ai/agents/codex/reference/keyboard-shortcuts/)：文件引用、输入历史、任务排队和复制。
- [环境变量](https://funcoding.ai/agents/codex/reference/environment-variables/)：公开的目录、安装、认证与日志变量。
- [常见问题](https://funcoding.ai/agents/codex/reference/troubleshooting/)：项目环境、版本与其他排障。

`/status` 用于确认会话状态，`/debug-config` 用于定位覆盖和托管 requirements，`codex doctor` 可生成本地诊断报告。分享诊断前先检查其中是否含敏感的项目和账号上下文。

- [Hooks 事件与载荷](https://funcoding.ai/agents/codex/reference/hooks/)：工具事件、会话事件、MCP handler 与异步执行。

- [沙箱诊断](https://funcoding.ai/agents/codex/reference/sandbox-diagnostics/)：平台复现和文件/网络拒绝。
- [日志与问题报告](https://funcoding.ai/agents/codex/reference/logs/)：收集诊断、定位卡住与版本差异。
- [配置键分组速查](https://funcoding.ai/agents/codex/reference/configuration/)：按用途找到配置与完整 schema。
