Skip to content

Add 0x-mpp and 0x-x402 keyless swap skills#1

Open
jlin27 wants to merge 1 commit into
mainfrom
add-mpp-x402-skills
Open

Add 0x-mpp and 0x-x402 keyless swap skills#1
jlin27 wants to merge 1 commit into
mainfrom
add-mpp-x402-skills

Conversation

@jlin27
Copy link
Copy Markdown
Collaborator

@jlin27 jlin27 commented May 12, 2026

Summary

Adds two new skills for accessing 0x Swap API without an API key, using AgentPay as the payment proxy:

  • 0x-mpp — pays per request in pathUSD on Tempo Testnet (chainId 42431) via mppx + viem
  • 0x-x402 — pays per request in USDC on Base Sepolia (chainId 84532) via @x402/fetch + @x402/evm

Both expose the same two endpoints (swap-allowance-holder-price and swap-allowance-holder-quote) with the 0x API key injected server-side by AgentPay. Callers only need a funded wallet.

Reference implementations

Related

  • Mirrors Uniswap's pay-with-any-token skill pattern but using 0x as the swap provider
  • Complements the existing 0x-api skill (which requires an API key)

Two new skills for accessing 0x Swap API without an API key via AgentPay:

- 0x-mpp: pays per request in pathUSD on Tempo Testnet via mppx
- 0x-x402: pays per request in USDC on Base Sepolia via @x402/fetch

Each skill links to its reference test repo and cross-links the other.
@jlin27
Copy link
Copy Markdown
Collaborator Author

jlin27 commented May 18, 2026

need to update to mainnet

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