Skip to content

Your own model server

Makker can use the models of any server that speaks OpenAI's chat completions API: an institution's model gateway, a vLLM, SGLang or llama.cpp server, LM Studio, or a hosted service such as Groq or Together. Nothing in Makker's code changes. You give the server a name, and its models become <name>:<model> everywhere a model is chosen.

The steps below use a server named gateway at https://llm.example.org/v1. Use your server's name and address instead.

1. Add the server

In the web UI, open the model menu and choose Add a provider…:

  1. Give it a short name (lowercase letters, digits, - and _), its address (usually ending in /v1) and your key.
  2. List models asks the server for its models with that key. Tick the ones to offer.
  3. Fill in what you know of each: its input and output limits in tokens, and whether it takes images.
  4. Save.

The form only works in a page opened on the computer the Makker server runs on: a provider is where its key is sent, so nothing else may change one.

Or by hand (or from a file someone hands you), in providers.toml in Makker's data folder (default ~/.local/share/makker/providers.toml):

[gateway]
base_url = "https://llm.example.org/v1"
label = "Our gateway"            # optional: the name the menus show

[gateway.models."vendor/model-a"]
max_input_tokens = 174762
max_output_tokens = 87381
supports_vision = true

[gateway.models."vendor/model-b"]
max_input_tokens = 87381
supports_vision = false
Field Meaning When left out
base_url The address the server's API answers at. Required.
label The name the menus show. The table's name.
models The models to offer. Every model the server lists.
max_input_tokens How much the model reads per request: Makker compacts the conversation before it gets there. Read from the server, else 200,000.
max_output_tokens The longest reply it can write: the model's settings then offer reply lengths up to it. Read from the server, else the server's default applies.
supports_vision Whether the model takes images. With false, the agent gets a note in place of each image. Read from the server, else true.

The names are the ones LiteLLM uses for its model information, and a LiteLLM gateway reports them itself: then the file only needs what the gateway gets wrong or leaves out. If the server's documentation gives one context window, split it as the server does. A gateway that keeps a third for the reply, for example, takes two thirds of the window as input.

The file lives only in Makker's data folder, never in a project folder. A project someone shares with you cannot redirect your key to another server. Edits to the file count from the next start of Makker.

2. Save the key

makker key gateway

or paste it in the web UI's API keys…. It is saved as GATEWAY_API_KEY in the .env in Makker's data folder, with the other keys, never in providers.toml. A server that takes no key still needs one saved: save any value.

3. Check it

makker doctor --model gateway:vendor/model-a

doctor reports whether the server answers, takes the key, and serves the model:

  • Could not reach: check the address, and that this computer can reach the server. Some are only open from their own network or VPN.
  • Did not accept the key: save it again with makker key gateway.
  • Does not list the model: use a model id exactly as the server lists it. doctor names some of them.

4. Use it

Choose a model from the server's section of the model menu, or name it when starting Makker:

makker --model gateway:vendor/model-a          # web UI
makker tui --model gateway:vendor/model-a      # terminal

A model chosen in the web UI's menu is remembered for that folder (in .makker/config.toml, as model = "gateway:vendor/model-a"), so each experiment folder keeps its own. Every session records the model it ran with, its context window and its settings.

5. Run experiments

One turn, headless, which prints the session id and the agent's answer:

makker run --model gateway:vendor/model-a --approval-mode auto "Simulate ... and report ..."

--approval-mode auto lets the agent run its tools without asking; use it only for prompts you trust. --continue sends a follow-up to the most recent session in the folder. The same prompt on several models:

for model in gateway:vendor/model-a gateway:vendor/model-b; do
  makker run --model "$model" --approval-mode auto "Simulate ... and report ..."
done

To compare models on a task with a known answer, repeatedly, write it as an evaluation task (see evaluation) and run it on each:

makker eval my_task.py --model gateway:vendor/model-a,gateway:vendor/model-b --epochs 5

Afterwards:

makker sessions                 # the folder's sessions
makker transcript <session-id>  # one session as a readable page
makker review                   # look through sessions for problems

What to expect

  • The reasoning such servers send is shown, as for any other model. Makker asks them for no reasoning effort, so each model reasons at its server's default.
  • Makker needs a model that calls tools. A model a server offers only for chat, embeddings or OCR will not work as the agent's model.
  • Give each model its real input limit. With a higher one, Makker compacts a long conversation only after the server has refused a request as too long.
  • A model that rejects images needs supports_vision = false.