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.

feat: add wallet connection and payment support with validation for Solana and EVM addresses

nirholasf8a6602ba01f
diff --git a/rider/src/components/agent-dance.js b/rider/src/components/agent-dance.js
new file mode 100644
index 000000000..81d027a9f
--- /dev/null
+++ b/rider/src/components/agent-dance.js
@@ -0,0 +1,28 @@
+AFRAME.registerComponent('agent-dance', {
+ schema: {
+ src: { default: '/assets/dance.json' }
+ },
+
+ init: function () {
+ const el = this.el;
+ const onLoaded = () => {
+ const mesh = el.getObject3D('mesh');
+ if (!mesh) return;
+ fetch(this.data.src)
+ .then(r => r.ok ? r.json() : null)
+ .then(json => {
+ if (!json) return;
+ const clip = THREE.AnimationClip.parse(json);
+ this.mixer = new THREE.AnimationMixer(mesh);
+ this.mixer.clipAction(clip).play();
+ })
+ .catch(() => {});
+ };
+ if (el.getObject3D('mesh')) { onLoaded(); }
+ else { el.addEventListener('model-loaded', onLoaded); }
+ },
+
+ tick: function (t, dt) {
+ if (this.mixer) { this.mixer.update(dt / 1000); }
+ }
+});
diff --git a/rider/src/scene.html b/rider/src/scene.html
index 3fd3d48c9..9cb52d064 100644
--- a/rider/src/scene.html
+++ b/rider/src/scene.html
@@ -147,6 +147,7 @@
<a-entity
id="agentCompanion"
gltf-model="#agentGlb"
+ agent-dance
position="0.7 0.45 0.5"
rotation="0 -15 0"
scale="0.9 0.9 0.9"></a-entity>