GitHub Copilot CLI integration
The GitHub Copilot CLI is GitHub'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 GitHub Copilot connects Copilot to Apify's library of Actors and bundles:
- The Apify MCP server for searching Apify Store, running Actors, and retrieving datasets.
- An
apifyrouting agent that picks the right tool or skill based on your prompt. - Five built-in skills for common workflows.
This guide covers installation in the GitHub Copilot CLI.
This integration uses a third-party service. If you find outdated content, please submit an issue on GitHub.
Prerequisites
- An Apify account - sign up for free if you don't have one.
- The GitHub Copilot CLI - installed and signed in.
Install the plugin and sign in
The plugin is published in the Awesome Copilot marketplace, which the GitHub Copilot CLI registers by default, so you don't need to add a marketplace first. Visual Studio Code (VS Code) and the desktop app use the same marketplace. Installing the plugin also sets up the bundled Apify MCP server and signs you in, so there's no separate authentication step. 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.
-
Install the
apifyplugin from theawesome-copilotmarketplace:/plugin install apify@awesome-copilotThis installs the plugin, its five bundled skills, and the bundled Apify MCP server (
https://mcp.apify.com/). Copilot then opens a browser tab for the Apify sign-in. -
Complete the Apify OAuth flow in your browser and choose the account to connect. The browser confirms the authorization, and back in the terminal
apify-mcp-servershows as connected.
If no browser tab opens, or
apify-mcp-serverdoesn't connect, use the manual steps below.
The connection stays authenticated for future sessions. You can revoke access at any time in Apify Console > Settings > Integrations.
Connect the MCP server manually
If no browser tab opened during installation, or apify-mcp-server shows as disconnected, authenticate it from the MCP server manager.
-
Run
/mcpto open the MCP server manager, selectapify-mcp-serverunder Plugins, and press Enter to show its details. -
The detail view shows the
httptype and thehttps://mcp.apify.com/URL. Press r to authenticate. -
Copilot opens a browser tab for the Apify OAuth flow. If the browser doesn't open, copy the URL shown in the terminal and open it manually.
-
Complete the OAuth flow and choose the account to connect. Back in the terminal, Copilot confirms
Successfully authenticated with apify-mcp-server. Press Enter to continue. -
Run
/mcpagain to confirmapify-mcp-serveris connected and enabled. Use Space to enable or disable it.
Run your first prompt
Describe what you want in plain language.
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, and summarizes its inputs, pricing, and output - without running the Actor.
To check what's available, ask the agent to list its Apify tools.

Bundled skills
| Skill | Description |
|---|---|
apify-ultimate-scraper | 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:
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.
Authentication paths
The apify agent picks the right transport for each task. Each transport authenticates differently:
- For MCP tools (search, run, retrieve data), authenticate with OAuth through the browser, as described in Install the plugin and sign in. You don't need to set up a token.
- For the Apify CLI (building Actors, actorization, CLI fallback), run
apify loginonce, or setAPIFY_TOKENin headless environments. Get your token from Apify Console > Settings > Integrations. - For SDK integration with
apify-client, set theAPIFY_TOKENenvironment variable in your application's environment.
Troubleshooting
The apify plugin isn't installed
Run /plugin install apify@awesome-copilot to install the plugin from the Awesome Copilot marketplace, which the CLI registers by default. Browse the marketplace with /plugin marketplace browse awesome-copilot to confirm the apify plugin is listed.
The Apify MCP server won't authenticate
Installation normally signs you in automatically. If the browser prompt didn't appear or you skipped it, connect the server manually: run /mcp, select apify-mcp-server, and choose to authenticate, as described in Connect the MCP server manually. Read-only tools work without signing in, so run a search prompt first to confirm the server is connected.
The server is slow to connect on first start
On the first start, Copilot may report that apify-mcp-server is taking longer than expected to connect, then that it gave up waiting. The server usually finishes connecting a moment later and logs MCP server 'apify-mcp-server' connected. If it doesn't, connect it with the manual steps.
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 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 the CLI:
export APIFY_TOKEN=<YOUR_API_TOKEN>
The agent picks the wrong skill or transport
Start from the apify agent. It automatically detects the right transport and routes your request.
Limitations
- Long-running Actors may time out during a single tool call. Reduce the scope or split the work across multiple prompts.
- Each Actor run counts toward your Apify plan usage, on top of any usage your AI client bills separately. 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.
Related integrations
- VS Code integration - Install the same plugin from the VS Code plugin marketplace
- GitHub Copilot desktop app integration - Install the Apify plugin in the GitHub Copilot desktop app
- MCP server integration - Use the Apify MCP server with other clients
Resources
- Apify plugin for GitHub Copilot - Source repository and full README with advanced setup notes
- GitHub Copilot CLI documentation - Official GitHub Copilot CLI docs
- Apify Store - Browse Actors you can run from Copilot