The official Apify plugin for Codex connects Codex to Apify's library of Actors. It bundles:
- The Apify MCP server for searching the Store, running Actors, retrieving datasets, and reading Apify documentation.
- Five built-in skills for common Apify workflows.
Apify is a platform of thousands of serverless cloud programs called Actors for web scraping, browser automation, and data extraction. Learn more at apify.com.
This guide covers installation in both the Codex app and Codex CLI.
- An Apify account - sign up for free if you don't have one.
- Codex - install the Codex app or Codex CLI with plugin support enabled.
- Network access to
https://mcp.apify.comfor MCP-backed workflows.
-
In Codex, open the left sidebar and select Plugins.
-
On the Plugins screen, select the dropdown next to + and choose Add marketplace.
-
In the Add plugin marketplace dialog, enter the Apify plugin repository in the Source field:
apify/apify-codex-plugin -
Select Add marketplace.
-
On the Plugins screen, open the Personal tab. The Apify plugin appears under Apify Plugin.
-
Select Add next to Apify.
-
In the dialog, select Add to Codex.
-
Select Install Apify to start the Apify MCP server setup.
-
In the Codex CLI, run the
/pluginscommand. -
Use the arrow keys to move right to the Add Marketplace tab, then press Enter.
-
Type the Apify plugin repository and press Enter:
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.
The plugin bundles the Apify MCP server. Read-only tools such as searching the Store and fetching Actor details work without signing in. Authentication is required to run Actors and access your account data.
- After you select Install Apify, Codex starts the Apify MCP server setup and opens a browser tab for the Apify OAuth flow.
- Review the permissions and select Allow access.
- Return to Codex. The
apifyMCP server is connected and ready to use.
- 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.
- Return to the terminal. The
apifyMCP 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.
The apify-actor-development, apify-actorization, and apify-ultimate-scraper skills use the local Apify CLI. Install and authenticate it before using these workflows:
npm install -g apify-cli
apify loginThe apify-sdk-integration skill and headless CLI workflows use an APIFY_TOKEN. Generate one in Apify Console, then export it before starting Codex:
export APIFY_TOKEN="apify_api_xxxxxxxxxxxx"In a Codex app or Codex CLI chat, describe what you want in natural language. Because the plugin exposes its MCP tools and skills directly, be explicit about the workflow:
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, fetches the top Actor's details through the apify MCP server, and summarizes its inputs, pricing, and output without running the Actor.
| 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
startUrlandmaxPagesinput, 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.
Plugins require a local Codex installation with plugin support enabled. Install or update Codex, then reopen the Plugins screen or run /plugins again.
Confirm that the Apify marketplace was added. In the Codex app, check the Personal tab. In the Codex CLI, check the Apify Plugin tab. If the plugin still does not appear, re-add the marketplace using apify/apify-codex-plugin.
Copy the OAuth URL shown by Codex and open it manually. In a headless environment such as SSH or a remote container, copy your token from Apify Console and set it before starting Codex:
export APIFY_TOKEN=<YOUR_API_TOKEN>Install it with npm install -g apify-cli before using apify-actor-development, apify-actorization, or apify-ultimate-scraper.
Describe the workflow more explicitly: use an existing Actor, build an Actor, actorize a project, generate output schemas, or integrate Apify into an application.
- 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.
- Skills that edit project files make local changes. Review them before deploying or committing.
Apache-2.0.