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>
<meta charset="utf-8" />
<title data-i18n="demo_avatar_os_combined.meta_title">Combined · OSS Avatar Pipeline</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex" />
<meta name="theme-color" content="#0a0a0a" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/demo/avatar-os/shared.css" />
</head>
<body>
<header class="os-header">
<div class="brand">
three.ws<span class="tag" data-i18n="demo_avatar_os_combined.avatar_os_combined">avatar-os · combined</span>
</div>
<nav>
<a href="/demo/avatar-os/" data-i18n="demo_avatar_os_combined.overview">overview</a>
<a href="/demo/avatar-os/studio.html" data-i18n="demo_avatar_os_combined.studio">studio</a>
<a href="/demo/avatar-os/selfie.html" data-i18n="demo_avatar_os_combined.selfie">selfie</a>
<a href="/demo/avatar-os/combined.html" class="active" data-i18n="demo_avatar_os_combined.combined">combined</a>
</nav>
</header>
<main class="os-main">
<div class="banner">
<strong data-i18n="demo_avatar_os_combined.selfie_face_on_body_glb">Selfie face on body GLB.</strong> Combines the MediaPipe face
mesh with a body GLB (loaded from a URL, either a Studio-exported file
or the default base body). Exports one merged GLB.
</div>
<div class="os-grid">
<aside>
<div class="os-card">
<h2 data-i18n="demo_avatar_os_combined.1_body_glb">1 · Body GLB</h2>
<p data-i18n="demo_avatar_os_combined.pick_the_body_to_attach_the_face">Pick the body to attach the face to.</p>
<div class="btn-row">
<button id="btn-body-default" class="btn btn-primary" data-i18n="demo_avatar_os_combined.use_default_body">
Use default body
</button>
<button id="btn-body-upload" class="btn" data-i18n="demo_avatar_os_combined.upload_studio_glb">
Upload Studio GLB
</button>
<input
type="file"
id="body-file-input"
accept=".glb,model/gltf-binary"
hidden
/>
</div>
<div class="status" id="body-status">no body loaded</div>
</div>
<div class="os-card" style="margin-top: 16px">
<h2 data-i18n="demo_avatar_os_combined.2_selfie">2 · Selfie</h2>
<p data-i18n="demo_avatar_os_combined.frontal_photo_only_the_face_mesh_demo">Frontal photo only (the face mesh demo handles 3 photos).</p>
<div class="photo-slots" style="grid-template-columns: 1fr">
<label class="photo-slot" data-slot="frontal">
<input type="file" accept="image/*" capture="user" hidden />
<span class="label" data-i18n="demo_avatar_os_combined.frontal_selfie">frontal selfie</span>
</label>
</div>
<div class="status" id="capture-status">no photo</div>
</div>
<div class="os-card" style="margin-top: 16px">
<h2 data-i18n="demo_avatar_os_combined.3_combine">3 · Combine</h2>
<p data-i18n="demo_avatar_os_combined.builds_the_face_mesh_and_parents_it">
Builds the face mesh and parents it to the body's head bone (if
present) or positions it at the body's bounding box top.
</p>
<button id="btn-build" class="btn btn-primary" disabled data-i18n="demo_avatar_os_combined.build_combined_avatar">
Build combined avatar
</button>
<div class="status" id="build-status">waiting</div>
</div>
<div class="os-card" style="margin-top: 16px">
<h2 data-i18n="demo_avatar_os_combined.4_export">4 · Export</h2>
<div class="btn-row">
<button id="btn-download" class="btn" disabled data-i18n="demo_avatar_os_combined.download_merged_glb">
Download merged GLB
</button>
<button id="btn-save" class="btn" disabled data-i18n="demo_avatar_os_combined.save_to_my_avatars">
Save to my avatars
</button>
</div>
<div class="status" id="export-status">build first</div>
</div>
</aside>
<section>
<div class="viewer" id="viewer-host" style="min-height: 600px">
<div class="badge" id="viewer-badge">three.js · idle</div>
<div class="overlay" id="viewer-overlay">
Load a body + selfie, then click <span class="kbd" data-i18n="demo_avatar_os_combined.build_combined_avatar_2">Build combined avatar</span>
</div>
</div>
</section>
</div>
</main>
<script type="module" src="/src/demo/os-combined.js"></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>