Skip to content

qntx/chat

QNTX Chat

QNTX Chat

Agent-ready infrastructure for permissionless AI access.
Built for the autonomous agent era.

License TypeScript React Vite Monad x402

Live Demo ·  Documentation ·  Token


Overview

QNTX Chat is a fully client-side AI chat interface that replaces API keys and subscription plans with per-message USDC micropayments on Monad. Built for the autonomous agent era — where agents operate independently with their own wallets and settle payments on-chain.

No registration. No backend accounts. No vendor lock-in. Just autonomous agents with wallets.

Architecture

graph TD
    A[Client] --> B[Gateway: HTTP 402]
    B --> C[SDK: Sign payment]
    C --> D[Facilitator: Settle]
    D --> E[LLM: Stream response]
    
    style A fill:#f9f9f9,stroke:#333,stroke-width:2px
    style B fill:#f9f9f9,stroke:#333,stroke-width:2px
    style C fill:#f9f9f9,stroke:#333,stroke-width:2px
    style D fill:#f9f9f9,stroke:#333,stroke-width:2px
    style E fill:#f9f9f9,stroke:#333,stroke-width:2px
Loading

Every interaction follows the same stateless request–payment–response cycle. The client holds no session state; the gateway holds no user credentials.

Features

  • Agent-native design — Autonomous agents can access any LLM with just a wallet, no human intervention required
  • Multi-model support — GPT-4o, GPT-5.2, Claude, Gemini, Llama, DeepSeek through a unified interface
  • Image generation — DALL-E, Flux, and Stable Diffusion via the same payment protocol
  • Autonomous micropayments — Per-message USDC settlement on Monad with zero manual approval
  • Stateless architecture — No backend accounts, no session state, no API key management

Developer SDKs

Agent-ready SDKs — Enable autonomous agents to access any LLM with just a wallet. No API keys, no subscriptions, no vendor lock-in.

Python

from x402_openai import X402OpenAI
from x402_openai.wallets import EvmWallet

client = X402OpenAI(wallet=EvmWallet(private_key="0x…"))

res = client.chat.completions.create(
    model="openai/gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(res.choices[0].message.content)

TypeScript

import { X402OpenAI } from "x402-openai";
import { EvmWallet } from "x402-openai/wallets";

const client = new X402OpenAI({
  wallet: new EvmWallet({ privateKey: "0x…" }),
});

const res = await client.chat.completions.create({
  model: "openai/gpt-4o-mini",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(res.choices[0]?.message.content);

Every request auto-settles on Monad. Perfect for autonomous agents — no registration, no billing dashboard, just code and a wallet.

Repositories: x402-openai-python · x402-openai-typescript

Infrastructure

Built on QNTX's self-contained open-source ecosystem — designed for the autonomous agent era:

  • facilitator — Settlement server for on-chain payment verification
  • r402 — Rust implementation of the x402 protocol
  • ra2a — Agent-to-agent communication protocol (Rust)
  • erc8004 — Trustless agent identity standard (ERC-8004)
  • kobe — Multi-chain wallet derivation for embedded agents (no_std Rust)

All components developed and maintained by the QNTX organization. Ready for autonomous agents today.

Token Economics

The QNTX token (nad.fun) is wired into the payment loop. Holding QNTX grants on-chain verified tiered discounts applied at settlement time:

Required Balance Discount
≥ 1 1 %
≥ 10,000 3 %
≥ 50,000 5 %
≥ 100,000 8 %
≥ 500,000 12 %
≥ 1,000,000 18 %
≥ 5,000,000 25 %
≥ 10,000,000 35 %
≥ 50,000,000 45 %
≥ 100,000,000 50 %

Discount tiers are read directly from the caller's QNTX balance on Monad — no off-chain lookup, no trust assumptions.

Trading activity on nad.fun generates creator fees (30 % of post-graduation LP fees) that flow back to the project.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

About

Pay only for what you use.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Languages