apify-routing

apify-routing is a cursor rule for Cursor from apify/apify-cursor-plugin. It costs 80 tokens per session (936 once invoked), scanned A, original, Apache-2.0.

A routing rule for Apify, a platform for running web-scraping and browser-automation programs called Actors. It sends Apify-related requests to the Apify subagent, which chooses the appropriate Apify capability.

In plain words
What is it for?
Use it for requests involving Apify Actors, the Apify Store, web scraping, browser automation, the Apify SDK or CLI, Apify packages, or Apify websites.
Why use it?
It avoids choosing between similar Apify tools or packages incorrectly. The same routing applies to quick questions and direct tool calls.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions subagents.

Good fit Use it for requests involving Apify Actors, the Apify Store, web scraping, browser automation, the Apify SDK or CLI, Apify packages, or Apify websites.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/apify/apify-cursor-plugin/apify-routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/apify/apify-cursor-plugin

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apify-routing

README.md
[![agentmods](https://agentmods.dev/badge/rules/apify/apify-cursor-plugin/apify-routing/github.svg)](https://agentmods.dev/rules/apify/apify-cursor-plugin/apify-routing)
Your own site
<a href="https://agentmods.dev/rules/apify/apify-cursor-plugin/apify-routing"><img src="https://agentmods.dev/badge/rules/apify/apify-cursor-plugin/apify-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for apify-routing

Your own site · 80×15
<a href="https://agentmods.dev/rules/apify/apify-cursor-plugin/apify-routing"><img src="https://agentmods.dev/badge/rules/apify/apify-cursor-plugin/apify-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.00936
Opus 5.5 $0.00032 $0.00374
Sonnet 5.5 $0.00016 $0.00187
Haiku 4.5 $0.00008 $0.00094

Measured 1mo ago against content hash 3ede06a11622, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

apify-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

apify/rules/apify-routing.mdc · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Apify Routing

Cursor exposes Apify skills (apify-actor-development, apify-actorization, apify-generate-output-schema, apify-sdk-integration, apify-ultimate-scraper) directly in the slash menu. They are internal capabilities owned by the apify subagent and must not be invoked on their own.

Required Behavior

When the user's request involves Apify — Actors, web scraping, browser automation, the Apify Store, the Apify SDK, the Apify CLI, the apify or apify-client npm packages, or anything at apify.com / console.apify.com — invoke the apify subagent first. Let it consult its routing matrix and dispatch to the correct skill or MCP tool.

Do not:

  • Call any apify-* skill directly from the slash menu without going through the apify subagent.
  • Guess between apify-actor-development vs apify-actorization vs apify-sdk-integration yourself — the subagent owns that decision (the apify SDK package and the apify-client package are easy to confuse and picking wrong breaks the user's project).
  • Skip the subagent for "quick" Apify questions. Even direct Apify MCP tool calls are routed through the subagent.

If the user types a slash command for an Apify skill explicitly, still hand off to the apify subagent so the routing matrix and authentication guidance are applied.

Why this rule exists

Apify exposes three very different products through its plugin: (1) using existing Actors via MCP, (2) building and deploying custom Actors with the SDK + CLI, and (3) calling Actors from an existing application via apify-client. Each path requires a different skill, a different authentication flow, and a different npm package. The apify subagent is the only place where the routing matrix and the package-naming trap are documented, so every Apify request must pass through it.

Apify CLI instructions:

Rule: pass --user-agent apify-cursor-plugin/apify-routing only on actor start and actor run commands (apify actors start, apify actors call). Do not add it to login, info, or other CLI commands.

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines 3ede06a11622
  2. 2mo ago First seen · 50 lines · 80 tokens per session scan A f37ac965e6df

Subscribe to this mod's changes

apify-routing is a cursor rule published in the GitHub repository apify/apify-cursor-plugin (9 stars, last pushed yesterday), licensed Apache-2.0. It adds 80 tokens to every session and 936 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other cursor rules, from other repositories