/v1 API. OpenClaw talks to it through the generic openai-completions adapter.
| Property | Value |
|---|---|
| Provider id | inferrs (custom; configure under models.providers.inferrs) |
| Plugin | none — not a bundled OpenClaw provider plugin |
| Auth env var | none required; any value works if your inferrs server has no auth |
| API | OpenAI-compatible (openai-completions) |
| Suggested base URL | http://127.0.0.1:8080/v1 (or wherever your inferrs server listens) |
Getting started
Full config example
Gemma 4 on a localinferrs server:
On-demand startup
OpenClaw can startinferrs itself only when an inferrs/... model is selected. Add localService to the same provider entry:
command must be an absolute path. Run which inferrs on the Gateway host and use that path. Full field reference: Local model services.
Advanced configuration
Why requiresStringContent matters
Why requiresStringContent matters
Some
inferrs Chat Completions routes accept only string messages[].content, not structured content-part arrays.Gemma and tool-schema caveat
Gemma and tool-schema caveat
Some That reduces prompt pressure on stricter local backends. If tiny direct requests still work but normal OpenClaw agent turns keep crashing inside
inferrs + Gemma combinations accept small direct /v1/chat/completions requests but fail on full OpenClaw agent-runtime turns. Try disabling the tool schema surface first:inferrs, treat it as an upstream model/server limitation rather than an OpenClaw transport issue.Manual smoke test
Manual smoke test
Test both layers once configured:If the first command works but the second fails, see Troubleshooting below.
Proxy-style behavior
Proxy-style behavior
Because
inferrs uses the generic openai-completions adapter (not openai-responses), native-OpenAI-only request shaping never applies: no service_tier, no Responses store, no prompt-cache hints, and no OpenAI reasoning-compat payload shaping get sent.Troubleshooting
curl /v1/models fails
curl /v1/models fails
inferrs is not running, not reachable, or not bound to the host/port you configured. Confirm the server is started and listening on that address.messages[].content expected a string
messages[].content expected a string
Set
compat.requiresStringContent: true in the model entry (see above).Direct /v1/chat/completions calls pass but openclaw infer model run fails
Direct /v1/chat/completions calls pass but openclaw infer model run fails
Set
compat.supportsTools: false to disable the tool schema surface (see the Gemma caveat above).inferrs still crashes on larger agent turns
inferrs still crashes on larger agent turns
If schema errors are gone but
inferrs still crashes on larger agent turns, treat it as an upstream inferrs or model limitation. Reduce prompt pressure or switch backend/model.Related
Local models
Running OpenClaw against local model servers.
Local model services
Starting local model servers on demand for configured providers.
Gateway troubleshooting
Debugging local OpenAI-compatible backends that pass probes but fail agent runs.
Model selection
Overview of all providers, model refs, and failover behavior.