Skip to main content

inferrs

inferrs can serve local models behind an OpenAI-compatible /v1 API. Velaclaw works with inferrs through the generic openai-completions path. inferrs is currently best treated as a custom self-hosted OpenAI-compatible backend, not a dedicated Velaclaw provider plugin.

Getting started

1

Start inferrs with a model

2

Verify the server is reachable

3

Add an Velaclaw provider entry

Add an explicit provider entry and point your default model at it. See the full config example below.

Full config example

This example uses Gemma 4 on a local inferrs server.

Advanced

Some inferrs Chat Completions routes accept only string messages[].content, not structured content-part arrays.
If Velaclaw runs fail with an error like:
set compat.requiresStringContent: true in your model entry.
Velaclaw will flatten pure text content parts into plain strings before sending the request.
Some current inferrs + Gemma combinations accept small direct /v1/chat/completions requests but still fail on full Velaclaw agent-runtime turns.If that happens, try this first:
That disables Velaclaw’s tool schema surface for the model and can reduce prompt pressure on stricter local backends.If tiny direct requests still work but normal Velaclaw agent turns continue to crash inside inferrs, the remaining issue is usually upstream model/server behavior rather than Velaclaw’s transport layer.
Once configured, test both layers:
If the first command works but the second fails, check the troubleshooting section below.
inferrs is treated as a proxy-style OpenAI-compatible /v1 backend, not a native OpenAI endpoint.
  • Native OpenAI-only request shaping does not apply here
  • No service_tier, no Responses store, no prompt-cache hints, and no OpenAI reasoning-compat payload shaping
  • Hidden Velaclaw attribution headers (originator, version, User-Agent) are not injected on custom inferrs base URLs

Troubleshooting

inferrs is not running, not reachable, or not bound to the expected host/port. Make sure the server is started and listening on the address you configured.
Set compat.requiresStringContent: true in the model entry. See the requiresStringContent section above for details.
Try setting compat.supportsTools: false to disable the tool schema surface. See the Gemma tool-schema caveat above.
If Velaclaw no longer gets schema errors but inferrs still crashes on larger agent turns, treat it as an upstream inferrs or model limitation. Reduce prompt pressure or switch to a different local backend or model.
For general help, see Troubleshooting and FAQ.

See also

Local models

Running Velaclaw against local model servers.

Gateway troubleshooting

Debugging local OpenAI-compatible backends that pass probes but fail agent runs.

Model providers

Overview of all providers, model refs, and failover behavior.