Skip to content

feat(sdk): add asndurl CLI for x402 HTTP requests#55

Draft
matiasedgeandnode wants to merge 1 commit intomainfrom
ASND-170/asndurl-openclaw-skill
Draft

feat(sdk): add asndurl CLI for x402 HTTP requests#55
matiasedgeandnode wants to merge 1 commit intomainfrom
ASND-170/asndurl-openclaw-skill

Conversation

@matiasedgeandnode
Copy link
Collaborator

Summary

  • Adds asndurl, a curl-like CLI for making HTTP requests to x402 payment-gated APIs
  • Designed primarily for agent use (OpenClaw skill included) with structured JSON output
  • Automatically handles HTTP 402 responses by creating and signing payments via Ampersend smart accounts

Features

Flag Description
-X, --method HTTP method (default: GET)
-H, --header Request headers
-d, --data Request body
--inspect Preview payment requirements without paying
--raw Output raw response body instead of JSON
--headers Include response headers in output
--debug JSONL logs to stderr

Output Format

{
  "ok": true,
  "data": {
    "status": 200,
    "body": "...",
    "payment": { "requirements": { ... } }
  }
}

Test plan

  • Build succeeds: pnpm --filter ampersend-sdk build
  • CLI help works: npx asndurl --help
  • Inspect mode against x402 endpoint
  • Full payment flow against test endpoint

🤖 Generated with https://claude.com/claude-code

@matiasedgeandnode matiasedgeandnode force-pushed the ASND-170/asndurl-openclaw-skill branch 4 times, most recently from 5c1a231 to 8bdaefc Compare March 4, 2026 17:22
Add a curl-like CLI tool for making HTTP requests to x402 payment-gated
APIs. Designed for agent use with structured JSON output.

- Automatic 402 handling with Ampersend smart account payments
- JSON envelope output with ok/error discrimination
- --inspect mode to preview payment requirements without paying
- --raw mode for human-readable output
- --headers and --debug flags for troubleshooting
- OpenClaw skill definition for agent integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@matiasedgeandnode matiasedgeandnode force-pushed the ASND-170/asndurl-openclaw-skill branch from 8bdaefc to 13aa952 Compare March 4, 2026 17:25
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