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
Document and ship the sniper auto-fund + sentiment-exit knobs
nirholasc149ce907be7
diff --git a/deploy/sniper/README.md b/deploy/sniper/README.mdindex dc581456a..2ae2c25ee 100644--- a/deploy/sniper/README.md+++ b/deploy/sniper/README.md@@ -79,6 +79,15 @@ shared ops-alert credentials and may already exist for other workers — reuse t| `SNIPER_FEED_WATCHDOG_MS` | `180000` | Re-subscribe + alert if the feed is silent this long. || `SNIPER_ERROR_ALERT_THRESHOLD` / `_WINDOW_MS` | `5` / `600000` | Executor/RPC errors in the window that trip an ops alert. || `SNIPER_ANNOUNCE` | `1` | Announce boot/shutdown to the ops channel. |+| `SNIPER_AUTO_FUND` | `1` | Keep each armed agent's own wallet topped from the launcher master so a live sniper never silently runs dry. Only moves SOL in **live** mode and when the master wallet is configured. |+| `SNIPER_AUTO_FUND_MIN_SOL` / `_TARGET_SOL` | `0.02` / `0.05` | Refill when an agent's balance drops under MIN, back up to TARGET. |+| `SNIPER_AUTO_FUND_PER_TX_SOL` / `_DAILY_SOL` | `0.1` / `1.0` | Hard caps: per single top-up, and total per UTC day across all agents (summed from the on-chain funding ledger, so a restart can't bypass it). |+| `SNIPER_EXIT_ON_BEARISH` | `0` | Arm the sentiment-flip exit: cut an **underwater** position early when its x402-bought sentiment flips confidently bearish, ahead of the hard stop-loss. Never overrides stop-loss / take-profit / a winner. |+| `SNIPER_EXIT_BEARISH_MIN_CONFIDENCE` | `0.7` | Confidence floor (0..1) a bearish read must clear before it can exit. |++The treasury → agent funding flow is visible on `GET /api/sniper/status` under+`funding` (SOL fueled today + all-time, last fund time), so you can confirm the+auto-funder is actually moving money without reading logs.Full per-trade knobs (budget caps, throttles, intel/first-claim) are documentedin [`workers/agent-sniper/README.md`](../../workers/agent-sniper/README.md). Thediff --git a/deploy/sniper/cloudrun.yaml b/deploy/sniper/cloudrun.yamlindex 7ad53954e..3238e9a1b 100644--- a/deploy/sniper/cloudrun.yaml+++ b/deploy/sniper/cloudrun.yaml@@ -86,6 +86,29 @@ spec:# Liveness heartbeat cadence (ms) → bot_heartbeat → /api/sniper/status.- name: SNIPER_HEARTBEAT_MSvalue: "30000"+ # Buy-side auto-funding: keep each armed agent's own wallet topped from+ # the launcher master so a live sniper never silently runs out of SOL.+ # Only moves real SOL in live mode AND when the master wallet is set+ # (LAUNCHER_MASTER_SECRET_KEY_B64 / PUMP_X402_LAUNCHER_SECRET_KEY_B64);+ # otherwise it logs intent and refuses. Caps below are SOL.+ - name: SNIPER_AUTO_FUND+ value: "1"+ - name: SNIPER_AUTO_FUND_MIN_SOL # refill when balance drops under this+ value: "0.02"+ - name: SNIPER_AUTO_FUND_TARGET_SOL # refill back up to this reserve+ value: "0.05"+ - name: SNIPER_AUTO_FUND_PER_TX_SOL # hard cap on a single top-up+ value: "0.1"+ - name: SNIPER_AUTO_FUND_DAILY_SOL # hard cap on total top-ups per UTC day+ value: "1.0"+ # Sentiment-flip exit: let the per-coin x402 sentiment the worker already+ # pays for cut an UNDERWATER position early on a confident bearish flip,+ # ahead of the hard stop-loss. Off by default — never overrides+ # stop-loss / take-profit / a winning position. Flip to "1" to arm.+ - name: SNIPER_EXIT_ON_BEARISH+ value: "0"+ - name: SNIPER_EXIT_BEARISH_MIN_CONFIDENCE # 0..1 confidence floor+ value: "0.7"# Required: Neon Postgres (strategies + position ledger + heartbeat).- name: DATABASE_URLvalueFrom: