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.

fix(pipeline-controller): give the storage client the project instead of inferring it

nirholas7c62ca265807
diff --git a/workers/avatar-pipeline-controller/main.py b/workers/avatar-pipeline-controller/main.py
index 3bcc1c880..c0dafa7c6 100644
--- a/workers/avatar-pipeline-controller/main.py
+++ b/workers/avatar-pipeline-controller/main.py
@@ -124,7 +124,11 @@ MAX_GLB_BYTES = 512 * 1024 * 1024
async def lifespan(app: FastAPI):
global _db, _bucket, _http
_db = firestore.Client(project=FIRESTORE_PROJECT)
- _bucket = storage.Client().bucket(GCS_BUCKET)
+ # Pass the project explicitly, exactly like the Firestore client above. A
+ # bare storage.Client() infers it from the environment, which works on Cloud
+ # Run (metadata server) but aborts startup anywhere that inference fails,
+ # e.g. running this image locally without GOOGLE_CLOUD_PROJECT set.
+ _bucket = storage.Client(project=FIRESTORE_PROJECT).bucket(GCS_BUCKET)
_http = httpx.AsyncClient(timeout=httpx.Timeout(30.0, read=300.0))
log.info(
"Controller ready — backends=%s, weights=%s, unirig=%s, skip_rigging=%s",