Borrowing it
Nothing to install: this file belongs to Bortlesboat/bitcoin-api. 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/Bortlesboat/bitcoin-api/master/CLAUDE.mdgit clone --depth 1 https://github.com/Bortlesboat/bitcoin-apiWrote 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/bortlesboat/bitcoin-api/claude-md)<a href="https://agentmods.dev/instructions/bortlesboat/bitcoin-api/claude-md"><img src="https://agentmods.dev/badge/instructions/bortlesboat/bitcoin-api/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.
<a href="https://agentmods.dev/instructions/bortlesboat/bitcoin-api/claude-md"><img src="https://agentmods.dev/badge/instructions/bortlesboat/bitcoin-api/claude-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.03483 | $0.03483 |
| Opus 5.5 | $0.01393 | $0.01393 |
| Sonnet 5.5 | $0.00697 | $0.00697 |
| Haiku 4.5 | $0.00348 | $0.00348 |
Grade A, and why
bitcoin-api 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Satoshi API -- Project Instructions
Messaging (MANDATORY — Any-Limit Filter)
Every customer-facing claim must answer: "Does it make money, save money, or save time?"
- NEVER lead with endpoint counts ("78 endpoints") in headlines, taglines, or selling points
- NEVER use "analyzed data" or "production-grade" as a primary value proposition
- ALWAYS lead with outcomes: "save money on fees", "know when to send", "stop watching block explorers"
- Product positioning: "Bitcoin fee intelligence that saves you money on every transaction"
- Endpoint counts are fine in technical reference sections (sprint tables, API surface docs)
scripts/marketing_sync.pyenforces this — it flags endpoint-count selling points and "analyzed data" usage
Source: Reddit u/Any-Limit-7282 feedback, adopted as company strategy Mar 8, 2026.
Scope of Work (MANDATORY)
docs/SCOPE_OF_WORK.md is the canonical project document. It MUST be updated with every change.
After any code change, documentation update, or architectural decision:
- Update the relevant section(s) in
docs/SCOPE_OF_WORK.md - If adding/removing endpoints: update Section 3 (API Surface)
- If adding/removing files: update Section 6 (Deliverables)
- If fixing bugs or addressing review findings: update Section 5.2 (Critical Issues Fixed)
- If changing security controls: update Section 4 (Security Model)
- If test count changes: update Section 6.1 (sprint table totals)
- If adding known limitations: update Section 5.3
- If deployment steps change: update Section 7
The SOW is the single source of truth for what this project is, what it does, and what state it's in. Treat it like a living design doc, not a one-time artifact.
Architecture
- Stack: FastAPI + bitcoinlib-rpc + SQLite (WAL mode)
- Entry point:
src/bitcoin_api/main.py - Config: Pydantic Settings from env vars (
config.py), RPC password isSecretStr - Auth: API key via
X-API-Keyheader, tier-based (anonymous/free/pro/enterprise). Anonymous: lightweight GET only. Free+: expensive GET (mining/stats/whale-stream). Block caps: anon/free=144, pro=1008, enterprise=2016. Helpers:require_api_key(),cap_blocks_param()inauth.py. - Rate limiting: Sliding window (in-memory or Upstash Redis) + daily (DB-backed)
- Caching: Per-cache locks, reorg-safe depth awareness, bounded LRU for hash mappings
- External services (all optional, default disabled): Upstash Redis (rate limit persistence), Resend (transactional email), PostHog (landing page analytics). API functions fully without any of them.
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.
- 2mo ago First seen · 184 lines · 3,483 tokens per session scan A 30e518eadb02
bitcoin-api CLAUDE.md is an instructions file published in the GitHub repository Bortlesboat/bitcoin-api (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 3,483 tokens to every session, about $0.0139 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.
bitcoin-api CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bitcoin-api CLAUDE.mdBortlesboat/bitcoin-api | Instructions file | 5 | 2d ago | Apache-2.0 | A | 3,483 | Claude Code |
| 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 |