WorkBuddy behind a gateway: four fields and the errors they cause
WorkBuddy supports custom models. Four fields — base URL, API key, model ID, protocol — connect Claude and GPT through your gateway. Here is what each field wants and how the resulting errors read.
Why bother
WorkBuddy ships with built-in models, but teams keep hitting three needs: billing through their own gateway, access to a model released last week, and routing different tasks to different price tiers. Custom models cover all three1.
Once configured, the extra entries appear in the model picker and behave like built-ins.
The four fields
- Base URL — include the
/v1segment, e.g.https://www.salpx.com/v1. Omitting it usually yields 404; adding an extra path segment does the same. - API key — the key issued by your gateway, not a vendor's original key.
- Model ID — the name the upstream recognises, matching the gateway configuration exactly. It is case-sensitive; a typo shows up as 404 or "model not found".
- Protocol — choose OpenAI-compatible. The gateway also exposes an Anthropic-compatible endpoint, but custom models are typically capability-probed over the OpenAI protocol (tool calling, streaming)2.
Run the built-in test button before saving. It is far cheaper than discovering the problem from inside a task.
Three frequent errors
401 / invalid api key. Nine times out of ten it is a vendor key pasted instead of a gateway key, or the key's group lacks the model, or the balance is zero. Verify from a terminal: curl /v1/models; if models list, both key and base URL are correct.
404 model not found. Either the model ID is misspelled or the key's group is not authorised for that model. Gateway groups authorise per model — a key that works in group A may fail in group B.
Chat works, tool calls do not. Capability probing marked the model as "no tool support", so agent-style tasks silently degrade to plain chat. Check whether the gateway forwards the tools field intact; some models need function calling enabled explicitly.
Splitting work across models
A practical ladder, cheapest first:
- Summarising, rewriting, formatting → a small cheap model
- Code edits, multi-step agent work → a mid-tier model (the
claude-sonnet-4-5class) - Hard reasoning, long-document analysis → a top-tier model (the
gpt-5.5class)
Default to mid-tier, escalate manually for heavy jobs. Running everything on the flagship works fine until the invoice arrives.
One reminder
Custom-model settings live on each client machine, so every teammate configures them separately. If your version supports a local JSON model list, keep it in version control — far more reliable than telling people "remember to use that URL".
Sources & attribution
This article references the public materials listed below. Analysis and wording are SalpX's own; quoted material remains the property of its original authors and publishers.
- WorkBuddy 文档总览 — WorkBuddy · accessed 2026-11-10Note:Custom-model entry points and config fields are documented officially; the UI may change between releases.
- Chat Completions — OpenAI API Reference — OpenAI · accessed 2026-11-10Note:Custom models speak the OpenAI-compatible protocol; capability probing and field semantics follow this reference.
One key for Claude, GPT and 50+ models
The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.