Model connections
Axel runs no models; it connects to yours. Until the admin console arrives, add a connection through the API, signed in as an administrator.
Add a connection
-
Add the model's host to
egress.httpin/opt/axel/axel.yaml, and its address toegress.privateif it is on your network (Configuration), then apply it:sudo axel server install -
Write
connection.json:{ "name": "gpu", "provider": "openai_compatible", "base_url": "http://192.168.1.50:8000/v1", "api_key": "<key, or leave this out>", "models": ["Qwen/Qwen3-32B"] } -
Sign in in bash, with
jqinstalled, keeping the session inaxel.cookies, which only you can read (with theinternalcertificate mode, add--cacertwith the CA fromhttps://<host>/ca):umask 077 read -rsp 'Password: ' PW && jq -n --arg email admin@example.com --arg password "$PW" '{$email, $password}' | curl -sS -c axel.cookies -H 'Content-Type: application/json' -d @- https://axel.example.com/api/auth/login -
Add the connection:
curl -sS -b axel.cookies -H 'Content-Type: application/json' -d @connection.json https://axel.example.com/api/admin/model-connections
Axel saves the connection only if it answers: it lists the endpoint's models, reads its model info, and sends each chat
model a short ping. On an OpenAI-compatible endpoint it also probes tool calls, structured output, images and
reasoning. The answer shows each model's capability profile and where each value came from.
Providers
provider | For |
|---|---|
openai_compatible | vLLM, SGLang, Ollama, llama.cpp, LM Studio, LiteLLM and other OpenAI-compatible servers |
openai | OpenAI |
azure_openai | Azure OpenAI, with its base_url |
anthropic | Anthropic |
gemini | Google Gemini |
bedrock | Amazon Bedrock, with region and a Bedrock API key |
The named clouds need no base_url, except Azure.
Manage connections
Send each with curl -b axel.cookies, as above:
| Request | Does |
|---|---|
GET /api/admin/model-connections | Lists the connections |
POST /api/admin/model-connections/test | Checks one without saving it |
PATCH /api/admin/model-connections/<id> | Changes one |
DELETE /api/admin/model-connections/<id> | Removes one |
POST /api/admin/model-connections/<id>/check | Reruns the check |
POST /api/admin/model-connections/<id>/detect | Reruns the probes |
PUT /api/admin/model-connections/<id>/models/<model id>/overrides | Sets the profile fields you know better |
API keys are encrypted with the install's config-secret key and never returned.
Reads also work with an API token that has admin:read. Changing a connection needs a signed-in
administrator's session, and axel.cookies holds one. When you are done, end it
with curl -b axel.cookies -X POST https://axel.example.com/api/auth/logout and delete the file.