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.
npx agentmods add rules/dexter-dao/opendexter-ide/x402-protocolgit clone --depth 1 https://github.com/Dexter-DAO/opendexter-ideWrote 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/rules/dexter-dao/opendexter-ide/x402-protocol)<a href="https://agentmods.dev/rules/dexter-dao/opendexter-ide/x402-protocol"><img src="https://agentmods.dev/badge/rules/dexter-dao/opendexter-ide/x402-protocol.svg" alt="Measured on agentmods" 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.00510 | $0.00510 |
| Opus 5 | $0.00255 | $0.00255 |
| Sonnet 5 | $0.00102 | $0.00102 |
| Haiku 4.5 | $0.00051 | $0.00051 |
Grade A, and why
x402-protocol 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 5d 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.
What it actually says
x402-protocol:
- x402 is an open protocol for machine-to-machine payments over HTTP. A
resource can return
402 Payment Requiredwith payment instructions; an authorized client settles, and the resource returns its response. - x402 v2 uses CAIP-2 network identifiers, including:
- Solana mainnet:
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp - Base mainnet:
eip155:8453 - Polygon:
eip155:137 - Arbitrum:
eip155:42161 - Optimism:
eip155:10 - Avalanche:
eip155:43114 - SKALE Base:
eip155:1187947933
- Solana mainnet:
- HTTP payment data uses
PAYMENT-REQUIRED,PAYMENT-SIGNATURE, andPAYMENT-RESPONSE. Amounts are atomic units; 1 USDC is1000000. - The Dexter facilitator is
https://x402.dexter.cash. The application SDK is@dexterai/x402, with/client,/server,/react,/adapters, and/utilsexports. @dexterai/opendexteris different: it is a local proxy to the hosted governed runtime and is configured withnpx @dexterai/[email protected] setupfollowed byopendexter connect.- The OpenDexter MCP roster is exactly
x402_search,x402_check,x402_fetch,x402_status,x402_access,x402_wallet, anddexter_portfolio. - A connected check returns one opaque
intentId. Execute at most once with thatintentIdand the separately approvedmaxAmountAtomicceiling. - Reconcile uncertainty through
x402_status. Never retryx402_fetchafter possible dispatch or substitute an SDK/local signer when hosted authority is missing. - Account-bound OpenDexter tools use the stored OAuth bearer. Connection, balance, and portfolio state do not independently prove an active grant.
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.
- 5d ago First seen · 37 lines · 510 tokens per session scan A 4f73cf78be8e
x402-protocol is a cursor rule published in the GitHub repository Dexter-DAO/opendexter-ide (2 stars, last pushed yesterday), licensed MIT. It adds 510 tokens to every session, about $0.0026 per session on Opus 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.
Other cursor rules, from other repositories
financial-amounts
Financial amount + token data safety — floor display amounts (never round up), decimals come from the SDK token registry. Full detail in .claude/skills/t2000-financial-amounts/.
cursorrules
This is agentpay-mcp — an MCP (Model Context Protocol) server that wraps agentwallet-sdk to give AI agents financial capabilities. Any MCP-compatible client (Claude Desktop, Cursor, Windsurf, etc.) can use it.
pn-web3-security
Web3 security conventions: no private keys, env for RPC, explicit visibility, events for state changes. Use when editing Solidity or Web3 integration code.
wallet-transaction-safety
IronWallet transfers and swaps — hot wallet, no blind retries.
cryptoexchange-net
Conventions for cross-exchange code using CryptoExchange.Net SharedApis abstractions. Apply when generating C# code that interacts with multiple cryptocurrency exchanges through a unified interface.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.