@strakelabs/openclaw-strake
v1.0.2
Published
OpenClaw provider plugin — route inference through a Strake encrypted proxy endpoint.
Maintainers
Readme
@strakelabs/openclaw-strake
OpenClaw shouldn't need your real API keys. Now it doesn't.
This plugin registers Strake as a model provider in OpenClaw. Your actual OpenAI, Anthropic, or other API keys stay encrypted in the Strake vault. OpenClaw gets a disposable proxy URL and a bearer token — independently revocable, never stored in plaintext on your machine.
How it works
OpenClaw → Strake endpoint → your real API key → upstream provider
↑
disposable bearer token
(revoke it anytime without
touching the real key)Strake sits in the middle. If the token leaks, rotate it in seconds. The real key never moves.
Install
openclaw plugins install @strakelabs/openclaw-strakeSetup
1. Create a Strake endpoint at app.strake.sh — pick your provider, paste your API key, grab the endpoint URL and bearer token.
2. Set the environment variables:
export STRAKE_BASE_URL=https://abc123.strake.sh
export STRAKE_TOKEN=your-bearer-tokenAdd these to your shell profile or CI secrets. The token is what you generated in the Strake dashboard — not your real API key.
3. Onboard:
openclaw onboardNote: Pass
STRAKE_TOKENas an env var rather than--strake-tokenon the command line — OpenClaw detects it automatically at onboard time. The--strake-tokenflag isn't available until after the plugin is fully loaded.
4. Run:
openclaw --model strake/gpt-4o
openclaw --model strake/claude-3-5-sonnet-20241022
openclaw --model strake/gemini-2.0-flashAny model ID your upstream provider accepts works — Strake proxies it through unchanged.
Why bother?
| Without Strake | With Strake |
|---|---|
| Real key in ~/.openclaw/config | Disposable token only |
| Key leak = full account exposure | Token leak = revoke in seconds |
| One key, all your tools share it | Per-tool tokens, isolated blast radius |
| Rotate key = update every tool | Rotate key = zero config changes |
Environment variables
| Variable | Required | Description |
|---|---|---|
| STRAKE_BASE_URL | Yes | Your Strake endpoint URL (e.g. https://abc123.strake.sh) |
| STRAKE_TOKEN | Yes | Bearer token from your Strake endpoint |
Both are set by the Strake CLI automatically if you use strake run:
strake run my-proxy -- openclawNo manual env setup needed — the token is minted, injected, and revoked when OpenClaw exits.
Using with the Strake CLI
If you have the Strake CLI installed, the cleanest workflow is:
# One-time setup
strake auth login
strake endpoint create openai
# Every session
strake run my-proxy -- openclawstrake run mints an ephemeral token, sets STRAKE_BASE_URL and STRAKE_TOKEN, launches OpenClaw, and revokes the token on exit. Nothing lingers.
Links
MIT © Dalton Solutions, LLC
