Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
<!doctype html>
<html lang="en">
<head>
<script>/* three.ws theme boot: no-flash */(function(){try{var t=localStorage.getItem('theme');if(t==='light')document.documentElement.dataset.theme='light';}catch(e){}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n="x402_studio.meta_title">x402 Studio · three.ws</title>
<meta name="description" content="The Stripe of x402. Configure prices, payout and agent wallets, products, security, CORS, charity and round-up giving, and publish a drag-and-drop storefront. All settled on-chain in USDC." data-i18n-attr="content:x402_studio.meta_description"/>
<meta property="og:title" content="x402 Studio: the Stripe of x402" data-i18n-attr="content:x402_studio.meta_og_title"/>
<meta property="og:description" content="Run a paid x402 business: agent wallets, products, a drag-and-drop storefront, charity + round-up giving. On-chain USDC settlement." data-i18n-attr="content:x402_studio.meta_og_description"/>
<meta property="og:type" content="website" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/tokens.css" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<style>
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
background: var(--bg-0);
color: var(--ink);
font-family: var(--font-body);
font-size: var(--text-ui);
line-height: var(--leading-normal);
-webkit-font-smoothing: antialiased;
min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; color: var(--ink-bright); font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
button { font-family: inherit; }
/* One explicit keyboard focus ring for every control, so the indicator never
depends on a UA default that a background or border rule can swallow. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
border-radius: var(--radius-sm, 6px);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--stroke-strong); border-radius: 99px; }
/* ---- Shell ---- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.side {
position: sticky; top: 0; align-self: start; height: 100dvh;
display: flex; flex-direction: column;
border-right: 1px solid var(--stroke);
background: var(--bg-1);
padding: var(--space-4) var(--space-3);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand .mark {
width: 30px; height: 30px; border-radius: var(--radius-md);
background: linear-gradient(135deg, var(--accent-grad-a, #6366f1), var(--accent-grad-b, #0a84ff));
display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15px;
}
.brand .name { font-family: var(--font-display); font-weight: 600; color: var(--ink-bright); font-size: var(--text-base); }
.brand .name small { display:block; color: var(--ink-faint); font-weight: 500; font-size: var(--text-2xs); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button {
display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
padding: 9px 11px; border: 0; background: transparent; color: var(--ink-dim);
border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-md); font-weight: 500;
transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.nav button:hover { background: var(--surface-1); color: var(--ink); }
.nav button.active { background: var(--surface-2); color: var(--ink-bright); }
.nav button .ic { width: 18px; text-align: center; opacity: .85; }
.nav .sep { height: 1px; background: var(--stroke); margin: 10px 4px; }
.side .foot { margin-top: auto; padding: 10px 8px; font-size: var(--text-2xs); color: var(--ink-faint); }
.side .foot a { color: var(--ink-dim); }
.side .foot a:hover { color: var(--ink); }
.main { min-width: 0; }
.topbar {
position: sticky; top: 0; z-index: 5;
display: flex; align-items: center; gap: var(--space-3);
padding: 14px var(--space-6); border-bottom: 1px solid var(--stroke);
background: color-mix(in oklab, var(--bg-0) 80%, transparent);
backdrop-filter: blur(var(--blur-md));
}
.topbar h1 { font-size: var(--text-lg); }
.topbar .crumb { color: var(--ink-faint); font-size: var(--text-md); }
.topbar .spacer { margin-left: auto; }
.content { padding: var(--space-6); max-width: 1080px; }
.content section { display: none; animation: fade var(--duration-base) var(--ease-out); }
.content section.show { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* ---- Primitives ---- */
.card { background: var(--surface-glass); border: 1px solid var(--stroke); border-radius: var(--radius-lg); padding: var(--space-5); }
.card + .card { margin-top: var(--space-4); }
.card h2 { font-size: var(--text-base); margin-bottom: 4px; }
.card h2 + .sub { margin-top: 0; }
.sub { color: var(--ink-dim); font-size: var(--text-md); margin: 2px 0 var(--space-4); }
.row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.grid { display: grid; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.field > .flab { font-size: var(--text-sm); color: var(--ink-dim); font-weight: 500; }
.field > label.flab { cursor: pointer; }
.field .hint { font-size: var(--text-2xs); color: var(--ink-faint); }
input, select, textarea {
width: 100%; padding: 9px 11px; background: var(--bg-1); color: var(--ink-bright);
border: 1px solid var(--stroke); border-radius: var(--radius-md); font-size: var(--text-md); font-family: inherit;
transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
textarea { resize: vertical; min-height: 70px; font-family: var(--font-mono); font-size: var(--text-sm); }
input[type=color] { padding: 2px; height: 38px; cursor: pointer; }
.mono { font-family: var(--font-mono); }
.btn {
display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-md);
border: 1px solid transparent; cursor: pointer; font-size: var(--text-md); font-weight: 600;
transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink, #061018); }
.btn.primary:hover { background: var(--ink-bright); }
.btn.ghost { background: var(--surface-1); color: var(--ink); border-color: var(--stroke); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--stroke-strong); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, transparent); }
.btn.danger:hover { background: color-mix(in oklab, var(--danger) 14%, transparent); }
.btn.sm { padding: 6px 10px; font-size: var(--text-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); }
.stat { background: var(--surface-glass); border: 1px solid var(--stroke); border-radius: var(--radius-lg); padding: var(--space-4); }
.stat .k { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.stat .v { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--ink-bright); font-weight: 600; margin-top: 4px; }
.stat .d { font-size: var(--text-xs); color: var(--ink-dim); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: var(--text-2xs); font-weight: 600; border: 1px solid var(--stroke); color: var(--ink-dim); }
.pill.ok { color: var(--success); border-color: color-mix(in oklab, var(--success) 40%, transparent); background: color-mix(in oklab, var(--success) 12%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 40%, transparent); background: color-mix(in oklab, var(--warn) 12%, transparent); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
th { text-align: left; color: var(--ink-faint); font-weight: 500; font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--stroke); }
td { padding: 11px 10px; border-bottom: 1px solid var(--stroke); color: var(--ink); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; padding: var(--space-7) var(--space-4); color: var(--ink-dim); }
.empty .ico { font-size: 30px; opacity: .5; margin-bottom: 10px; }
.empty h1, .empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .row { justify-content: center; }
.list-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--stroke); border-radius: var(--radius-md); background: var(--surface-1); }
.list-item + .list-item { margin-top: 8px; }
/* The setup checklist rows are <button>s, so they need the element reset a div
never did: full width, inherited type, left-aligned text. */
.list-item.step { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.list-item.step:hover { background: var(--surface-2); border-color: var(--stroke-strong); }
.list-item .meta .t, .list-item .meta .s { display: block; }
.list-item .avatar { width: 38px; height: 38px; border-radius: var(--radius-md); display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; overflow: hidden; }
.list-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.list-item .meta { min-width: 0; flex: 1; }
.list-item .meta .t { color: var(--ink-bright); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .meta .s { color: var(--ink-dim); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .acts { display: flex; gap: 6px; flex: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 40px; height: 22px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--stroke-strong); position: relative; transition: background var(--duration-fast); flex: none; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-bright); transition: transform var(--duration-fast) var(--ease-standard); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .lab { font-size: var(--text-md); color: var(--ink); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 720px) { .cols-2 { grid-template-columns: 1fr; } }
/* ---- Modal ---- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 50; display: none; align-items: center; justify-content: center; padding: var(--space-4); }
.scrim.show { display: flex; animation: fade var(--duration-fast) var(--ease-out); }
.modal { width: min(560px, 100%); max-height: 88dvh; overflow: auto; background: var(--bg-1); border: 1px solid var(--stroke-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.modal header { display: flex; align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--stroke); position: sticky; top: 0; background: var(--bg-1); }
.modal header h3 { font-size: var(--text-base); }
.modal header .x { margin-left: auto; background: transparent; border: 0; color: var(--ink-dim); font-size: 22px; cursor: pointer; line-height: 1; }
.modal header .x:hover { color: var(--ink-bright); }
.modal .body { padding: var(--space-5); }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--stroke); position: sticky; bottom: 0; background: var(--bg-1); }
/* ---- Toast ---- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 15px; border-radius: var(--radius-md); background: var(--bg-1); border: 1px solid var(--stroke-strong); color: var(--ink-bright); font-size: var(--text-md); box-shadow: var(--shadow-3); animation: slidein var(--duration-base) var(--ease-emphasized); max-width: 340px; }
.toast.ok { border-color: color-mix(in oklab, var(--success) 50%, transparent); }
.toast.err { border-color: color-mix(in oklab, var(--danger) 50%, transparent); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, var(--surface-1), var(--surface-2), var(--surface-1)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* ---- Builder (storefront) ---- */
.builder { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
.palette .chip { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; margin-bottom: 6px; border: 1px dashed var(--stroke-strong); border-radius: var(--radius-md); background: var(--surface-1); color: var(--ink); cursor: grab; font-size: var(--text-md); text-align: left; }
.palette .chip:hover { border-color: var(--accent); background: var(--surface-2); }
.canvas { border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--bg-1); min-height: 320px; padding: var(--space-3); }
.canvas.drop { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) inset; }
.block { border: 1px solid var(--stroke); border-radius: var(--radius-md); background: var(--surface-1); padding: var(--space-3); margin-bottom: 8px; cursor: grab; position: relative; }
.block.dragging { opacity: .4; }
.block .bhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.block .bhead .type { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; }
.block .bhead .acts { margin-left: auto; display: flex; gap: 4px; }
.block .bhead .acts button { background: transparent; border: 0; color: var(--ink-dim); cursor: pointer; font-size: 13px; padding: 2px 5px; border-radius: 6px; }
.block .bhead .acts button:hover { background: var(--surface-2); color: var(--ink-bright); }
.block .bprev { color: var(--ink-dim); font-size: var(--text-sm); }
.embed-preview { border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--bg-1); padding: var(--space-6); display: grid; place-items: center; min-height: 180px; background-image: radial-gradient(var(--stroke) 1px, transparent 1px); background-size: 18px 18px; }
.code { position: relative; background: var(--bg-1); border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: var(--space-4); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--stroke); background: var(--surface-1); font-size: var(--text-md); color: var(--ink-dim); margin-bottom: var(--space-4); }
.banner.warn { border-color: color-mix(in oklab, var(--warn) 40%, transparent); background: color-mix(in oklab, var(--warn) 10%, transparent); }
.banner .ic { flex: none; }
/* Wraps rather than crushing the description into a one-word column when the
header and its action button cannot share a line (phone widths). */
.section-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.section-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.section-head .spacer { margin-left: auto; }
@media (max-width: 560px) {
.section-head .spacer { display: none; }
.section-head > .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 860px) {
.app { grid-template-columns: 1fr; }
/* min-width:0 is load-bearing: a grid item defaults to min-width:auto, so the
tab strip's intrinsic width would stretch the whole shell past the
viewport and clip every card to its right. */
.side { position: static; height: auto; align-items: stretch; padding: 8px; min-width: 0; }
.side .brand { display: none; }
/* The rail collapses to a scrolling tab strip, but its two outbound links
stay on the page: hiding them made /x402 and the classic dashboard
unreachable from a phone. */
.side .foot { margin-top: 6px; padding: 0 8px 2px; }
.nav { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav .sep { display: none; }
.nav button { white-space: nowrap; width: auto; }
.topbar { padding: 12px var(--space-4); }
.content { padding: var(--space-4); }
}
</style>
<link rel="canonical" href="https://three.ws/x402/studio">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
<meta property="og:site_name" content="three.ws">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="https://three.ws/x402/studio">
<meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=x402+Studio%3A+the+Stripe+of+x402&d=Merchant+console+to+run+a+paid+x402+business%3A+products+and+pricing%2C+payout+and+agent+wallets%2C+a+real+USDC+send%2Freceive+with+SNS+.sol+resolution%2C+a&p=%2Fx402%2Fstudio">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:type" content="image/png">
<meta property="og:image:alt" content="x402 Studio: the Stripe of x402 - three.ws">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@trythreews">
<meta name="twitter:title" content="x402 Studio: the Stripe of x402 · three.ws" data-i18n-attr="content:x402_studio.meta_twitter_title">
<meta name="twitter:description" content="Merchant console to run a paid x402 business: products and pricing, payout and agent wallets, a real USDC send/receive with SNS .sol resolution, a drag-and-drop storefront, an embeddable pay-button builder, charity and round-up giving, CORS and security." data-i18n-attr="content:x402_studio.meta_twitter_description">
<meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=x402+Studio%3A+the+Stripe+of+x402&d=Merchant+console+to+run+a+paid+x402+business%3A+products+and+pricing%2C+payout+and+agent+wallets%2C+a+real+USDC+send%2Freceive+with+SNS+.sol+resolution%2C+a&p=%2Fx402%2Fstudio">
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"x402 Studio: the Stripe of x402","description":"Merchant console to run a paid x402 business: products and pricing, payout and agent wallets, a real USDC send/receive with SNS .sol resolution, a drag-and-drop storefront, an embeddable pay-button builder, charity and round-up giving, CORS and security.","url":"https://three.ws/x402/studio","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=x402+Studio%3A+the+Stripe+of+x402&d=Merchant+console+to+run+a+paid+x402+business%3A+products+and+pricing%2C+payout+and+agent+wallets%2C+a+real+USDC+send%2Freceive+with+SNS+.sol+resolution%2C+a+drag-and-drop&p=%2Fx402%2Fstudio"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://three.ws/"},{"@type":"ListItem","position":2,"name":"X402","item":"https://three.ws/x402"},{"@type":"ListItem","position":3,"name":"Studio","item":"https://three.ws/x402/studio"}]}]}</script>
</head>
<body>
<div id="root">
<div class="empty" style="min-height:100dvh;display:grid;place-content:center;">
<div class="skeleton" style="width:220px;height:24px;margin:0 auto 12px"></div>
<h1 class="sub" style="font-size:var(--text-md);font-weight:500">Loading x402 Studio…</h1>
</div>
</div>
<div class="toasts" id="toasts"></div>
<script type="module" src="/x402/studio.js"></script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>