Skip to main content

Codex App integration

Codex is OpenAI's agentic coding tool. It 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 app.

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.

Prerequisites

Install the plugin

  1. In Codex, open the sidebar and select Plugins.

    Codex sidebar with the Plugins entry selected

  2. On the Plugins screen, select the dropdown next to + and choose Add marketplace.

    Plugins screen with the add menu open and Add marketplace available

  3. In the Add plugin marketplace dialog, enter the Apify plugin repository in the Source field:

    apify/apify-codex-plugin

    Add plugin marketplace dialog with the Apify repository in the Source field

  4. Select Add marketplace.

  5. On the Plugins screen, open the Personal tab. The Apify plugin appears under Apify Plugin.

    Plugins screen Personal tab showing the Apify plugin card

  6. Select Add next to Apify.

    Apify plugin card with the Add button and Install plugin tooltip

  7. In the dialog, select Add to Codex.

  8. Select Install Apify to start the Apify MCP server setup.

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. After you select Install Apify, Codex starts the Apify MCP server setup and opens a browser tab for the Apify OAuth flow.

  2. Review the permissions and click Allow access.

  3. Back in Codex, the apify MCP server connects and is ready to use.

Session persistence

The connection stays authenticated for future sessions. You can revoke access at any time in Apify Console > Settings > Integrations.

Run your first prompt

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, fetches the top Actor's details through the apify MCP server, and summarizes its inputs, pricing, and output - all without running the Actor.

Codex session calling the Apify MCP server and returning Google Maps Actor details

Bundled skills

SkillDescription
apify-ultimate-scraperCLI-driven extraction using existing Actors for multi-step scraping and lead-generation workflows.
apify-actor-developmentFull Actor lifecycle - template selection, development, local testing, and deployment with apify push.
apify-actorizationConverts existing JavaScript, TypeScript, Python, or CLI projects into Apify Actors.
apify-generate-output-schemaGenerates dataset and key-value store schemas for existing Actors.
apify-sdk-integrationIntegrates 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 Apify plugin does not appear in the list

Open the Plugins screen, switch to the Personal tab, and confirm the Apify marketplace was added. If the Apify plugin still doesn't appear, re-add the marketplace using the repository apify/apify-codex-plugin.

The Plugins screen does not appear

Plugins require a local installation of Codex with plugin support enabled. Install or update Codex, then reopen the Plugins screen.

Browser doesn't open, or OAuth fails

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

If you're running Codex 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>

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 for details.
  • Skills that edit files in your project (Actor development, actorization, SDK integration) make local changes - review them before deploying or committing.

Resources