> ## 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 桌面端

## 1、编辑器（VSCode / Trae / Cursor）终端安装

1. 打开编辑器
2. 点击顶部菜单「终端」→「新建终端」
3. 终端窗口会在 VSCode 底部打开
4. 输入以下命令

```bash theme={null}
npm install -g @openai/codex
```

<Frame>
  <img src="https://mintcdn.com/agent-pm/oHetu81dZtjYE4sA/images/img-15.png?fit=max&auto=format&n=oHetu81dZtjYE4sA&q=85&s=6d004e1ed7fdc98103a8407c89d95f82" alt="终端安装 Codex" width="1949" height="843" data-path="images/img-15.png" />
</Frame>

5. 苹果电脑如果遇到权限错误（提示 `errno: -13`），请使用以下命令：

```bash theme={null}
sudo npm install -g @openai/codex
```

## 2、编辑器（VSCode / Trae / Cursor）可视化插件安装

1. 打开编辑器
2. 找到插件市场
3. 搜索 codex 插件并安装

<Frame>
  <img src="https://mintcdn.com/agent-pm/oHetu81dZtjYE4sA/images/img-16.png?fit=max&auto=format&n=oHetu81dZtjYE4sA&q=85&s=fa415540f854d961b9ebf764f2e7acff" alt="安装 codex 插件" width="927" height="468" data-path="images/img-16.png" />
</Frame>

## 3、ChatGPT 桌面端下载

1. 打开 GPT 官网：[https://chatgpt.com/codex](https://chatgpt.com/codex)
2. 下载并安装

<Frame>
  <img src="https://mintcdn.com/agent-pm/oHetu81dZtjYE4sA/images/img-17.png?fit=max&auto=format&n=oHetu81dZtjYE4sA&q=85&s=c8e05bd9b0b4535e6ec9826af96a925f" alt="下载桌面端" width="1690" height="792" data-path="images/img-17.png" />
</Frame>


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