OpenClaw Installer
One-line installer that configures OpenClaw to route through Sansa
Overview
The Sansa for OpenClaw installer is a single command that configures OpenClaw to route all requests through Sansa. It handles provider setup, model defaults, and optional cost tracking so you don't have to edit config files by hand.
If you prefer manual setup, see the OpenClaw page.
Quick Start
Run the installer with your Sansa API key (available in your dashboard):
curl -fsSL https://app.sansaml.com/openclaw/install.sh | sh -s -- YOUR_API_KEYThen restart the gateway:
openclaw gateway restartThat's it — OpenClaw is now routing through Sansa.
What It Does
The installer performs five steps automatically:
- Configures the Sansa provider — merges a
sansa-aiprovider entry and default model into~/.openclaw/openclaw.json. - Installs a startup hook — logs a Sansa banner on every gateway start so you can confirm routing is active.
- Creates a savings config — writes
~/.openclaw/sansa.jsonwith baseline vs. Sansa pricing for cost tracking. - Drops a savings tracker — a standalone Node script at
~/.openclaw/sansa/savings-tracker.mjsthat scans session logs and reports how much you've saved. - Optionally updates HEARTBEAT.md — so your agent reports savings at the start of each session.
Requirements
- Node.js 20+ (OpenClaw already requires this)
- An existing OpenClaw installation
- A Sansa API key — get one at app.sansaml.com
Verify
After restarting the gateway, OpenClaw should show Sansa as the active model. Send a message to confirm the connection is working.
If you see an authentication error, double-check that the API key you passed to the installer is correct and re-run the command.
Source
The installer is open-source and available on GitHub: sansa-ai/openclaw-installer.