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.

add xspace-agent/providers/index.js

overstepping71468e0b85b1
diff --git a/xspace-agent/providers/index.js b/xspace-agent/providers/index.js
new file mode 100644
index 000000000..42220e56d
--- /dev/null
+++ b/xspace-agent/providers/index.js
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§69]
+
+// DEPRECATED: Use packages/core (xspace-agent) instead.
+// This file is kept for backward compatibility with server.js.
+// Will be removed in v1.0.
+
+const AI_PROVIDER = (process.env.AI_PROVIDER || "openai").toLowerCase()
+
+function createProvider() {
+ switch (AI_PROVIDER) {
+ case "claude":
+ return require("./claude")
+ case "groq":
+ return require("./groq")
+ case "openai-chat":
+ return require("./openai-chat")
+ case "openai":
+ default:
+ return require("./openai-realtime")
+ }
+}
+
+module.exports = { createProvider, AI_PROVIDER }
+
+