> ## Documentation Index
> Fetch the complete documentation index at: https://docs.axuremart.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex 使用教程

> 在编辑器、终端和 ChatGPT 桌面端中使用 Codex

## 1、编辑器（VSCode / Trae / Cursor）中使用

### 方式一：可视化聊天插件使用（推荐）

1. 确保 codex 插件已安装
2. 点击图标启动

<Frame>
  <img src="https://mintcdn.com/agent-pm/oHetu81dZtjYE4sA/images/img-25.png?fit=max&auto=format&n=oHetu81dZtjYE4sA&q=85&s=3d8280e9ec078e078fb5c7673f3bfd25" alt="启动 codex 插件" width="1476" height="936" data-path="images/img-25.png" />
</Frame>

### 方式二：终端使用

1. 打开终端：编辑器顶部菜单「终端」→「新建终端」
2. 输入启动命令

```bash theme={null}
codex
```

## 2、ChatGPT 桌面端中使用

1. 确保完成[模型配置](/gpt/config)
2. 打开桌面端，发一条消息测试是否回复。正常回复则配置完毕，无法回复请检查[模型配置](/gpt/config)

<Frame>
  <img src="https://mintcdn.com/agent-pm/oHetu81dZtjYE4sA/images/img-26.png?fit=max&auto=format&n=oHetu81dZtjYE4sA&q=85&s=c06e80ac4b65045b52710706cf7214e3" alt="桌面端测试" width="1126" height="796" data-path="images/img-26.png" />
</Frame>

## 3、image-2 模型生图使用

1. 不需要独立配置 image-2 模型
2. 在 codex 中直接输入：使用 image-2 模型做图

<Frame>
  <img src="https://mintcdn.com/agent-pm/oHetu81dZtjYE4sA/images/img-27.png?fit=max&auto=format&n=oHetu81dZtjYE4sA&q=85&s=4df1eb8a6c4062735347645a77670ce5" alt="image-2 生图" width="1126" height="796" data-path="images/img-27.png" />
</Frame>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.