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_KEY

Then restart the gateway:

openclaw gateway restart

That's it — OpenClaw is now routing through Sansa.

What It Does

The installer performs five steps automatically:

  1. Configures the Sansa provider — merges a sansa-ai provider entry and default model into ~/.openclaw/openclaw.json.
  2. Installs a startup hook — logs a Sansa banner on every gateway start so you can confirm routing is active.
  3. Creates a savings config — writes ~/.openclaw/sansa.json with baseline vs. Sansa pricing for cost tracking.
  4. Drops a savings tracker — a standalone Node script at ~/.openclaw/sansa/savings-tracker.mjs that scans session logs and reports how much you've saved.
  5. 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.