---
title: Codex CLI integration
url: https://docs.apify.com/integrations/codex-cli.md
parents:
  - [Apify documentation](https://docs.apify.com/llms.txt)
  - [Integrations](https://docs.apify.com/integrations.md)
  - [AI](https://docs.apify.com/integrations/ai.md)
  - [Codex](https://docs.apify.com/integrations/codex.md)
previous: [Codex App](https://docs.apify.com/integrations/codex-app.md)
next: [CrewAI](https://docs.apify.com/integrations/crewai.md)
---

# Codex CLI integration

[Codex](https://developers.openai.com/codex/) is OpenAI's agentic coding tool. The Codex CLI runs in your terminal, reads and edits your codebase, runs commands, and completes multi-step development tasks.

The [Apify plugin for Codex](https://github.com/apify/apify-codex-plugin) connects Codex to Apify's library of [Actors](https://apify.com/store) and bundles:

* The [Apify MCP server](https://docs.apify.com/integrations/mcp.md) for searching Apify Store, running Actors, and retrieving datasets through the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro).
* Five built-in skills for common workflows (see Bundled skills below).

This guide covers installation in the Codex CLI.

Help keep this page up to date

This integration uses a third-party service. If you find outdated content, please [submit an issue on GitHub](https://github.com/apify/apify-docs/issues).

## Prerequisites

* [An Apify account](https://console.apify.com/sign-up) - sign up for free if you don't have one.
* [Codex CLI](https://developers.openai.com/codex/) - installed and authenticated locally.

## Install the plugin

1. In the Codex CLI, run the `/plugins` command.

   ![Codex CLI prompt with the /plugins command typed in](/assets/images/00-plugins-command-30dc5b703c5a858060c728348f1f83a9.webp)

2. Use the arrow keys to select the **Add Marketplace** tab, then press Enter.

   ![Codex CLI plugins menu with the Add Marketplace tab selected](/assets/images/01-add-marketplace-tab-91e9487d11adde946043d10f38e4d416.webp)

3. Type the Apify plugin repository and press Enter to confirm:


   ```text
   apify/apify-codex-plugin
   ```


   ![Codex CLI add marketplace prompt with the Apify repository entered](data:image/webp;base64,UklGRoQdAABXRUJQVlA4IHgdAADQcwCdASr+AaAAPm0ylkgkIqIhI7DrSIANiWdu4XHhEZ3do5xP2HnK9H9/O07Xfnzz2ehTbI+YD9c/VJ/6H7O+7T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xP0kTRD5pUFM7tPgXzzY5TPxzlVrRHi4taQhC0SwTj905SJUp+Si8gRMMeakzLXnVzcGHiUOYsuTt/gPMBl2jIOvg6XTHfc6EoeMRp/0z8s3GjYgOnkE2f03RFmo9pVgApOiQmtse5RjVI/4iGbblOZlI0NOv4VC9vhuKYXfDISqRVWksZEwUOAP4YmeYAXyeUa6CGyZZzoZIUIEJ+vVT1ZfvaWqeJugst/6lQPbpqt4NPfYAAAAAA==)

4. Open the **Apify Plugin** tab, select **Apify**, and press Enter to view the plugin details.

   ![Codex CLI plugins menu showing the Apify plugin as available](/assets/images/03-plugin-detail-f0c85bf1aab97f9e010d3e6edf7d504b.webp)

5. Select **Install plugin** and press Enter to install.

   ![Codex CLI Apify plugin detail with the Install plugin option selected](/assets/images/04-plugin-install-a637f8f02f49be4a938a922aeea6697e.webp)

## Authenticate to Apify

The plugin bundles the Apify MCP server. Read-only tools like searching Apify Store and fetching Actor details work without signing in, but you need to authenticate to run Actors and access your account data.

1. The first time Codex calls a tool that requires authentication, such as running an Actor, it opens a browser tab for the Apify OAuth flow.

2. Review the permissions and click **Allow access**.

3. Back in the terminal, the `apify` MCP server is connected and ready to use in any new chat.

Session persistence

The connection stays authenticated for future sessions. You can revoke access at any time in [Apify Console > Settings > Integrations](https://console.apify.com/settings/integrations).

## Run your first prompt

In any new Codex CLI chat, describe what you want in natural language. Because this bundle exposes the MCP tools and skills directly, be explicit about the workflow you want.

> Use Apify to find a good Actor for scraping Google Maps places. Show me the best option, its input requirements, pricing model, and what kind of dataset output it returns. Do not run the Actor yet.

Codex searches Apify Store and fetches the top Actor's details through the `apify` MCP server.

![Codex CLI calling the Apify MCP server search-actors tool](/assets/images/05-test-prompt-input-813f403edb6b51ab187c7f1330ace9f5.webp)

It then summarizes the Actor's inputs, pricing, and output - all without running the Actor.

![Codex CLI response summarizing the Google Maps Actor inputs and pricing](/assets/images/06-test-prompt-output-f387e65ead30f71ee76a02d5498c3f95.webp)

## Bundled skills

| Skill                          | Description                                                                                              |
| ------------------------------ | -------------------------------------------------------------------------------------------------------- |
| `apify-ultimate-scraper`       | CLI-driven extraction using existing Actors for multi-step scraping and lead-generation workflows.       |
| `apify-actor-development`      | Full Actor lifecycle - template selection, development, local testing, and deployment with `apify push`. |
| `apify-actorization`           | Converts existing JavaScript, TypeScript, Python, or CLI projects into Apify Actors.                     |
| `apify-generate-output-schema` | Generates dataset and key-value store schemas for existing Actors.                                       |
| `apify-sdk-integration`        | Integrates Actor execution into applications using the `apify-client` package.                           |

Example prompts that route to specific skills:

*Ultimate scraper:*

> Find 10 highly rated coffee shops in Seattle with name, address, rating, phone, and website.

*Actor development:*

> Create an Apify Actor that accepts a `startUrl` and `maxPages` input, crawls the site, and stores each page title and URL.

*SDK integration:*

> Add Apify to this project. The Node.js API route should run an Actor and return dataset items as JSON.

## Troubleshooting

### The `/plugins` command does not appear

Plugins require a local installation of the Codex CLI with plugin support enabled. Install or update the Codex CLI locally, then run `/plugins` again.

### The Apify plugin does not appear in the list

Reopen `/plugins`, move to the **Apify Plugin** tab, and confirm the marketplace was added. If the **Apify** plugin still doesn't appear, re-add the marketplace using the repository `apify/apify-codex-plugin`.

### Browser doesn't open, or OAuth fails

If the browser doesn't open automatically, copy the OAuth URL shown in the terminal and paste it into your browser manually.

If you're running the Codex CLI in a headless environment (SSH, remote container) or the OAuth flow still fails, authenticate with an API token instead. Copy your token from [Apify Console > Settings > Integrations](https://console.apify.com/settings/integrations) and set it before starting Codex:


```bash
export APIFY_TOKEN=<YOUR_API_TOKEN>
```


## Limitations

* Long-running Actors may exceed the time a single tool call waits for completion. Reduce the scope or split the work across multiple prompts.
* Each Actor run consumes Apify platform usage from your plan in addition to any Codex usage. See [Billing](https://docs.apify.com/account/billing.md) for details.
* Skills that edit files in your project (Actor development, actorization, SDK integration) make local changes - review them before deploying or committing.

## Related integrations

* [MCP server integration](https://docs.apify.com/integrations/mcp.md) - Use the Apify MCP server with other clients
* [ChatGPT integration](https://docs.apify.com/integrations/chatgpt.md) - Connect the Apify MCP server to ChatGPT

## Resources

* [Apify plugin for Codex](https://github.com/apify/apify-codex-plugin) - Source repository and full README with advanced setup notes (Apify CLI install, all auth paths, available MCP tools)
* [Codex documentation](https://developers.openai.com/codex/) - Official Codex docs
* [Apify Store](https://apify.com/store) - Browse Actors you can run from Codex
