Claude Code CLI is Anthropic's agentic coding tool that runs in your terminal. It reads and edits your codebase, runs commands, and completes multi-step development tasks.
The Apify plugin for Claude Code connects Claude Code to Apify's library of Actors and bundles:
apify routing agent that picks the right tool or skill from a natural-language request.This guide covers installation in the Claude Code CLI. Support for the Claude Code app is still in development.
This integration uses a third-party service. If you find outdated content, please submit an issue on GitHub.
In Claude Code, run:
/plugin install apify
Review the plugin details, choose an install scope (Install for you (user scope) is the typical choice), and press Enter.
/reload-plugins to activate the plugin in the current session.Run /plugin and open the Installed tab to confirm the apify plugin appears as enabled.
If the command can't find the plugin, see The install command can't find Apify.
The plugin bundles the Apify MCP server. Read-only tools like searching the Store and fetching Actor details work without signing in, but you need to authenticate to run Actors and access your account data.
Run /mcp to open the MCP server manager.
Find plugin:apify:apify in the list (currently disabled) and press Enter to open it.

Select Enable. Claude Code enables the server and returns you to the /mcp list.

Find plugin:apify:apify again and press Enter to reopen it, then select Authenticate. Claude Code opens a browser tab for the Apify OAuth flow.

Review the permissions and click Allow access.
The OAuth page shows a warning that the application was registered dynamically and wasn't verified by Apify. This is expected for the current plugin release - the plugin uses dynamic OAuth client registration. Make sure you trust this installation before allowing access.
Back in the terminal, you'll see Authentication successful. Connected to plugin:apify:apify.

The connection stays authenticated for future sessions. You can revoke access at any time in Apify Console > Settings > Integrations.
Describe what you want in natural language. The apify agent routes the request to the right tool or skill, so you don't need to name tools yourself.
"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."
The agent searches Apify Store, fetches the top Actor's details through plugin:apify:apify, and summarizes its 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.
If /plugin install doesn't find the plugin, add the Apify marketplace, then install from it:
/plugin marketplace add apify/apify-claude-code-plugin
/plugin install apify@apify
You can also add the marketplace through the plugin manager:
Run /plugin to open the plugin manager.
Open the Marketplaces tab and select + Add Marketplace.

Paste the Apify plugin repository URL and press Enter:
https://github.com/apify/apify-claude-code-plugin
Open the Discover tab. The apify plugin appears under Install Plugins. Press Enter to view its details.
Review the plugin details, choose an install scope (Install for you (user scope) is the typical choice), and press Enter.
/reload-plugins to activate the plugin in the current session.Open the Installed tab to confirm the apify plugin is listed as enabled.
apify plugin is disabledRun /plugin, open the Installed tab, select the apify plugin, and choose Enable plugin. If the action reads Disable plugin instead, the plugin is already enabled - the MCP server may need authentication; see Authenticate to Apify.

/plugin command isn't availablePlugins require a local installation of the Claude Code CLI. They aren't available in remote or web sessions (claude.ai/code). Install or update the Claude Code CLI locally.
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 Claude Code 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 Claude Code:
export APIFY_TOKEN=<YOUR_API_TOKEN>