ampersend-sdk CLAUDE.md

ampersend-sdk CLAUDE.md is an instructions file for coding agents from edgeandnode/ampersend-sdk. It costs 1,633 tokens per session, scanned A, original, Apache-2.0.

Project-specific instructions for ampersend-sdk, a software kit for adding x402 payment flows to AI and agent applications. It covers the repository's Python and TypeScript setup, builds, tests, and formatting.

In plain words
What is it for?
Use it when developing, testing, building, or formatting the ampersend-sdk repository.
Why use it?
It gives a coding agent the commands and project context needed to make changes consistently in this multi-language codebase.

Instructions file

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.

agentmods
npx agentmods add instructions/edgeandnode/ampersend-sdk/claude-md
Clone the repo
git clone --depth 1 https://github.com/edgeandnode/ampersend-sdk

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 ampersend-sdk CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/edgeandnode/ampersend-sdk/claude-md.svg)](https://agentmods.dev/instructions/edgeandnode/ampersend-sdk/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/edgeandnode/ampersend-sdk/claude-md"><img src="https://agentmods.dev/badge/instructions/edgeandnode/ampersend-sdk/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,633 This file is loaded in full into every session.
When invoked 1,633 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01633 $0.01633
Opus 5 $0.00816 $0.00816
Sonnet 5 $0.00327 $0.00327
Haiku 4.5 $0.00163 $0.00163

Measured 3d ago against content hash 285f2253980a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ampersend-sdk 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 3d 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 · 238 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Multi-language SDK for integrating x402 payment capabilities into agent and LLM applications. Includes Python implementation for A2A (Agent-to-Agent) protocol and TypeScript implementation for MCP (Model Context Protocol). Both support buyer (client) and seller (server) roles with flexible payment authorization patterns.

Development Commands

Python Setup

# Install Python 3.13
uv python install 3.13

# Install dependencies including dev tools
uv sync --frozen --all-packages --group dev

TypeScript Setup

# Install dependencies
pnpm install

# Build SDK
pnpm --filter ampersend-sdk... build

Python Testing

# Run all tests
uv run -- pytest

# Run specific test file
uv run -- pytest python/ampersend-sdk/tests/unit/x402/treasurers/test_naive.py

# Run only slow tests
uv run -- pytest -m slow

TypeScript Testing

# Run all tests
pnpm --filter ampersend-sdk test

# Run specific test
pnpm --filter ampersend-sdk test middleware.test.ts

# Watch mode
pnpm --filter ampersend-sdk test --watch

Python Linting & Formatting

# Check linting (uses ruff for imports and unused imports)
uv run -- ruff check --output-format=github python

# Check formatting
uv run -- ruff format --diff python

# Apply formatting
uv run -- ruff format python

# Type checking (strict mode enabled)
uv run -- mypy python

TypeScript Linting & Formatting

# Lint
pnpm --filter ampersend-sdk lint

# Format check
pnpm --filter ampersend-sdk format

# Format fix
pnpm --filter ampersend-sdk format:fix

# Type check
pnpm --filter ampersend-sdk typecheck

Markdown Formatting

# Check Markdown formatting
pnpm md:format

# Fix Markdown formatting
pnpm md:format:fix

Lockfile

# Python lockfile
uv lock --check  # Verify
uv lock          # Update

# TypeScript lockfile
pnpm install --frozen-lockfile  # CI mode
pnpm install                     # Update lockfile

Read the full file on GitHub · 238 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. 3d ago First seen · 238 lines · 1,633 tokens per session scan A 285f2253980a

Subscribe to this mod's changes

ampersend-sdk CLAUDE.md is an instructions file published in the GitHub repository edgeandnode/ampersend-sdk (24 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,633 tokens to every session, about $0.0082 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-30.