apify-cli: Instructions file for Claude Code

CLAUDE.md

apify-cli CLAUDE.md is an instructions file for Claude Code from apify/apify-cli. It costs 763 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Apify's command-line tool, which lets developers run and manage Apify programs from a terminal. They cover command entry points, coding conventions, required checks, and documentation updates.

In plain words
What is it for?
Use it when adding or modifying CLI commands, registering commands, changing flags or arguments, building the project, or running its local and API tests.
Why use it?
They make the project's build and release expectations explicit, including its required package manager and the checks to run before pushing code. They also prevent command changes from leaving the generated documentation outdated.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is apify/apify-cli's own configuration. It tells Claude Code how to work on apify-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything apify-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to apify/apify-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/apify/apify-cli/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/apify/apify-cli

Made for: Claude Code.

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-cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apify/apify-cli/claude-md/github.svg)](https://agentmods.dev/instructions/apify/apify-cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/apify/apify-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/apify/apify-cli/claude-md/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-cli CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/apify/apify-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/apify/apify-cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 763 This file is loaded in full into every session.
When invoked 763 The same file — it is already loaded in full.
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.00763 $0.00763
Opus 5.5 $0.00305 $0.00305
Sonnet 5.5 $0.00153 $0.00153
Haiku 4.5 $0.00076 $0.00076

Measured 16d ago against content hash c513ed88bdfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

apify-cli CLAUDE.md 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 16d 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.

CLAUDE.md · 48 lines

How it starts

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

CLAUDE.md

Guidance for Claude Code working in this repository. Humans should read README.md and CONTRIBUTING.md first.

Entry points

  • apify CLI — src/entrypoints/apify.ts
  • actor CLI — src/entrypoints/actor.ts

Before you push

Run pnpm run lint && pnpm run format && pnpm run build && pnpm run test:local before pushing. Run pnpm run test:api too if you changed anything that touches the Apify API.

If you modified a command's flags, args, description, or added/removed a command, also run pnpm run update-docs and commit the regenerated docs/ output.

Code conventions

  • Package manager: pnpm 10 (via Corepack). Do not use npm or yarn.
  • Use .js import specifiers for local files (e.g. import { foo } from './foo.js'). The .ts source resolves at build time.
  • Commands extend ApifyCommand from src/lib/command-framework/apify-command.ts. Follow the pattern of existing commands: static override name, static override description, static override flags/args, and an async run() method.
  • New commands must be registered in src/commands/_register.ts (or the parent _index.ts for subcommands).
  • Do not add docstrings, comments, or type annotations to code you did not change. Keep diffs tight.
  • Use contractions in command, flag, and arg descriptions, and in docs text: "doesn't", "can't", "aren't", not "does not", "cannot", "are not". docs/ is generated from these strings, so fix the source.

Install size

The CLI is installed globally by many users and in Actors, so keep the npm install footprint lean. Always look for opportunities to shrink it:

  • Prefer Node.js built-ins over dependencies, and prefer dependencies already in the tree over new ones.
  • Before adding a dependency, check what it drags in: npm install <pkg> in an empty temp dir, then du -sh node_modules. Mention the install-size impact in the PR description.
  • When touching code that uses a dependency, check whether the dependency is still pulling its weight — a single small helper from a large package is a candidate for replacement or removal.
  • To measure the CLI's own footprint, run node scripts/report-install-size.mjs — it packs the current tree and compares tarball, unpacked, and full-install sizes against the latest published version. The release workflows run it and embed the report in the GitHub release notes.

Read the full file on GitHub · 48 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. 16d ago Changed · +1 lines · +55 tokens per session c513ed88bdfc
  2. 2mo ago First seen · 47 lines · 708 tokens per session scan A f44548488921

Subscribe to this mod's changes

apify-cli CLAUDE.md is an instructions file published in the GitHub repository apify/apify-cli (264 stars, last pushed today), licensed Apache-2.0. It adds 763 tokens to every session, about $0.0031 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-30.

Related

apify-cli CLAUDE.md compared with instructions from other repositories

apify-cli CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
apify-cli CLAUDE.mdapify/apify-cliInstructions file264todayApache-2.0A763Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode