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(rig): route rerig to the deployed UniRig worker via GCP_UNIRIG_URL

fudjia26eef087d0bf
diff --git a/.env.example b/.env.example
index a48137da1..b1efc0ce6 100644
--- a/.env.example
+++ b/.env.example
@@ -1212,6 +1212,10 @@ GCP_RECONSTRUCTION_KEY=
# Cloud Run service URLs — set after deploying each worker:
# workers/avatar-pipeline-controller → avatar reconstruction (image → GLB)
GCP_RECONSTRUCTION_URL=
+# workers/unirig → auto-rigging (GLB → rigged GLB).
+# Required for /api/forge?action=rig: without it rerig falls back to
+# GCP_RECONSTRUCTION_URL, whose deployed service has no /rig endpoint.
+GCP_UNIRIG_URL=
# workers/rembg → background removal (image → PNG)
GCP_REMBG_URL=
# workers/remesh → mesh processing (GLB → clean GLB)
diff --git a/docs/ops/gcp-model-workers.md b/docs/ops/gcp-model-workers.md
index 59a047d80..9abf60db5 100644
--- a/docs/ops/gcp-model-workers.md
+++ b/docs/ops/gcp-model-workers.md
@@ -48,7 +48,8 @@ faked.
| `MODEL_TRELLIS_URL` | `trellis_selfhost` | Cloud Run URL of `model-trellis`. |
| `GCP_HUNYUAN3D_URL` | `hunyuan3d` | Cloud Run URL of `model-hunyuan3d`. **Not** `GCP_RECONSTRUCTION_URL` — that is the avatar face pipeline, which rejects non-face images. |
| `GCP_TRIPOSG_URL` | `triposg` (sketch) | Cloud Run URL of `model-triposg`. |
-| `GCP_RECONSTRUCTION_KEY`| all of the above | Shared bearer secret every worker checks. |
+| `GCP_UNIRIG_URL` | auto-rig (`rerig`) | Cloud Run URL of `unirig`. Required for rigging: without it, `rerig` falls back to `GCP_RECONSTRUCTION_URL`, whose deployed service exposes no `/rig` — every rig submit 404s. The provider speaks the worker's native schema (`mesh_gcs_url` in, `rigged_gcs_url` out) when this is set. |
+| `GCP_RECONSTRUCTION_KEY`| all of the above | Shared bearer secret every worker checks (`avatar-reconstruction-key` in Secret Manager — `unirig`'s `API_KEY` references the same secret). |
| `GCP_REMESH_URL` | Game-Ready export | `model`/`remesh` worker (post-gen). |
| `FORGE_PREFER_FREE` | routing (optional) | Defaults on. Set `false` only to restore the paid-default ordering once the paid account is funded. |