# 日常使用

> 从 CLI 交互到会话、评审、图片与网络上下文，再进入脚本自动化。

- 网址：https://funcoding.ai/agents/codex/usage/
- 核实日期：2026-10-07（命令、配置和价格以官方文档为准）
- 官方来源：[Codex 官方文档：Codex CLI](https://learn.chatgpt.com/docs/codex/cli)

---
先掌握一轮可检查的编码任务，再把重复工作放进脚本。交互操作和后台运行有不同的输入、输出与状态管理方式。

- [CLI 交互](https://funcoding.ai/agents/codex/usage/interactive-mode/)：引用文件、引导当前任务或排队下一步。
- [会话管理](https://funcoding.ai/agents/codex/usage/sessions/)：恢复、分叉、归档和删除。
- [代码评审](https://funcoding.ai/agents/codex/usage/code-review/)：选择 diff 范围，阅读发现后决定是否修复。
- [图片上下文](https://funcoding.ai/agents/codex/usage/image-inputs/)：附加截图与设计参考。
- [网络搜索](https://funcoding.ai/agents/codex/usage/web-search/)：选择搜索模式，理解它与命令联网的区别。
- [非交互模式](https://funcoding.ai/agents/codex/usage/non-interactive/)：在脚本和 CI 中运行 `codex exec`，消费 JSONL 或结构化结果。
- [GitHub Action 与 SDK](https://funcoding.ai/agents/codex/usage/automation/)：现有自动化概览和示例。
- [Windows 与 WSL](https://funcoding.ai/agents/codex/usage/windows/)：选择原生 Windows 或 WSL 工作环境。

需要查具体操作，见[CLI 参数](https://funcoding.ai/agents/codex/reference/cli-reference/)、[斜杠命令](https://funcoding.ai/agents/codex/reference/commands/)和[快捷键](https://funcoding.ai/agents/codex/reference/keyboard-shortcuts/)。

## 持续工作与复用

- [Goal 模式](https://funcoding.ai/agents/codex/usage/goals/)：设定可验证结果并持续推进。
- [定时任务](https://funcoding.ai/agents/codex/usage/scheduled-tasks/)：同聊天跟进或独立运行。
- [Fast 与速度](https://funcoding.ai/agents/codex/usage/speed/)：区分响应速度和用量倍率。
- [Memories](https://funcoding.ai/agents/codex/usage/memories/)：本地记忆生成、使用和删除。
- [Codex Security](https://funcoding.ai/agents/codex/usage/security/)：本地插件、CLI/SDK 和 Cloud 扫描。
