Skip to content

docs: Full x402 usage example (Apify via AGI prepaid token) - #486

Merged
jancurn merged 6 commits into
mainfrom
claude/lucid-galileo-rh5buu
Nov 5, 2026
Merged

jancurn merged 6 commits into
mainfrom
claude/lucid-galileo-rh5buu

Conversation

@jancurn

@jancurn jancurn commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Turns the "Paying for Apify with x402" README section from #477 into a generically titled "Full x402 usage example" that runs end to end against Apify: buy a $1 prepaid token on agi.apify.com with x402, then use it with mcp.apify.com.

  • Adds wallet setup and balance check, a tools-call after connecting, and a token balance check; says what Apify is
  • Uses the portable awk -F': ' header parsing from the plain-HTTP example (the IGNORECASE variant only works with gawk)
  • Adds docs/vhs/x402.tape + x402.gif, recorded with a real 1 USDC payment on Base, embedded in the section

Refs #477

🤖 Generated with Claude Code

https://claude.ai/code/session_015KycPo9KDXbnxVrHaj57HY

Rename the section to a generic heading and make it a runnable end-to-end
walkthrough: wallet setup, buying a prepaid token on agi.apify.com, connecting,
calling a tool, and checking the balance. Use the portable header parsing from
the rest of the x402 docs instead of gawk-only IGNORECASE.

Refs #477

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KycPo9KDXbnxVrHaj57HY
@jancurn jancurn changed the title Improve x402 payment example with complete end-to-end workflow docs: Full x402 usage example (Apify via AGI prepaid token) Nov 5, 2026
Refs #477

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KycPo9KDXbnxVrHaj57HY
$1 is the agi.apify.com minimum, so the example is cheaper to try.

Refs #477

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KycPo9KDXbnxVrHaj57HY
Records the README flow end to end against agi.apify.com and mcp.apify.com.
Each render makes a real 1 USDC payment; the GIF follows once recorded.

Refs #477

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KycPo9KDXbnxVrHaj57HY
Comment thread README.md Resolved
Refs #477

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KycPo9KDXbnxVrHaj57HY
Recorded with a real 1 USDC payment on Base: wallet balance, payment
challenge, x402 sign, prepaid token from agi.apify.com, connect to
mcp.apify.com, a tool call, and the remaining balance.

Refs #477

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KycPo9KDXbnxVrHaj57HY
@jancurn
jancurn merged commit eef9705 into main Nov 5, 2026
7 checks passed
@jancurn
jancurn deleted the claude/lucid-galileo-rh5buu branch November 5, 2026 13:01
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.

2 participants