claw-zip
v0.3.6
Published
Cut your OpenClaw API costs by up to 90%. Intelligent compression proxy.
Maintainers
Readme
claw.zip
Cut your OpenClaw API costs by up to 90%. Same models. Same quality.
claw.zip is a compression proxy that intelligently compresses LLM context before sending requests, dramatically reducing token usage without sacrificing response quality.
Quick Start
npx claw-zipThe interactive wizard walks you through signup (email + Anthropic API key) and configures OpenClaw automatically. For CI or scripting:
npx claw-zip init --email [email protected] --key sk-ant-... --yesHow It Works
OpenClaw → claw.zip (compression proxy) → Anthropic API- Sign up —
npx claw-zipcreates your account (email + Anthropic API key) - Configure — Patches OpenClaw to route through the claw.zip compression proxy, sets your default model to
claw-zip/<your-model>with the original as fallback - Save — Every request gets compressed (40-90% token reduction), same models and quality
Compression Modes
| Mode | Speed | Savings | Cost |
|------|-------|---------|------|
| algorithmic | <10ms | 40-60% | Free |
| smart | ~200ms | 70-85% | ~$0.004/req |
| hybrid | ~50ms | 60-80% | ~$0.001/req |
Commands
npx claw-zip # Set up claw.zip (signup + configure OpenClaw)
npx claw-zip test # Send a test request through the proxy
npx claw-zip savings # Show savings breakdown (default: 7d)
npx claw-zip savings 7d # Show savings for last 7 days (24h, 7d, 30d)
npx claw-zip status # Show current configuration
npx claw-zip doctor # Diagnose issues
npx claw-zip restore # Remove claw.zip, restore original configFlags
| Flag | Description |
|------|-------------|
| --key <key> | Provide API key (sk-ant-... or sk-clwz-...) |
| --email <email> | Provide email for signup |
| --yes, -y | Skip confirmation prompts |
| --no-test | Skip connection test during init |
| --dir <path> | Override OpenClaw directory |
| --offline | Skip API calls (status/doctor) |
How It Compares
| | claw.zip | Clawzempic | |---|---|---| | Approach | Compression + model routing (coming soon) | Model downgrading (cheaper model) | | Quality | Preserved — same model, compressed input | Degraded — 75% of requests use cheaper models | | Open source | Yes (MIT) | No (UNLICENSED, repo is 404) | | Your API keys | Stay on your machine | Sent to their servers | | Privacy | Your data, your infra | All traffic through their proxy | | Price | Free tier + $19/mo | $29/mo |
What Gets Configured
After install, your openclaw.json is patched with:
- claw-zip provider — proxy URL, key, and three models (Opus, Sonnet, Haiku)
- Default model — automatically set to
claw-zip/<your-current-model>so compression works immediately - Fallback — your original model (e.g.
anthropic/claude-sonnet-4-5) in case the proxy is unreachable - Aliases —
opus-zip,sonnet-zip,haiku-zipfor quick model switching
Everything is cleanly removed with npx claw-zip restore.
Requirements
- Node.js 18+
- OpenClaw installed and configured
Uninstall
npx claw-zip restoreSurgically removes only claw.zip configuration. Your original setup is preserved.
License
MIT — Use it, fork it, ship it.
Built by Asklee
