codex-gateway

Handle 402 payment challenges for GraphQL queries via the Codex Supergraph.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Michae2xl/claude-skills-michael --skill codex-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-gateway
Source: https://github.com/Michae2xl/claude-skills-michael/tree/main/skills/codex-gateway
Command: npx skills add https://github.com/Michae2xl/claude-skills-michael --skill codex-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires graphql, messaging-protocol, codex-api, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

When querying the Codex Supergraph and receiving a 402 Payment Required response, this Skill assists in the payment process, enabling continued queries via the MPP 402 challenge flow.

Core Features & Use Cases

  • MPP Query Support: Handle queries that result in a 402 Payment Required response from the Codex Supergraph.
  • Payment Flow Handling: Interacts with payment credentials to pay per query without needing an API key.
  • Use Case: When the Codex Supergraph API requires payment for certain queries, this Skill facilitates the necessary authentication flow.

Quick Start

Run the codex-gateway skill with a query and let it handle the 402 payment challenge for you.

Frequently Asked Questions about codex-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle a 402 Payment Required response when querying a GraphQL API?

To handle a 402 Payment Required response when querying a GraphQL API, you can use an MPP 402 challenge flow to pay per query. This approach automatically manages payment credentials without needing a standard API key.

What is the MPP 402 challenge flow for GraphQL queries?

The MPP 402 challenge flow for GraphQL queries is a payment mechanism that processes per-query payments. It intercepts 402 Payment Required responses and uses messaging protocol credentials to authenticate and unlock the requested data.

Do I need an API key to query the Codex Supergraph?

You do not need an API key to query the Codex Supergraph if you use the MPP 402 challenge flow. Instead of static API keys, this method facilitates continued queries by handling payment credentials dynamically on a per-query basis.

How to query the Codex Supergraph on a per-query payment basis?

To query the Codex Supergraph on a per-query payment basis, execute your GraphQL query and let the MPP flow manage the 402 Payment Required response. It automatically interacts with payment credentials to authorize each request.

Does handling GraphQL 402 payment challenges require client-side MPP support?

Handling GraphQL 402 payment challenges does require client-side support for the MPP flow. Your environment must also include messaging protocol dependencies and GraphQL knowledge to process the per-query credentials correctly.

Why does my GraphQL query return a 402 Payment Required status on the Codex Supergraph?

A GraphQL query returns a 402 Payment Required status on the Codex Supergraph when the requested data demands payment for access. Triggering the MPP 402 challenge flow resolves this by providing the necessary transaction credentials.