// agents · x402-foundation/x402

x402

A payments protocol for the internet — built on plain HTTP.

★ 6.7k stars⑂ 2.1k forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

x402 is an open-source ai agents project by x402-foundation (x402-foundation/x402 on GitHub). It has 6,688 GitHub stars and 2,144 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 7 October 2026.

GitHub stars
6,688
Forks
2,144
License
Apache-2.0
Last updated on GitHub
7 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide what you want the project to do before installing anything.

  2. Clone the repo

    Grab the source and skim the README for setup requirements.

  3. Install and configure

    Install dependencies and add any API keys or settings it needs.

  4. Run your first task

    Launch it and follow the example workflow from the docs.

// features

Why people love it

HTTP-native payments

Built on the web's own protocol.

Machine-to-machine

Designed for software paying software.

No accounts needed

Pay without signing up anywhere.

Open protocol

A public standard, foundation-governed.

Agent-economy ready

Made for agents that transact.

Foundation-governed

Neutral stewardship via x402 Foundation.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/x402-foundation/x402.git
    cd x402
  2. Step 2 — Install dependencies

    Pull in the Node packages the project needs.

    npm install
  3. Step 3 — Run it

    Start it with the project's documented command (often a dev server).

    npm run dev  # check README for the exact script
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains x402?

It is an open-source project at x402-foundation/x402 with 2144 forks. Check the contributors tab and recent commits to judge how active maintenance is.

Is x402 free to use?

Yes — Apache 2.0 allows commercial use and modification. Keep the license and notice files, and note it includes a patent grant.

How do payments actually work?

Services return HTTP 402 Payment Required; clients pay programmatically over the protocol's rails — read the spec for the flow.

Which chains or assets?

The protocol is asset-agnostic by design; check the docs for current settlement options.

How do I get started?

Clone the repo and follow the README quickstart — the docs at https://x402.org walk through setup.

// keep exploring

Similar tools

AI Agents

AP2

An open protocol for secure AI-driven payments.

★ 3.2k starsApache-2.0
View guide →
AI Agents

chroma

Open-source search infrastructure built for AI workloads.

★ 29.5k starsApache-2.0
View guide →
AI Agents

A2A

The open protocol that lets AI agents talk to each other.

★ 26.1k starsApache-2.0
View guide →
AI Agents

python-sdk

The official Python SDK for Model Context Protocol servers and clients.

★ 24.5k starsMIT
View guide →
AI Agents

agent-vault

Infisical's credential vault and HTTP proxy, so AI agents call APIs without ever holding your real secrets.

★ 2.3k starsNOASSERTION
View guide →
AI Agents

tradememory-protocol

Tradememory-protocol — decision audit trail + persistent memory for ai trading, open-so...

★ 1.4k starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if x402 is not the right fit.

Get x402

Free and open — grab the source, star the repo, and start creating.