agent-payments

Machine Payment Protocol (MPP) for keyless, pay-per-query access to the Codex Supergraph GraphQL API. Use when the user has no API key and wants to pay per query via the 402 challenge flow at https://graph.codex.io/graphql.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "agent-payments" with this command: npx skills add codex-data/skills/codex-data-skills-agent-payments

Codex Machine Payment Protocol (MPP)

Use this skill to access the Codex Supergraph without an API key via the MPP challenge flow.

HTTP endpointhttps://graph.codex.io/graphql
Opt-in headerX-Codex-Payment: mpp
Credential headerAuthorization: Payment <base64url-credential>

How it works

  1. Send a GraphQL query with X-Codex-Payment: mpp (no credential).
  2. Server returns 402 Payment Required with WWW-Authenticate: Payment ... challenges.
  3. Client solves one challenge and retries with Authorization: Payment <credential>.
  4. Server returns GraphQL data + Payment-Receipt header.

Constraints

  • Query only. Mutations and subscriptions return 403 in MPP mode.
  • If a valid API key or bearer token is also present, API auth takes precedence.
  • Do not reference legacy dashboard onboarding/top-up/balance payment endpoints.

Challenge flow

  1. First request (no credential yet):
curl -i -sS https://graph.codex.io/graphql \
  -H "Content-Type: application/json" \
  -H "X-Codex-Payment: mpp" \
  --data-binary '{"query":"query GetNetworks { getNetworks { id name } }"}'

Expected: 402 Payment Required with multiple WWW-Authenticate: Payment ... challenges.

  1. Retry with solved credential:
curl -i -sS https://graph.codex.io/graphql \
  -H "Content-Type: application/json" \
  -H "X-Codex-Payment: mpp" \
  -H "Authorization: Payment <base64url-credential>" \
  --data-binary '{"query":"query GetNetworks { getNetworks { id name } }"}'

Expected: GraphQL data + Payment-Receipt header.

Rules

  • Never print raw credentials.
  • Only use MPP for query operations.
  • For available GraphQL operations and endpoint selection heuristics, see the codex-supergraph skill.

References

FilePurpose
references/mpp-flow.mdAuth matrix, challenge details, error codes
references/mpp-templates.mdMPP curl templates
references/wallets.mdWallet setup: tempo wallet/request (Tempo) and awal (Base)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

codex-supergraph

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Self Updater

⭐ OPEN SOURCE! GitHub: github.com/GhostDragon124/openclaw-self-updater ⭐ ONLY skill with Cron-aware + Idle detection! Auto-updates OpenClaw core & skills, an...

Registry SourceRecently Updated
1101Profile unavailable
Coding

ClawHub CLI Assistant

Use the ClawHub CLI to publish, inspect, version, update, sync, and troubleshoot OpenClaw skills from the terminal.

Registry SourceRecently Updated
1.9K2Profile unavailable
Coding

SkillTree Learning Progress Tracker

Track learning across topics like an RPG skill tree. Prerequisites, milestones, suggested next steps. Gamified learning path.

Registry SourceRecently Updated
890Profile unavailable