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 support for dedicated Upstash cache store in configuration

udvk66146abbdf26
diff --git a/docs/configuration.md b/docs/configuration.md
index 58610bf7f..cf26743d9 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -172,6 +172,17 @@ UPSTASH_REDIS_REST_TOKEN=xxxxx
Get from [upstash.com](https://upstash.com). Without Redis, rate limiting falls back to per-instance in-memory state — ineffective in a multi-instance serverless environment and a security risk in production.
+#### `UPSTASH_CACHE_REST_URL`
+#### `UPSTASH_CACHE_REST_TOKEN`
+**Optional, recommended at scale.** A *second*, dedicated Upstash store for the best-effort response caches (galaxy feed, pulse, agent/explore lists, provider health). The variables above back the fail-closed rate limiter; the caches write much larger bodies. On a single shared free store those large writes contend for connections and burn the limiter's command quota — the cause of the `redis SET failed … aborted due to timeout` warnings on `/api/galaxy/flows`.
+
+```
+UPSTASH_CACHE_REST_URL=https://yyy.upstash.io
+UPSTASH_CACHE_REST_TOKEN=yyyyy
+```
+
+Provision a separate store **co-located with your production Vercel region** (cross-region latency is what pushes large `SET`s past the 3s client timeout). When unset, the cache transparently falls back to the rate-limiter store, then to in-memory — no behavior change. Verify the cutover on the Upstash dashboard: command traffic shifts to the new store and the limiter store's usage drops.
+
---
### Authentication
diff --git a/public/docs/configuration.md b/public/docs/configuration.md
index 6071fb8a9..7921d6322 100644
--- a/public/docs/configuration.md
+++ b/public/docs/configuration.md
@@ -172,6 +172,17 @@ UPSTASH_REDIS_REST_TOKEN=xxxxx
Get from [upstash.com](https://upstash.com). Without Redis, rate limiting falls back to per-instance in-memory state — ineffective in a multi-instance serverless environment and a security risk in production.
+#### `UPSTASH_CACHE_REST_URL`
+#### `UPSTASH_CACHE_REST_TOKEN`
+**Optional, recommended at scale.** A *second*, dedicated Upstash store for the best-effort response caches (galaxy feed, pulse, agent/explore lists, provider health). The variables above back the fail-closed rate limiter; the caches write much larger bodies. On a single shared free store those large writes contend for connections and burn the limiter's command quota — the cause of the `redis SET failed … aborted due to timeout` warnings on `/api/galaxy/flows`.
+
+```
+UPSTASH_CACHE_REST_URL=https://yyy.upstash.io
+UPSTASH_CACHE_REST_TOKEN=yyyyy
+```
+
+Provision a separate store **co-located with your production Vercel region** (cross-region latency is what pushes large `SET`s past the 3s client timeout). When unset, the cache transparently falls back to the rate-limiter store, then to in-memory — no behavior change. Verify the cutover on the Upstash dashboard: command traffic shifts to the new store and the limiter store's usage drops.
+
---
### Authentication