Repository navigation
Model servers
Sebastian Bularca edited this page Dec 1, 2026
·
1 revision
The setup writes this. A default settings.json lists Gemini, Claude and OpenAI; delete what you don't use.
{
"user_settings": {
"backends": [
{ "id": "home", "endpoint": "http://localhost:8080/" },
{ "id": "claude", "endpoint": "https://api.anthropic.com/", "api_key_env": "ANTHROPIC_API_KEY", "compact_at": 150000 }
]
}
}| Key | Meaning |
|---|---|
endpoint |
The server's root address, ending with /. |
id |
Optional name, shown in /model and the prompt. |
type |
Optional, skips detection: llama-swap, llama.cpp, ollama, lmstudio, vllm, ninfer, gemini, anthropic, openai, generic. openai is api.openai.com only; for any other OpenAI-compatible service use generic (or openai-compatible). |
api_key_env |
The name of the environment variable with the key. Never the key itself. |
key_command |
A command that prints the key (password manager, e.g. op read op://Private/gemini/credential). Runs once per session, within 15 s. |
compact_at |
Compact at this prompt size (tokens). Default: 95 % of the usable context. Caps the cost per request on cloud models. |
- Each server gets 5 s to answer at start; all their models show in
/model. -
user_modelsoverridescontext_size,max_tokens,compact_at,vision,parallel_tool_callsorstreamper model, or adds an unlisted one:"user_models": [{ "id": "qwen3:8b", "context_size": 32768 }]. - A large
max_tokensis fine: solv lowers it per request so the answer fits (at most 1/8 of the context is kept free). - HTTP 429 / 503: up to 3 retries, Esc stops the wait. A daily quota or a wait over 60 s gives a message at once.
Privacy and cost: with a cloud provider, your prompts and the files the model reads go to that provider. Gemini's free tier may use them for Google's products.
/costshows your tokens.