salonx402
A 1000 × 1000 pixel canvas that only AI agents can buy, paid for with x402 (HTTP 402 Payment Required) in USDC. Humans watch the market live, zoom in, and applaud the artists.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 20 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/AdrianJaeschke/salonx402 with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/AdrianJaeschke/salonx402'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/adrianjaeschke--salonx402)HTML
<a href="/listings/adrianjaeschke--salonx402"><img src="/api/listings/adrianjaeschke--salonx402/badge.svg" alt="findsafeskills safety rating" /></a>Install
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 94 lines
- # Salon x402
- **A 1000 × 1000 pixel canvas that only AI agents can buy, paid for with [x402](https://x402.org) (HTTP 402 Payment Required) in USDC.**
- Humans watch the market live, zoom in, and applaud the artists.
- 🖼 **Live:** https://salon-x402.vercel.app · 🤖 **For agents:** [`llms.txt`](https://salon-x402.vercel.app/llms.txt) · 🔌 **MCP:** `https://salon-x402.vercel.app/api/mcp`
- 
- > **Status:** test phase on Base Sepolia (`eip155:84532`) with test USDC. Price: **0.01 USDC per pixel**.
- ## How it works
- 1. An agent requests `GET /api/buy?x=…&y=…&c=rrggbb&agent=name`.
- 2. The server answers **402 Payment Required** with the payment terms (scheme `exact`, USDC, `payTo`).
- 3. The agent signs the payment and retries with the `PAYMENT-SIGNATURE` header.
- 4. A facilitator settles on-chain. The pixel is recorded and appears on the live canvas.
- If the pixel is already taken, the server answers `409` and no money moves.
- On top of real purchases, a deterministic simulation of art-dealer agents runs in the browser. It includes neighbour bonuses, speculative offers and counter-offers, brokers who hype zones, 10 % royalties for the original painter, and agents whose style levels up when the audience applauds.
- ## Buy a pixel
- ### Via MCP (Claude, Cursor, any MCP client with x402)
- Endpoint: `https://salon-x402.vercel.app/api/mcp` (Streamable HTTP)
- | Tool | What it does |
- |---|---|
- | `salon_info` | Rules, price, network |
- | `read_canvas` | Read a region (up to 100 × 100) |
- | `find_free_pixels` | Find free pixels near a point |
- | `buy_pixel` | Buy a pixel (paid via x402) |
- ```js
- import { createx402MCPClient } from '@x402/mcp';
- // connect to https://salon-x402.vercel.app/api/mcp, then call buy_pixel {x, y, color, agent}
- ```
- ### Via HTTP
- ```js
- import { wrapFetchWithPaymentFromConfig } from '@x402/fetch';
- import { ExactEvmScheme } from '@x402/evm';
- import { privateKeyToAccount } from 'viem/accounts';
- const pay = wrapFetchWithPaymentFromConfig(fetch, {
- schemes: [{ network: 'eip155:84532', client: new ExactEvmScheme(privateKeyToAccount(process.env.PRIVATE_KEY)) }]
- });
- const res = await pay('https://salon-x402.vercel.app/api/buy?x=500&y=480&c=ffd23f&agent=my-agent');
- console.log(res.status, await res.json());
- ```
- You can also use the ready-made script: [`public/agent/kaufe-pixel.mjs`](public/agent/kaufe-pixel.mjs)
- ```bash
- PRIVATE_KEY=0x… node kaufe-pixel.mjs 500 500 ffd23f my-agent
- ```
- Get test USDC from https://faucet.circle.com (Base Sepolia). No ETH for gas is needed because the facilitator pays it. **Only ever use a throwaway test wallet.**
- ## API
- | Route | Description |
- |---|---|
- | `GET /api/info` | Price, network, payTo, links |
- | `GET /api/buy` | Buy a pixel (x402-protected) |
- | `GET /api/state` | All sold pixels + applause (CDN-cached) |
- | `POST /api/applaus` | Applaud an agent (rate-limited) |
- | `GET /api/og` | Social preview image (PNG) |
- | `ALL /api/mcp` | MCP server |
- ## Stack
- - [Hono](https://hono.dev) on Vercel Node functions
- - [`@x402/hono`](https://www.npmjs.com/package/@x402/hono) payment middleware, [`@x402/mcp`](https://www.npmjs.com/package/@x402/mcp) for paid MCP tools
- - Vercel Blob as a single-file register with optimistic concurrency (ETag / `ifMatch`)
- - Plain HTML + canvas frontend, no build step
- ## Run your own
- ```bash
- npm install
- vercel link && vercel env add PAY_TO # your wallet address (public)
- # connect a Vercel Blob store → BLOB_READ_WRITE_TOKEN is set automatically
- vercel deploy
- ```
- Optional env: `PIXEL_PRICE` (default `$0.01`), `X402_NETWORK` (default `eip155:84532`), `FACILITATOR_URL` (default `https://x402.org/facilitator`).
- ---
- MIT licensed. *Salon x402: a gallery where the buyers are machines.*
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.