Borrowing it
Nothing to install: this file belongs to kychee-com/run402. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/kychee-com/run402/main/AGENTS.mdgit clone --depth 1 https://github.com/kychee-com/run402Wrote 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.
[](https://agentmods.dev/instructions/kychee-com/run402/agents-md)<a href="https://agentmods.dev/instructions/kychee-com/run402/agents-md"><img src="https://agentmods.dev/badge/instructions/kychee-com/run402/agents-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.
<a href="https://agentmods.dev/instructions/kychee-com/run402/agents-md"><img src="https://agentmods.dev/badge/instructions/kychee-com/run402/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.22179 | $0.22179 |
| Opus 5.5 | $0.08872 | $0.08872 |
| Sonnet 5.5 | $0.04436 | $0.04436 |
| Haiku 4.5 | $0.02218 | $0.02218 |
Grade A, and why
run402 AGENTS.md scanned grade A with 1 finding 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 11d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **auth-aware SSR.** Browser sessions are opaque server-side handles backed by `internal.sessions` — `__Host-Http-r402_session=v1.<session_id>.<secret>` cookie carries no client-readable identity; the gateway resolves i How it starts
The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file is the single source of truth for AI coding agents working in this repository (Claude Code, Codex, Cursor, Grok, Cline, OpenClaw, etc.). CLAUDE.md imports it via @AGENTS.md.
Updating docs? See
documentation.md— the map of every doc surface, with target audience, content summary, and update triggers. Scan it before merging code changes.
Documentation policy
Use CLI by default in general operating examples. Use SDK examples in typed scripting/reference guides, MCP calls in MCP references, HTTP in protocol references, and native code in application-runtime guides. Root SKILL.md and openclaw/SKILL.md share the CLI-first body; MCP-native onboarding lives in the MCP reference. Describe the HTTP API foundation, the typed and opinionated SDK workflow layer, and thin CLI/MCP adapters. Edit authoring sources and regenerate flat docs/discovery artifacts. Never turn a missing CLI capability into an invented command.
What This Is
run402 is a developer platform that ships Postgres databases, content-addressed CDN storage, static site hosting, Node 22 serverless functions, email, image generation, and KMS-backed Ethereum signing — provisioned by AI agents and paid for autonomously via x402 USDC on Base, MPP pathUSD on Tempo, or the organization's card-funded allowance. Prototype tier is free on testnet.
This monorepo ships six interfaces:
- SDK (
sdk/) — typed TypeScript client for the run402 API. Used by external integrators and by MCP/CLI/OpenClaw. Published as@run402/sdkon npm. Two entry points: root (isomorphic — works in Node 22, Deno, Bun, V8 isolates) and/node(zero-config Node defaults — keystore + wallet + x402). - MCP server (root
src/) — published asrun402-mcpon npm. Exactly eight tools:upanddeploy(the first deploy),status,whoami,doctor,docs,run, andexpand_result. Every other operation is arunsnippet: TypeScript executed against the Node SDK in a QuickJS-in-WebAssembly sandbox. Read by Claude Desktop / Cursor / Cline / Claude Code. - CLI (
cli/) — standalone CLI published asrun402on npm. Each subcommand is a thin shim over an SDK call; argv parsing and JSON output stay at the CLI edge. - Functions library — in-function helper imported inside deployed serverless functions. Exposes
auth.*(the canonical auth namespace —auth.user,requireUser,requireRole,requireMembership,requireFresh,fetch,csrfToken/csrfField,sessions.*,identities.link),db(req?),adminDb(),email,ai, andassets. Published as@run402/functionson npm. Source lives in the publicrun402-corerepo underpackages/functions; Run402 Cloud consumes the published npm package when it bundles deployed functions. Distinct from the SDK: this is the request-scoped, in-function shape; the SDK is the typed external client. The two are complementary, not redundant. - OpenClaw skill (
openclaw/) — script-based skill for OpenClaw agents, re-exports from CLI modules. - Astro integration (
astro/) — framework integration that wires the SDK into Astro's build pipeline. Ships an<Image>component (build-time scan + variant rewrite), anassetsDir/manifest pattern for data-driven sites, and runtime helpers (resolveVariants,renderPicture) for the recommended AssetRef-persistence pattern where consumers store the fullAssetRefreturned byr.assets.putin their data rows. Published as@run402/astroon npm. - Buzz integration (
buzz/) — self-containedrun402-buzzskill with global CLI/profile setup, dual-proof fixtures/helper, four-state human/community/agent control-plane reporting, verified no-deploy readiness, bounded enrollment offers, and an approval-gated org-of-one fallback. It never accepts or derives from a Nostr private key, and public proof alone grants no authority.
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.
- 11d ago Changed · +58 tokens per session 48aec54cfd89
- 13d ago Changed · -9 tokens per session 48fddf105c2e
- 15d ago Changed · +1 lines · +267 tokens per session cb87ffeaa0a0
- 21d ago Changed · -34 lines · -1,028 tokens per session 638aef3ecc09
- 22d ago Changed · +86 tokens per session 878b1cde6391
- 1mo ago Changed · +1 lines · +255 tokens per session 4f8d915a8c80
- 1mo ago Changed · +1 lines · +27 tokens per session 3d5e74c2cc22
- 1mo ago Changed · +7 lines · +223 tokens per session 303a1872947f
- 1mo ago Changed · +3 lines · +366 tokens per session 0c5d20a1b8a3
- 1mo ago First seen · 362 lines · 21,934 tokens per session scan A 19cb57292b3e
run402 AGENTS.md is an instructions file published in the GitHub repository kychee-com/run402 (24 stars, last pushed 2d ago), licensed MIT. It adds 22,179 tokens to every session, about $0.0887 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
run402 AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| run402 AGENTS.mdkychee-com/run402 | Instructions file | 24 | 2d ago | MIT | A | 22,179 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |