On this page
On this page
Providers
Liquid Inference
Liquid Inference is an inference exchange with an
OpenAI-compatible endpoint. Configure it with OpenClaw's existing custom-provider
support and the openai-completions API.
| Property | Value |
|---|---|
| Provider id | liquid (custom) |
| Auth | Liquid Inference API key with spend scope |
| API | openai-completions |
| Base URL | https://router.inference.ai.exchange/v1 |
Quick start
Create a key
Sign in at inference.ai.exchange, add credit to
your workspace, and create an API key with the spend scope. Export it in the
shell you use for the next steps:
Configure the provider
Merge this block into your openclaw.json. Keep the /v1 suffix in baseUrl:
the OpenAI client appends chat/completions.
Save the key
With the custom provider configured, this stores the key in OpenClaw's shared credential store and binds the provider to it. The key does not need to stay in the Gateway service's environment. If the command reports that the Gateway has not applied the settings, restart the Gateway before testing.
Select and test the model
Models
The model id is sent to the exchange unchanged. liquid.auto lets the exchange
choose a model for each request. To list the current model names:
Add a models entry for each name you want to select. Set contextWindow and
maxTokens to limits supported by that model and the offers you use; OpenClaw
uses the context window when deciding when to compact a session.
Request headers and spending
| Header | Purpose |
|---|---|
X-Title |
Identifies OpenClaw on Liquid Inference receipts. |
x-liquid-cap-usd |
Maximum charge for one request, in USD. |
The configured headers accompany requests to this provider, including compaction requests. A turn can make several requests, so a per-request cap does not cap the whole turn's cost. Use the key's spend limit to bound total spending.
To change the per-request cap:
Errors and fallback models
OpenClaw applies its normal retry, credential cooldown, and model-fallback behavior.
See Model failover, including
Billing disables for 402 responses.
A fallback at another provider can answer a refused request and bill you there.
If you want requests to remain on Liquid Inference, use only liquid/ fallback
models or clear the fallback list:
| Symptom | Check |
|---|---|
401 |
Save a valid key with the command above. |
402 |
Check workspace credit and the key's spend limit, then billing cooldowns. |
404 |
Keep /v1 at the end of baseUrl. |
no_eligible_offer |
Inspect eligibility.excluded in the error response. |
| No receipt for a successful turn | Check whether a fallback at another provider answered. |
See Model providers for custom-provider configuration and Models for model selection.