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

# Codex CLI by OpenAI

> Setup and usage guide for Codex CLI with DevBird

<Note>
  This guide covers connecting Codex CLI to your repository. To set up DevBird
  itself, please refer to the [DevBird setup
  guide](/devbird/getting-started/prerequisites).
</Note>

Codex CLI is OpenAI's AI coding assistant. When integrated with DevBird, it can automate code generation, bug fixes, refactoring, and more through natural language commands.

## Prerequisites

Before you begin, ensure you have:

* An OpenAI account
* Repository access where you want to use DevBird

## Setup Process

### Step 1: Generate OpenAI API Key

1. Go to the [OpenAI API keys page](https://platform.openai.com/api-keys)
2. Click **Create new secret key**
3. Give your key a descriptive name (e.g., "DevBird")
4. Copy the generated API key (you won't be able to see it again)

### Step 2: Add API Key to GitHub Repository

1. Navigate to your repository on GitHub
2. Go to **Settings** > **Secrets and variables** > **Actions**
3. Click **New repository secret**
4. Set the name to `OPENAI_API_KEY`
5. Paste your OpenAI API key in the value field
6. Click **Add secret**

## Next Steps

* [Create your first PR](/devbird/getting-started/first-pr)
* [Unit Task Guide](/devbird/tasks/unit)
* [Composite Task Guide](/devbird/tasks/composite)
