Skip to Content
Axel docs
Configure

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

  1. Add the model's host to egress.http in /opt/axel/axel.yaml, and its address to egress.private if it is on your network (Configuration), then apply it:

    sudo axel server install
  2. 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"]
    }
  3. Sign in in bash, with jq installed, keeping the session in axel.cookies, which only you can read (with the internal certificate mode, add --cacert with the CA from https://<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
  4. 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

providerFor
openai_compatiblevLLM, SGLang, Ollama, llama.cpp, LM Studio, LiteLLM and other OpenAI-compatible servers
openaiOpenAI
azure_openaiAzure OpenAI, with its base_url
anthropicAnthropic
geminiGoogle Gemini
bedrockAmazon 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:

RequestDoes
GET /api/admin/model-connectionsLists the connections
POST /api/admin/model-connections/testChecks 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>/checkReruns the check
POST /api/admin/model-connections/<id>/detectReruns the probes
PUT /api/admin/model-connections/<id>/models/<model id>/overridesSets 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.