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

# Codex

> Use your OpenAI Codex subscription with Zo

[Codex](https://github.com/openai/codex) is OpenAI's agentic coding tool, included with [Plus and Pro plans](https://chatgpt.com/pricing). If you have a subscription, you can use it as an AI provider instead of Zo's built-in credits.

## Setup

1. Open the terminal on your Zo and run `codex` to start the login flow

2. Select **Sign in with Device Code**

<Frame>
  <img src="https://mintcdn.com/zocomputer/Qig_9ZmPKgldzZkA/screenshots/codex-select-device-code.png?fit=max&auto=format&n=Qig_9ZmPKgldzZkA&q=85&s=4c44fdf9eb725f5f1ad5b2e04f26ac2b" alt="Codex sign-in screen with Device Code option selected" width="896" height="687" data-path="screenshots/codex-select-device-code.png" />
</Frame>

3. You may need to enable device code authorization first in your ChatGPT account. Go to [**Settings > Security**](https://chatgpt.com/#settings/Security) and toggle on **Enable device code authorization for Codex**.

<Frame>
  <img src="https://mintcdn.com/zocomputer/Qig_9ZmPKgldzZkA/screenshots/codex-enable-device-code.png?fit=max&auto=format&n=Qig_9ZmPKgldzZkA&q=85&s=b5e6d315550d56f767344a334b6e5ff9" alt="ChatGPT security settings showing the device code toggle" width="896" height="687" data-path="screenshots/codex-enable-device-code.png" />
</Frame>

4. Codex will display a URL and a one-time code. Open the URL in your browser and enter the code to complete authentication.

<Frame>
  <img src="https://mintcdn.com/zocomputer/Qig_9ZmPKgldzZkA/screenshots/codex-device-code-screen.png?fit=max&auto=format&n=Qig_9ZmPKgldzZkA&q=85&s=942f8e8bb2c46e30294053a5e75001b5" alt="Codex terminal showing the device code and URL" width="896" height="687" data-path="screenshots/codex-device-code-screen.png" />
</Frame>

5. Go to **Settings > AI Providers** and enable **Codex**

6. Select your preferred model

<Frame>
  <img src="https://mintcdn.com/zocomputer/txDSDA5mR0dDEDhk/screenshots/codex-settings.png?fit=max&auto=format&n=txDSDA5mR0dDEDhk&q=85&s=4f962e6081846684749b7df4cef50d3e" alt="Codex settings in Zo" width="1523" height="834" data-path="screenshots/codex-settings.png" />
</Frame>

7. Select "Codex" from the model picker in chat and you're set
