OpenClaw is an open-source AI agent orchestration platform that enables you to build, deploy, and manage autonomous AI agents. The Apify plugin for OpenClaw gives your agents access to thousands of pre-built Actors for web scraping, data extraction, and automation through a single apify tool.
For more details about OpenClaw, refer to the official documentation.
This integration uses a third-party service. If you find outdated content, please submit an issue on GitHub.
Install the plugin, run the setup wizard, and restart the gateway:
openclaw plugins install @apify/apify-openclaw-plugin
openclaw apify setup
openclaw gateway restart
Watch a quick demo of the Apify plugin for OpenClaw:
Before integrating Apify with OpenClaw, you'll need:
Setting up the plugin involves three steps:
Use the OpenClaw CLI to install the Apify plugin from the plugin registry:
openclaw plugins install @apify/apify-openclaw-plugin
This downloads the plugin and registers it with your OpenClaw installation.
Run the setup wizard to configure your API key:
openclaw apify setup
The wizard prompts you for your Apify API token, verifies the connection, and writes the configuration to your OpenClaw config file. You can find your token in the API & Integrations section of Apify Console.
After setup, restart the gateway to load the plugin:
openclaw gateway restart
If you prefer to skip the wizard, add the plugin configuration directly to your ~/.openclaw/config.json:
{
"plugins": {
"entries": {
"apify": {
"enabled": true,
"config": {
"apiKey": "apify_api_..."
}
}
}
},
"tools": {
"alsoAllow": ["apify"]
}
}
Then restart the gateway:
openclaw gateway restart
The apify tool must be listed in tools.alsoAllow in your config, or you can use "group:plugins" to allow all plugin tools. Without this, the tool won't be available to your agents.
Check your configuration:
openclaw apify status
The plugin registers a single apify tool with three actions:
discoverstartrunId backcollectThe tool uses an asynchronous workflow. Your agent starts an Actor run and gets a runId immediately, then collects results later when the run completes. This lets agents do other work while Actors are running.
discover (search) -> discover (schema) -> start -> collect
Most Actors accept arrays in their input (for example, startUrls, queries, usernames). As a best practice, batch multiple targets into a single run - one run with 5 URLs is cheaper and faster than 5 separate runs.
Once the plugin is set up, your OpenClaw agents can:
Actor execution time varies depending on the task complexity. Check Actor run status in Apify Console if a run takes longer than expected.
apiKeyAPIFY_API_KEY env varbaseUrlhttps://api.apify.commaxResults20enabledTools[] (all enabled)openclaw apify status. You can find your token in the API & Integrations section of Apify Console.APIFY_API_KEY environment variable instead."apify" is in the tools.alsoAllow array in your OpenClaw config, or use "group:plugins" to allow all plugin tools.openclaw gateway restart.action: "discover" with the actorId to check what input parameters the Actor expects.If you encounter a bug or have a feature request, open an issue on the plugin's GitHub repository.