Skip to content

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.

13.5 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
	<style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>
	<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1" />
	<title data-i18n="x_pricing.meta_title">Pricing · three.ws</title>
	<meta name="description" content="Simple, transparent pricing for three.ws — the 3D agent layer of the internet."  data-i18n-attr="content:x_pricing.meta_description"/>
	<meta property="og:type" content="website" />
	<meta property="og:site_name" content="three.ws" />
	<meta property="og:url" content="https://three.ws/pricing" />
	<meta property="og:title" content="Pricing · three.ws"  data-i18n-attr="content:x_pricing.meta_og_title"/>
	<meta property="og:description" content="Simple, transparent pricing for three.ws — the 3D agent layer of the internet."  data-i18n-attr="content:x_pricing.meta_og_description"/>
	<meta property="og:image" content="https://three.ws/og-image.png" />
	<meta name="twitter:card" content="summary_large_image" />
	<meta name="twitter:site" content="@trythreews" />
	<meta name="twitter:title" content="Pricing · three.ws"  data-i18n-attr="content:x_pricing.meta_twitter_title"/>
	<meta name="twitter:image" content="https://three.ws/og-image.png" />
		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
	<style>
		:root { color-scheme: dark; --accent:#ffffff; --accent2:#cccccc; --border:#222222; --bg:#000000; --panel:#141414; }
		* { box-sizing: border-box; }
		body { font: 15px/1.55 -apple-system, system-ui, Segoe UI, Roboto, sans-serif; color:#eee; margin:0; background:var(--bg); min-height:100vh; }
		.wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 80px; }
		h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.02em; }
		.sub { color:#888; margin: 0 0 36px; font-size:15px; }
		.grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
		@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
		.card { background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:28px 24px; display:flex; flex-direction:column; }
		.card.pro { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; position:relative; }
		.tag { position:absolute; top:-10px; right:18px; background:var(--accent); color:#fff; font-size:11px; padding:3px 10px; border-radius:99px; font-weight:600; letter-spacing:0.05em; }
		.tier { font-size:13px; text-transform:uppercase; letter-spacing:0.08em; color:#888; font-weight:600; }
		.price { font-size:38px; margin:8px 0 4px; font-weight:600; letter-spacing:-0.01em; }
		.price small { font-size:14px; color:#888; font-weight:400; }
		.feat { list-style:none; padding:0; margin:18px 0 0; }
		.feat li { padding:8px 0; border-bottom:1px solid #1c1c1c; color:#ccc; font-size:14px; display:flex; align-items:center; gap:8px; }
		.feat li:last-child { border-bottom:none; }
		.feat li::before { content:"✓"; color:var(--accent); font-weight:600; }
		.btn { padding:12px 16px; border-radius:10px; border:0; background:var(--accent); color:#fff; font-size:14px; font-weight:600; cursor:pointer; margin-top:auto; }
		.btn:hover { filter:brightness(1.1); }
		.btn.sec { background:#222222; color:#ddd; }
		.asset-btn { margin-top:0; padding:8px 14px; }
		.asset-btn[aria-pressed="true"] { background:var(--accent); color:#000; }
		#three-off { color:var(--success, #4ade80); font-weight:600; }
		.asset-btn[aria-pressed="true"] #three-off { color:#05610f; }
		.btn:disabled { opacity:0.5; cursor:not-allowed; }
		.checkout { display:none; margin-top:36px; padding:24px; border:1px solid var(--accent); border-radius:14px; background:rgba(255,255,255,0.04); }
		.checkout.show { display:block; }
		.qr { display:block; width:200px; height:200px; margin:16px 0; background:#fff; padding:10px; border-radius:10px; }
		code.payurl { display:block; font-size:11px; word-break:break-all; padding:10px; background:#0f0f0f; border:1px solid var(--border); border-radius:8px; color:#cccccc; margin:10px 0; }
		.muted { color:#888; font-size:13px; }
		.status { margin-top:12px; font-size:13px; }
		.ok { color:var(--success, #4ade80); }
		.err { color:#ffb3b3; }
		a { color:#cccccc; }
		header { padding:18px 24px; border-bottom:1px solid var(--border); }
		header a { color:#aaa; text-decoration:none; font-size:14px; }
	</style>
	<link rel="stylesheet" href="/mobile.css" />
</head>
<body>
	<header><a href="/" data-i18n="x_pricing.three_ws">← three.ws</a></header>
	<div class="wrap">
		<h1 data-i18n="x_pricing.pricing">Pricing</h1>
		<p class="sub" data-i18n-html="x_pricing.run_autonomous_ai_agents_that_post_trade">Run autonomous AI agents that post, trade, and earn on-chain. <span id="current-plan" class="muted"></span></p>

		<div class="grid">
			<div class="card">
				<div class="tier">Free</div>
				<div class="price">$0<small data-i18n="x_pricing.month"> /month</small></div>
				<ul class="feat">
					<li data-i18n="x_pricing.5_x_posts_per_month">5 X posts per month</li>
					<li data-i18n="x_pricing.1_post_every_30_min">1 post every 30 min</li>
					<li data-i18n="x_pricing.all_trigger_types_daily_weekly_milestones">All trigger types (daily, weekly, milestones)</li>
					<li data-i18n="x_pricing.ai_drafted_tweets_with_tone_presets">AI-drafted tweets with tone presets</li>
					<li data-i18n="x_pricing.manual_scheduled_posts">Manual + scheduled posts</li>
					<li data-i18n="x_pricing.engagement_analytics">Engagement analytics</li>
				</ul>
				<button class="btn sec" disabled data-i18n="x_pricing.you_re_on_free">You're on Free</button>
			</div>
			<div class="card pro">
				<div class="tag">Recommended</div>
				<div class="tier">Pro</div>
				<div class="price"><span id="pro-price">$49</span><small data-i18n="x_pricing.month_2"> /month</small></div>
				<div class="muted" id="three-note" style="font-size:12px"></div>
				<ul class="feat">
					<li data-i18n="x_pricing.100_x_posts_per_month">100 X posts per month</li>
					<li data-i18n="x_pricing.1_post_every_5_min">1 post every 5 min</li>
					<li data-i18n="x_pricing.threads_multi_tweet_posts">Threads (multi-tweet posts)</li>
					<li data-i18n="x_pricing.review_before_publish_mode">Review-before-publish mode</li>
					<li data-i18n="x_pricing.multi_draft_picker_3_options">Multi-draft picker (3 options)</li>
					<li data-i18n="x_pricing.priority_support">Priority support</li>
				</ul>
				<button class="btn" id="upgrade-btn" data-i18n="x_pricing.upgrade_pay_in_usdc_sol_or_three">Upgrade — pay in USDC, SOL, or $THREE</button>
			</div>
		</div>

		<div class="checkout" id="checkout">
			<h3 style="margin:0 0 8px" id="checkout-title" data-i18n="x_pricing.pay_on_solana">Pay on Solana</h3>
			<div id="asset-row" style="display:flex; gap:8px; margin:2px 0 12px; flex-wrap:wrap">
				<button class="btn sec asset-btn" data-asset="USDC" aria-pressed="true" data-i18n="x_pricing.usdc">USDC</button>
				<button class="btn sec asset-btn" data-asset="SOL" aria-pressed="false" data-i18n="x_pricing.sol">SOL</button>
				<button class="btn sec asset-btn" data-asset="THREE" aria-pressed="false" data-i18n-html="x_pricing.three">$THREE <span id="three-off"></span></button>
			</div>
			<p class="muted" data-i18n="x_pricing.scan_with_phantom_or_any_solana_wallet">Scan with Phantom or any Solana wallet, or open the link on the device with your wallet.</p>
			<img class="qr" id="qr" alt="Solana Pay QR" />
			<code class="payurl" id="payurl"></code>
			<a class="btn" id="open-link" target="_blank" rel="noopener" style="display:inline-block; text-align:center; text-decoration:none" data-i18n="x_pricing.open_in_wallet">Open in wallet</a>
			<div class="muted" style="margin-top:14px">After paying, paste the transaction signature:</div>
			<input id="txsig" placeholder="Transaction signature" style="width:100%; margin-top:6px; padding:9px 11px; background:#0f0f0f; border:1px solid var(--border); border-radius:8px; color:#eee; font-size:13px; font-family:inherit" />
			<button class="btn" id="confirm-btn" style="margin-top:10px" data-i18n="x_pricing.i_ve_paid_confirm">I've paid — confirm</button>
			<div class="status" id="status"></div>
		</div>
	</div>

	<script type="module">
		const $ = (id) => document.getElementById(id);
		const setStatus = (text, cls = '') => { $('status').textContent = text; $('status').className = 'status ' + cls; };

		let currentIntent = null;
		let selectedAsset = 'USDC';
		const assetLabel = (a) => (a === 'THREE' ? '$THREE' : a);

		// Server-truth plan prices + the $THREE discount.
		try {
			const r = await fetch('/api/payments/solana/plans');
			if (r.ok) {
				const d = await r.json();
				const pro = d.plans?.pro;
				if (pro) {
					$('pro-price').textContent = `$${pro.price_usd}`;
					if (d.three_discount_bps > 0) {
						const pct = (d.three_discount_bps / 100).toFixed(0);
						$('three-note').textContent = `or $${pro.three_price_usd} in $THREE (${pct}% off)`;
						$('three-off').textContent = `−${pct}%`;
					}
				}
			}
		} catch {}

		// Show current plan if signed in.
		try {
			const r = await fetch('/api/x/status', { credentials: 'include' });
			if (r.ok) {
				const d = await r.json();
				$('current-plan').textContent = d.tier === 'pro' ? "You're already on Pro." : '';
				if (d.tier === 'pro') $('upgrade-btn').textContent = 'Already Pro ✓', $('upgrade-btn').disabled = true;
			}
		} catch {}

		async function createCheckout() {
			// In the iOS app, plans are bought on three.ws in Safari.
			if (window.threeWsNative?.requireSafari?.() === true) return;
			$('upgrade-btn').disabled = true;
			$('upgrade-btn').textContent = 'Creating checkout…';
			setStatus('');
			try {
				const r = await fetch('/api/payments/solana/checkout', {
					method: 'POST',
					credentials: 'include',
					headers: { 'content-type': 'application/json' },
					body: JSON.stringify({ plan: 'pro', asset: selectedAsset, network: 'mainnet' }),
				});
				const d = await r.json();
				if (!r.ok) throw new Error(d.error_description || 'checkout failed');
				currentIntent = d;
				$('checkout-title').textContent = `Pay ${d.amount_asset} ${assetLabel(d.asset)} on Solana`;
				$('payurl').textContent = d.solana_pay_url;
				$('qr').src = `https://api.qrserver.com/v1/create-qr-code/?size=400x400&data=${encodeURIComponent(d.solana_pay_url)}`;
				$('open-link').href = d.solana_pay_url;
				$('checkout').classList.add('show');
				$('upgrade-btn').textContent = 'Pay below ↓';
			} catch (err) {
				$('upgrade-btn').disabled = false;
				$('upgrade-btn').textContent = 'Upgrade — pay in USDC, SOL, or $THREE';
				alert(err.message);
			}
		}

		$('upgrade-btn').addEventListener('click', createCheckout);

		// Switching the asset re-quotes: SOL and $THREE amounts are pinned per
		// checkout session, so a new asset always needs a fresh intent.
		for (const btn of document.querySelectorAll('.asset-btn')) {
			btn.addEventListener('click', () => {
				if (btn.dataset.asset === selectedAsset) return;
				selectedAsset = btn.dataset.asset;
				for (const b of document.querySelectorAll('.asset-btn'))
					b.setAttribute('aria-pressed', String(b === btn));
				if ($('checkout').classList.contains('show')) createCheckout();
			});
		}

		// Confirm, retrying while the tx finalizes — the API only accepts
		// finalized transactions, which takes ~10-30s after landing.
		let confirmTries = 0;
		async function confirmPayment() {
			const txsig = $('txsig').value.trim();
			if (!txsig) return setStatus('Paste the transaction signature first.', 'err');
			if (!currentIntent) return setStatus('No active checkout — click Upgrade first.', 'err');
			$('confirm-btn').disabled = true;
			setStatus('Verifying transaction on-chain…');
			try {
				const r = await fetch('/api/payments/solana/confirm', {
					method: 'POST',
					credentials: 'include',
					headers: { 'content-type': 'application/json' },
					body: JSON.stringify({ intent_id: currentIntent.intent_id, tx_signature: txsig, network: 'mainnet' }),
				});
				const d = await r.json();
				if (r.ok) {
					setStatus(`You're Pro until ${new Date(d.active_until).toLocaleDateString()}. Redirecting…`, 'ok');
					setTimeout(() => { location.href = '/dashboard'; }, 1800);
					return;
				}
				if (d.error === 'tx_not_found' && confirmTries < 30) {
					confirmTries += 1;
					setStatus('Waiting for the transaction to finalize… retrying automatically.');
					setTimeout(confirmPayment, 6000);
					return;
				}
				throw new Error(d.error_description || 'confirm failed');
			} catch (err) {
				setStatus(err.message, 'err');
				$('confirm-btn').disabled = false;
			}
		}
		$('confirm-btn').addEventListener('click', () => { confirmTries = 0; confirmPayment(); });
	</script>
	<script src="/brand.js" defer></script>
	<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>