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 connects Codex to Apify's library of Actors and bundles:
This guide covers installation in the Codex CLI. To use Codex in the ChatGPT desktop app instead, see the Codex in the ChatGPT desktop app guide.
This integration uses a third-party service. If you find outdated content, please submit an issue on GitHub.
In the Codex CLI, run the /plugins command.

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

Type the Apify plugin repository and press Enter to confirm:
apify/apify-codex-plugin
Open the Apify Plugin tab, select Apify, and press Enter to view the plugin details.

Select Install plugin and press Enter to install.

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.
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.
Review the permissions and select Allow access.
Back in the terminal, the apify MCP server is connected and ready to use in any new chat.
The connection stays authenticated for future sessions. You can revoke access at any time in Apify Console > Settings > Integrations.
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.

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

apify-ultimate-scraperapify-actor-developmentapify push.apify-actorizationapify-generate-output-schemaapify-sdk-integrationapify-client package.Example prompts that route to specific skills:
To run apify-ultimate-scraper:
Find 10 highly rated coffee shops in Seattle with name, address, rating, phone, and website.
To run apify-actor-development:
Create an Apify Actor that accepts a
startUrlandmaxPagesinput, crawls the site, and stores each page title and URL.
To run apify-sdk-integration:
Add Apify to this project. The Node.js API route should run an Actor and return dataset items as JSON.
/plugins command does not appearPlugins require a local installation of the Codex CLI with plugin support enabled. Install or update the Codex CLI locally, then run /plugins again.
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.
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 and set it before starting Codex:
export APIFY_TOKEN=<YOUR_API_TOKEN>