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
.shader-toggle,
.shader-toggle *,
.shader-toggle *::before,
.shader-toggle *::after {
box-sizing: border-box;
}
.shader-toggle {
--shader-toggle-hue: 0deg;
--shader-toggle-saturation: 1;
--shader-toggle-brightness: 1;
--shader-toggle-stage: #f4f6fa;
--shader-toggle-caption: rgba(17, 22, 34, 0.5);
--shader-toggle-caption-on: rgba(17, 22, 34, 0.78);
--shader-toggle-focus: rgba(58, 120, 255, 0.45);
position: relative;
display: block;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
overflow: hidden;
isolation: isolate;
container-type: size;
background: var(--shader-toggle-stage);
color-scheme: light;
filter: hue-rotate(var(--shader-toggle-hue)) saturate(var(--shader-toggle-saturation)) brightness(var(--shader-toggle-brightness));
font-family: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.shader-toggle[data-mode="dark"] {
--shader-toggle-stage: #06070b;
--shader-toggle-caption: rgba(233, 238, 250, 0.46);
--shader-toggle-caption-on: rgba(233, 238, 250, 0.82);
--shader-toggle-focus: rgba(122, 168, 255, 0.5);
color-scheme: dark;
}
.shader-toggle__canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
/* A real control sitting exactly over the drawn capsule, so the scene stays
keyboard- and screen-reader-operable. */
.shader-toggle__switch {
position: absolute;
left: 50%;
top: 50%;
width: 200px;
height: 112px;
padding: 0;
border: 0;
border-radius: 999px;
background: transparent;
transform: translate(-50%, -50%);
cursor: pointer;
appearance: none;
}
.shader-toggle__switch:focus-visible {
outline: none;
box-shadow: 0 0 0 4px var(--shader-toggle-focus);
}
.shader-toggle__caption {
position: absolute;
left: 50%;
/* The control keeps 13% of the stage height, so the caption tracks the centre
rather than the floor — otherwise it drifts away in a tall frame. */
top: calc(50% + max(52px, 11cqh));
transform: translateX(-50%);
display: flex;
align-items: baseline;
gap: 0.55em;
margin: 0;
font-size: clamp(11px, 1.9cqw, 14px);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--shader-toggle-caption);
transition: color 0.45s ease;
pointer-events: none;
}
.shader-toggle[data-state="on"] .shader-toggle__caption {
color: var(--shader-toggle-caption-on);
}
.shader-toggle__caption b {
font-weight: 500;
}
.shader-toggle__fallback {
position: absolute;
inset: 0;
display: grid;
place-items: center;
padding: 24px;
text-align: center;
font-size: 13px;
line-height: 1.5;
color: var(--shader-toggle-caption);
}