Use OpenClaw with the Straitly API
Use OpenClaw with Straitly in 4 steps: add a straitly provider with baseUrl https://api.straitly.ai/v1 and api openai-completions to ~/.openclaw/openclaw.json. Kimi K3.1 Pro then costs $1.14 in and $5.70 out per 1M tokens, 43% under its list price of $2.00 and $10.00.[1][4]
Updated
- Setting
- ~/
.openclaw/ openclaw.json - Base URL
- https://
api.straitly.ai/ v1 - API key
- sk-YOUR_KEY
- API format
- OpenAI-compatible
- Connect with
- Custom provider
Your prompts, files and workflow stay as they are. From OpenClaw's docs, checked 16 November 2026[1]
OpenClaw in 4 steps.
Replace sk-YOUR_KEY with your own key from the Keys page. Setting lives in ~/.openclaw/openclaw.json, base URL https://api.straitly.ai/v1.
Step 1: Get a Straitly key
Sign up with email or Google, add credits from $5 (no subscription, no minimum), then create a key on the Keys page. It starts with sk-. Keep it private.
Step 2: Put the key in your environment
The provider reads the key from STRAITLY_API_KEY, so export it where OpenClaw runs.
Terminal · Mac / Linux
export STRAITLY_API_KEY="sk-YOUR_KEY"Step 3: Add the Straitly provider
Merge this into ~/.openclaw/openclaw.json (JSON5). The primary model is the provider ID, a slash, then the Straitly model ID.
~/.openclaw/openclaw.json
{ agents: { defaults: { model: { primary: "straitly/kimi-k3.1-pro" } } }, models: { mode: "merge", providers: { straitly: { baseUrl: "https://api.straitly.ai/v1", apiKey: "${STRAITLY_API_KEY}", api: "openai-completions", models: [{ id: "kimi-k3.1-pro", name: "Kimi K3.1 Pro" }], }, }, }, }Step 4: Send a message
OpenClaw watches the file and applies the change. Open a new chat and send a short message.
Checked against OpenClaw's own docs, 16 November 2026
- OpenClaw: custom providers[1] (docs.openclaw.ai)
- OpenClaw: configuration[2] (docs.openclaw.ai)
Config names and menu paths match these pages as of the date shown. If OpenClaw changes them, its docs win.
What happens to a OpenClaw request?
Two settings change in OpenClaw: where requests go and which key pays for them. Everything else, from your prompts to your workflow, stays as it is.
OpenClaw, as it is
Your prompts, files and workflow stay as they are. The request leaves in the same format as before.
One address, one key
It goes to
https://api.straitly.ai/v1with your Straitly key. That is the whole setup.[1]The same models
The key reaches 117 models. You ask for each one by its model ID.[5]
A smaller bill
Kimi K3.1 Pro for 10M input tokens and 1M output tokens costs $17.10 against $30.00 at list.[4]
OpenClaw on Straitly in numbers
- 4
- Steps to connect OpenClaw[1]
- 40%
- Straitly under the provider's list price, on most models[3]
- $17.10
- Kimi K3.1 Pro for 10M input tokens and 1M output tokens, against $30.00 at list[4]
- 117
- Models one key reaches from OpenClaw[5]
- $5
- Smallest top-up. No subscription and no minimum[5]
- $0
- Charged for failed requests[3]
- 98 of 103
- Models with a list price that are at least 40% under it[4]
- 134 of 145
- Models priced under the lowest OpenRouter seller[4]
OpenClaw questions.
Ask a question- Yes. OpenClaw's docs define custom providers under models.providers with baseUrl, apiKey, api: openai-completions and a models list.
- ~/.openclaw/openclaw.json, in JSON5. OpenClaw applies edits to it without a restart.
- Not on 2026-11-16. Straitly charged $1.53 input and $7.65 output per 1M tokens, 49% under list, but the lowest OpenRouter seller came out 11.2% lower on a 3:1 mix.
- The manual merge adds one provider. The one-paste setup writes a separate straitly.json file and keeps existing settings.
Sources
Setup steps follow OpenClaw's own documentation, read on the date shown. Prices come from Straitly's public catalog.
All 5 sources
What each source says
- [1] OpenClaw: custom providers
- models.providers.<id> with baseUrl, apiKey, api: openai-completions and models, plus agents.defaults.model.primary.
- [2] OpenClaw: configuration
- OpenClaw reads JSON5 config from ~/.openclaw/openclaw.json and applies edits to that file.
- [3] Straitly pricing
- Billed per token at the pooled rate, 40% under the provider's published rate on most models, with nothing added on top. Failed requests cost nothing. No subscription, no minimum.
- [4] Straitly public catalog
- Every model ID with Straitly's price, the lab's official list price where one is published, and the lowest OpenRouter seller including its 5.5% credit fee.
- [5] Straitly home page
- One OpenAI-compatible API for 117 models. Sign up with email or Google, top-ups from $5 with no card or platform fee, base URL https://api.straitly.ai/v1, and requests move to another provider serving the same model if one goes down.
Which other tools use the same key?
- Claude CodeAnthropic Messages. Env vars or settings.json.
- CursorOpenAI-compatible. Settings, no script.
- CodexOpenAI Responses. config.toml provider.
- OpenCodeOpenAI-compatible. opencode.json provider.
- ClineOpenAI-compatible. Settings, no script.
- Claude appAnthropic Messages. Developer menu gateway.
- HermesOpenAI-compatible. Custom endpoint.
- OpenAI SDKOpenAI-compatible. Python client.
- Anthropic SDKAnthropic Messages. Python client.
- LangChainOpenAI-compatible. Python client.
- LlamaIndexOpenAI-compatible. Python client.
- Vercel AI SDKOpenAI-compatible. TypeScript client.
Start with one request.
Prepaid, no subscription, no minimum. 40% under list on most models you reach from OpenClaw.