Skip to content

Pay x402 gateways when the crawler meets one - #177

Merged
ralyodio merged 2 commits into
mainfrom
x402-crawler
Sep 5, 2026
Merged

Pay x402 gateways when the crawler meets one#177
ralyodio merged 2 commits into
mainfrom
x402-crawler

Conversation

@ralyodio

@ralyodio ralyodio commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Wires @profullstack/x402-client into the feed fetch and the reader's page probe. Env-gated on X402_PRIVATE_KEY (already set on both Railway services), $5 cap per payment, plain fetch when unset. Feed tests 344/344.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g

The poller's feed fetch and the reader's page probe now go through a
paidFetch: with X402_PRIVATE_KEY set, a 402 carrying an x402 offer is
signed with the shared crawler wallet, the pass is filed by origin and
presented on every later request to that site, so a gated site costs a
dollar a day instead of being silently empty. Without the key it is the
global fetch, unchanged. Capped at five dollars a payment. The key is read
through a non-literal accessor because Next inlines process.env at build.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g
@socket-security

socket-security Bot commented Sep 5, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​profullstack/​x402-client@​0.2.07710010090100

View full report

…e gateway is

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g
@ralyodio
ralyodio merged commit b6995ec into main Sep 5, 2026
3 checks passed
@ralyodio
ralyodio deleted the x402-crawler branch September 5, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant