Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
437 lines (424 loc) · 19.2 KB
/
Copy pathindex.html
File metadata and controls
437 lines (424 loc) · 19.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>agenticpay - get paid by AI agents (open-source x402 stack for MCP on Solana)</title>
<meta
name="description"
content="Open-source x402 micropayments stack for MCP servers. Declare a price on any tool, agents pay in USDC, settles on Solana in ~1.5 seconds. Self-hosted facilitator + TypeScript SDK + paywall middleware."
/>
<meta name="keywords" content="x402, MCP, Model Context Protocol, Solana, USDC, agent payments, AI agents, micropayments, stablecoin, Claude, OpenAI, monetize MCP server, agentic payments, agenticpay, open-source facilitator" />
<meta name="author" content="krystiangw" />
<meta name="google-site-verification" content="AivhVutlgdzwPhOT26aWe5RxRWJp5YqixFXJ6ie48nM" />
<link rel="canonical" href="https://agenticpay-dev.github.io/" />
<!-- Favicon as real files: Googlebot-Image has to crawl the icon at a
stable URL, and a data: URI gives it nothing to fetch, which is why
Search showed the default globe. -->
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192.png" />
<link rel="icon" type="image/png" sizes="512x512" href="/favicon-512.png" />
<link rel="apple-touch-icon" href="/favicon-192.png" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://agenticpay-dev.github.io/" />
<meta property="og:title" content="agenticpay - get paid by AI agents" />
<meta
property="og:description"
content="Open-source x402 micropayments stack for MCP servers. Declare a price on any tool, agents pay in USDC over x402, settles on Solana in ~1.5s. Includes self-hosted facilitator, TypeScript SDK, and live Claude Opus agent demo."
/>
<meta property="og:site_name" content="agenticpay" />
<meta property="og:image" content="https://opengraph.githubassets.com/1/agenticpay-dev/agenticpay" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="600" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content="https://agenticpay-dev.github.io/" />
<meta name="twitter:title" content="agenticpay - get paid by AI agents" />
<meta
name="twitter:description"
content="Open-source x402 micropayments stack for MCP servers on Solana. Self-hosted facilitator, TypeScript SDK, live Claude Opus agent demo."
/>
<meta name="twitter:image" content="https://opengraph.githubassets.com/1/agenticpay-dev/agenticpay" />
<!-- JSON-LD: SoftwareApplication + SourceCodeRepository -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "SoftwareApplication",
"name": "agenticpay",
"alternateName": "@agenticpay",
"description": "Open-source x402 micropayments stack for MCP servers. Declare a price on any tool, agents pay in USDC over x402, settles on Solana in ~1.5 seconds. Includes self-hosted facilitator, TypeScript SDK, paywall middleware, and live Claude Opus agent demo.",
"url": "https://agenticpay-dev.github.io/",
"applicationCategory": "DeveloperApplication",
"applicationSubCategory": "PaymentInfrastructure",
"operatingSystem": "Cross-platform",
"softwareVersion": "0.1.0",
"license": "https://opensource.org/licenses/MIT",
"programmingLanguage": "TypeScript",
"author": {
"@type": "Person",
"name": "Krystian Gwizdała",
"alternateName": "krystiangw",
"url": "https://krystiangw.github.io/krystiangw/",
"image": "https://avatars.githubusercontent.com/u/6939376?v=4",
"jobTitle": "Senior Frontend Engineer",
"worksFor": {
"@type": "Organization",
"name": "TestGorilla",
"url": "https://www.testgorilla.com"
},
"address": {
"@type": "PostalAddress",
"addressLocality": "Kraków",
"addressCountry": "PL"
},
"sameAs": [
"https://github.com/krystiangw",
"https://www.linkedin.com/in/krystiangw"
],
"email": "mailto:gwizdala.kr@gmail.com"
},
"codeRepository": "https://github.com/agenticpay-dev/agenticpay",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"keywords": "x402, MCP, Model Context Protocol, Solana, USDC, agent payments, micropayments, stablecoin"
},
{
"@type": "SoftwareSourceCode",
"name": "agenticpay",
"codeRepository": "https://github.com/agenticpay-dev/agenticpay",
"programmingLanguage": "TypeScript",
"license": "https://opensource.org/licenses/MIT",
"author": {
"@type": "Person",
"name": "Krystian Gwizdała",
"url": "https://krystiangw.github.io/krystiangw/"
}
}
]
}
</script>
<script src="https://cdn.tailwindcss.com"></script>
<!-- PostHog: anonymous web analytics. Project key is write-only (safe in client). -->
<script>
!(function (t, e) {
var o, n, p, r;
e.__SV ||
((window.posthog = e),
(e._i = []),
(e.init = function (i, s, a) {
function g(t, e) {
var o = e.split(".");
2 == o.length && ((t = t[o[0]]), (e = o[1])),
(t[e] = function () {
t.push([e].concat(Array.prototype.slice.call(arguments, 0)));
});
}
((p = t.createElement("script")).type = "text/javascript"),
(p.crossOrigin = "anonymous"),
(p.async = !0),
(p.src =
s.api_host.replace(".i.posthog.com", "-assets.i.posthog.com") +
"/static/array.js"),
(r = t.getElementsByTagName("script")[0]).parentNode.insertBefore(p, r);
var u = e;
for (
void 0 !== a ? (u = e[a] = []) : (a = "posthog"),
u.people = u.people || [],
u.toString = function (t) {
var e = "posthog";
return (
"posthog" !== a && (e += "." + a), t || (e += " (stub)"), e
);
},
u.people.toString = function () {
return u.toString(1) + ".people (stub)";
},
o =
"init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug".split(
" "
),
n = 0;
n < o.length;
n++
)
g(u, o[n]);
e._i.push([i, s, a]);
}),
(e.__SV = 1));
})(document, window.posthog || []);
posthog.init("phc_yx5UNYLVtPAJ4rYwfWA967rBXKTccEFsYgHQSpDaJZbz", {
api_host: "https://us.i.posthog.com",
person_profiles: "identified_only",
capture_pageview: true,
capture_pageleave: true,
});
</script>
<style>
body {
font-family:
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
}
.accent {
color: #a3e635;
}
pre {
font-family: inherit;
}
</style>
</head>
<body class="bg-black text-zinc-200 min-h-screen">
<main class="max-w-3xl mx-auto px-6 py-20 space-y-20">
<!-- HERO -->
<section class="space-y-6">
<div class="text-zinc-500 text-sm">agenticpay // pre-alpha</div>
<h1 class="text-4xl md:text-5xl font-bold leading-tight">
Get paid by <span class="accent">AI agents</span>.
</h1>
<p class="text-zinc-400 text-lg leading-relaxed">
Open-source payment infrastructure for the MCP ecosystem. Declare a
price on any tool, agents pay in USDC over
<a href="https://x402.org" class="underline decoration-zinc-700 hover:decoration-zinc-300">x402</a>,
settles on Solana in ~1.5 seconds. No Stripe. No accounts. No API
keys.
</p>
<div class="flex flex-wrap gap-3 pt-4">
<a
href="https://github.com/agenticpay-dev/agenticpay"
class="bg-zinc-200 text-black px-5 py-2.5 hover:bg-white transition"
onclick="posthog.capture('cta_click', {target: 'github'})"
>
GitHub →
</a>
<a
href="https://github.com/agenticpay-dev/agenticpay#quickstart-devnet-5-minutes-free"
class="border border-zinc-700 px-5 py-2.5 hover:border-zinc-400 transition"
onclick="posthog.capture('cta_click', {target: 'quickstart'})"
>
5-min quickstart
</a>
</div>
</section>
<!-- LIVE DEMO -->
<section class="space-y-4">
<h2 class="text-2xl font-bold">Live demo</h2>
<p class="text-zinc-400">
Real Claude Opus agent decides which paid tools to use, pays
autonomously over x402, gets results, answers the user.
</p>
<pre class="bg-zinc-950 border border-zinc-800 p-5 text-sm overflow-x-auto whitespace-pre">
$ pnpm --filter @agenticpay/two-agent-demo agent
Task: Reverse 'agenticpay rocks' and tell me how many words are in
'The quick brown fox jumps over the lazy dog'.
[turn 1] tool_use: reverse_string → paying $0.001 USDC ...
✓ paid + got result in 1596ms: {"result":"skcor yaptnega"}
[turn 1] tool_use: word_count → paying $0.0005 USDC ...
✓ paid + got result in 1286ms: {"count":9}
=== payments summary ===
reverse_string $0.0010 USDC 1596ms
word_count $0.0005 USDC 1286ms
<span class="accent">TOTAL $0.0015 USDC 2 calls</span>
</pre>
<p class="text-sm text-zinc-500">
On-chain proof:
<a
class="underline hover:text-zinc-300"
href="https://explorer.solana.com/tx/EsqzTG8id5CF5yxXmSSictkJnqn1uVC514joHqVBpdfSy4MkzvGzGGdb7Fybkn5ruSGyCQ87jyjmHuSGpU2Bnku?cluster=devnet"
>EsqzTG8id…Bnku (devnet)</a
>
</p>
</section>
<!-- WHAT'S IN THE BOX -->
<section class="space-y-4">
<h2 class="text-2xl font-bold">What's in the box</h2>
<ul class="space-y-3 text-zinc-300">
<li>
<span class="accent">packages/sdk</span> - USDC + wallet primitives
</li>
<li>
<span class="accent">packages/cli</span> - `agenticpay` command
</li>
<li>
<span class="accent">packages/mcp-server</span> - HTTP server with
x402 paywall middleware. Each tool has a price.
</li>
<li>
<span class="accent">packages/mcp-bridge</span> - the other side:
turns x402-paywalled endpoints into native MCP tools. Drop it into
Claude Desktop or Cursor and paid APIs show up as ordinary tools.
Holds the wallet, signs each payment, enforces the spend caps below.
</li>
<li>
<span class="accent">packages/facilitator</span> - self-hosted
x402 facilitator. Verify + settle on Solana, pays SOL fees on
behalf of the agent. Run your own instead of trusting someone
else's with your settlement path.
</li>
<li>
<span class="accent">examples/two-agent-demo</span> - Claude Opus
agent paying for tool calls
</li>
</ul>
</section>
<!-- SPEND CAPS -->
<section id="spend-caps" class="space-y-4 scroll-mt-8">
<h2 class="text-2xl font-bold">The agent pays. You set the ceiling.</h2>
<p class="text-zinc-400 leading-relaxed">
An agent holding a wallet and signing its own payments is the whole
point, and also the obvious thing to be nervous about. So the bridge
takes two limits, and refuses anything above them before a signature
is ever produced.
</p>
<pre class="bg-zinc-950 border border-zinc-800 p-5 text-sm overflow-x-auto whitespace-pre">
// claude_desktop_config.json
"agenticpay": {
"command": "npx",
"args": ["-y", "@agenticpay/mcp-bridge"],
"env": {
<span class="accent">"AGENTICPAY_BRIDGE_MAX_PER_CALL": "5000"</span>, // max 0.005 USDC per call
<span class="accent">"AGENTICPAY_BRIDGE_SESSION_BUDGET": "100000"</span> // max 0.10 USDC per session
}
}
</pre>
<p class="text-zinc-400 leading-relaxed">
Amounts are in base units of the payment asset (USDC has 6 decimals).
A refused payment comes back to the agent as an ordinary tool error
and the wallet is never touched. Session budget is counted when a
payment is signed rather than when it settles, so a peer that fails
settlement cannot drain you by retrying.
</p>
<p class="text-xs text-zinc-500">
Both caps are opt-in. Leave them unset and the bridge behaves as
before, which is fine on devnet and a bad idea with real money.
</p>
</section>
<!-- HOSTED FACILITATOR -->
<section class="space-y-4">
<h2 class="text-2xl font-bold">Or just point at our hosted one</h2>
<p class="text-zinc-400">
Skip self-hosting for testing. We run a free devnet facilitator:
</p>
<pre class="bg-zinc-950 border border-zinc-800 p-5 text-sm overflow-x-auto whitespace-pre">
FACILITATOR_URL=https://agentpay-facilitator-e9b20a5fee6a.herokuapp.com
</pre>
<p class="text-xs text-zinc-500">
Devnet only. Mainnet support and hosted commercial tier coming.
</p>
</section>
<!-- WHY -->
<section class="space-y-4">
<h2 class="text-2xl font-bold">Why this exists</h2>
<p class="text-zinc-400 leading-relaxed">
The current AI agent stack assumes humans hold the credit card. That
breaks the moment agents act on their own initiative - calling APIs,
hiring sub-agents, paying for compute. You can't OAuth your way
through it.
</p>
<p class="text-zinc-400 leading-relaxed">
Stablecoin micropayments over HTTP fix it. agenticpay packages the
missing ergonomics for the MCP ecosystem specifically: any tool can
declare a price, any agent can pay it, the whole pipeline including
the facilitator that submits the on-chain settlement is open source
and self-hostable.
</p>
</section>
<!-- WHO'S BUILDING THIS -->
<section
id="author"
class="space-y-4 border-t border-zinc-800 pt-12"
itemscope
itemtype="https://schema.org/Person"
>
<h2 class="text-2xl font-bold">Who's building this</h2>
<div class="flex items-start gap-5">
<img
src="https://avatars.githubusercontent.com/u/6939376?v=4&s=120"
alt="Krystian Gwizdała"
itemprop="image"
class="w-20 h-20 rounded-full border border-zinc-800 flex-shrink-0"
loading="lazy"
/>
<div class="space-y-3 text-zinc-400 leading-relaxed">
<p>
Hi, I'm <span class="text-zinc-200" itemprop="name">Krystian Gwizdała</span> -
a TypeScript engineer based in
<span itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"
><span itemprop="addressLocality">Kraków</span>,
<span itemprop="addressCountry">Poland</span></span
>. 10+ years building web products end-to-end across frontend
and backend (TypeScript, Node, Angular, lately blockchain
integrations). Day job: senior frontend engineer at
<a
href="https://www.testgorilla.com"
rel="noopener"
class="underline decoration-zinc-700 hover:decoration-zinc-300"
itemprop="worksFor"
>TestGorilla</a
>.
</p>
<p>
agenticpay started as a side project after I hit the
agent → tool monetization wall myself. Open to design
partners, contributors, and "hey, this is broken" emails.
</p>
<p class="text-sm pt-2 flex flex-wrap gap-x-4 gap-y-1">
<a
href="https://github.com/krystiangw"
rel="noopener"
class="underline hover:text-zinc-200"
itemprop="sameAs"
onclick="posthog.capture('author_link_click', {target: 'github'})"
>GitHub</a
>
<a
href="https://www.linkedin.com/in/krystiangw"
rel="noopener"
class="underline hover:text-zinc-200"
itemprop="sameAs"
onclick="posthog.capture('author_link_click', {target: 'linkedin'})"
>LinkedIn</a
>
<a
href="https://krystiangw.github.io/krystiangw/"
rel="noopener"
class="underline hover:text-zinc-200"
itemprop="url"
onclick="posthog.capture('author_link_click', {target: 'profile'})"
>profile</a
>
<a
href="mailto:gwizdala.kr@gmail.com"
class="underline hover:text-zinc-200"
itemprop="email"
onclick="posthog.capture('author_link_click', {target: 'email'})"
>email</a
>
</p>
</div>
</div>
</section>
<!-- FOOTER -->
<footer class="border-t border-zinc-800 pt-8 text-sm text-zinc-500">
MIT licensed. Built on
<a href="https://x402.org" class="underline hover:text-zinc-300"
>x402</a
>
+
<a href="https://solana.com" class="underline hover:text-zinc-300"
>Solana</a
>. Pre-alpha - feedback welcome on
<a
href="https://github.com/agenticpay-dev/agenticpay/issues"
class="underline hover:text-zinc-300"
>GitHub issues</a
>.
</footer>
</main>
</body>
</html>