Skip to content
Back to search

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.

Checked yesterday

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
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/adrianjaeschke--salonx402/badge.svg)](/listings/adrianjaeschke--salonx402)

HTML

<a href="/listings/adrianjaeschke--salonx402"><img src="/api/listings/adrianjaeschke--salonx402/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

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
  1. # Salon x402
  2. **A 1000 × 1000 pixel canvas that only AI agents can buy, paid for with [x402](https://x402.org) (HTTP 402 Payment Required) in USDC.**
  3. Humans watch the market live, zoom in, and applaud the artists.
  4. 🖼 **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`
  5. ![Salon x402](docs/og.png)
  6. > **Status:** test phase on Base Sepolia (`eip155:84532`) with test USDC. Price: **0.01 USDC per pixel**.
  7. ## How it works
  8. 1. An agent requests `GET /api/buy?x=…&y=…&c=rrggbb&agent=name`.
  9. 2. The server answers **402 Payment Required** with the payment terms (scheme `exact`, USDC, `payTo`).
  10. 3. The agent signs the payment and retries with the `PAYMENT-SIGNATURE` header.
  11. 4. A facilitator settles on-chain. The pixel is recorded and appears on the live canvas.
  12. If the pixel is already taken, the server answers `409` and no money moves.
  13. 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.
  14. ## Buy a pixel
  15. ### Via MCP (Claude, Cursor, any MCP client with x402)
  16. Endpoint: `https://salon-x402.vercel.app/api/mcp` (Streamable HTTP)
  17. | Tool | What it does |
  18. |---|---|
  19. | `salon_info` | Rules, price, network |
  20. | `read_canvas` | Read a region (up to 100 × 100) |
  21. | `find_free_pixels` | Find free pixels near a point |
  22. | `buy_pixel` | Buy a pixel (paid via x402) |
  23. ```js
  24. import { createx402MCPClient } from '@x402/mcp';
  25. // connect to https://salon-x402.vercel.app/api/mcp, then call buy_pixel {x, y, color, agent}
  26. ```
  27. ### Via HTTP
  28. ```js
  29. import { wrapFetchWithPaymentFromConfig } from '@x402/fetch';
  30. import { ExactEvmScheme } from '@x402/evm';
  31. import { privateKeyToAccount } from 'viem/accounts';
  32. const pay = wrapFetchWithPaymentFromConfig(fetch, {
  33. schemes: [{ network: 'eip155:84532', client: new ExactEvmScheme(privateKeyToAccount(process.env.PRIVATE_KEY)) }]
  34. });
  35. const res = await pay('https://salon-x402.vercel.app/api/buy?x=500&y=480&c=ffd23f&agent=my-agent');
  36. console.log(res.status, await res.json());
  37. ```
  38. You can also use the ready-made script: [`public/agent/kaufe-pixel.mjs`](public/agent/kaufe-pixel.mjs)
  39. ```bash
  40. PRIVATE_KEY=0x… node kaufe-pixel.mjs 500 500 ffd23f my-agent
  41. ```
  42. 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.**
  43. ## API
  44. | Route | Description |
  45. |---|---|
  46. | `GET /api/info` | Price, network, payTo, links |
  47. | `GET /api/buy` | Buy a pixel (x402-protected) |
  48. | `GET /api/state` | All sold pixels + applause (CDN-cached) |
  49. | `POST /api/applaus` | Applaud an agent (rate-limited) |
  50. | `GET /api/og` | Social preview image (PNG) |
  51. | `ALL /api/mcp` | MCP server |
  52. ## Stack
  53. - [Hono](https://hono.dev) on Vercel Node functions
  54. - [`@x402/hono`](https://www.npmjs.com/package/@x402/hono) payment middleware, [`@x402/mcp`](https://www.npmjs.com/package/@x402/mcp) for paid MCP tools
  55. - Vercel Blob as a single-file register with optimistic concurrency (ETag / `ifMatch`)
  56. - Plain HTML + canvas frontend, no build step
  57. ## Run your own
  58. ```bash
  59. npm install
  60. vercel link && vercel env add PAY_TO # your wallet address (public)
  61. # connect a Vercel Blob store → BLOB_READ_WRITE_TOKEN is set automatically
  62. vercel deploy
  63. ```
  64. Optional env: `PIXEL_PRICE` (default `$0.01`), `X402_NETWORK` (default `eip155:84532`), `FACILITATOR_URL` (default `https://x402.org/facilitator`).
  65. ---
  66. MIT licensed. *Salon x402: a gallery where the buyers are machines.*

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.