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
// Channel storage directory for the batch-settlement scheme.
//
// FileClientChannelStorage writes one JSON per channel into `{root}/client/`.
// We pin the root at `~/.x402-mcp-bridge/channels` so the bridge survives
// Claude Desktop restarts — the second call to a batch endpoint reads the
// voucher state written by the first, instead of redepositing.
import { mkdirSync } from 'node:fs';
import { homedir } from 'node:os';
import { join } from 'node:path';
export function getChannelsDirectory() {
const override = process.env.X402_MCP_BRIDGE_CHANNELS_DIR;
const root = override && override.trim() ? override : join(homedir(), '.x402-mcp-bridge', 'channels');
mkdirSync(join(root, 'client'), { recursive: true });
return root;
}