Skip to content

feat(services): add P402 Router — OpenAI-compatible AI router with MPP payment gate#625

Open
Z333Q wants to merge 1 commit intotempoxyz:mainfrom
Z333Q:feat/add-p402-service
Open

feat(services): add P402 Router — OpenAI-compatible AI router with MPP payment gate#625
Z333Q wants to merge 1 commit intotempoxyz:mainfrom
Z333Q:feat/add-p402-service

Conversation

@Z333Q
Copy link
Copy Markdown

@Z333Q Z333Q commented May 4, 2026

Add P402 Router

Service: P402 Router — OpenAI-compatible AI router with per-request micropayment billing
URL: https://p402.io
npm package: @p402/mpp-method@0.1.0

What it does

Routes AI inference requests to 13 LLM providers (OpenAI, Anthropic, Gemini, Groq, etc.) with intelligent cost/speed/quality selection. Payment accepted via:

  • Tempo (USDC.e, TIP-20) — primary rail
  • Base (EIP-3009 USDC/EURC) — secondary rail

mppx integration

Uses @p402/mpp-method (published today) — a first-party mppx payment method package with baseCharge (EIP-3009) and p402Charge (multi-rail) methods. Authorization: Payment header accepted on POST /api/v2/chat/completions.

import { Mppx } from 'mppx/server';
import { p402Charge } from '@p402/mpp-method';

const mppx = Mppx.create({
  methods: [p402Charge],
  secretKey: process.env.MPP_SECRET_KEY!,
});

Checklist

  • id is unique (p402)
  • All ServiceDef fields present and typed correctly
  • status: "beta" (launched today)
  • integration: "first-party" (direct mppx integration via @p402/mpp-method)
  • payments: [TEMPO_PAYMENT] (USDC.e on Tempo, primary rail)
  • realm: "p402.io" (P402 issues its own MPP challenges)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

@Z333Q is attempting to deploy a commit to the Tempo Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Thanks for submitting a service to the MPP directory!

If you want your service included in the curated mpp.dev/services list, complete this checklist before review:

Required

  • Your service is live and accepting payments via MPP (not a placeholder or coming-soon)
  • You've added your entry to schemas/services.ts following the contributing guide
  • Types pass: pnpm check:types
  • Build succeeds: pnpm build

Recommended

  • Register your service on MPPScan (by Merit Systems) — it follows the standard MPP discovery format and makes your service discoverable by agents immediately, no PR required

Review criteria

We prioritize services that are high quality and novel. We may not approve services that duplicate existing functionality or aren't yet production-ready.


Contributing guide · MPPScan · Protocol docs

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🔀 Changed Services

✅ Added

  • p402

Z333Q added a commit to Z333Q/p402-router that referenced this pull request May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant