Some machines run Ollama. Some run LM Studio. A few run vLLM or a hand-built llama.cpp server. Callers should not have to care which is which.

What discovery does

On start, the CLI probes the well-known ports on 127.0.0.1, all at once and with short timeouts. For every server that answers, it checks which API dialects it speaks, lists the models it serves, and reports all of it to Tokmine.

  • Ollama on :11434 (and it honours OLLAMA_HOST)
  • LM Studio on :1234
  • vLLM on :8000
  • llama.cpp and LocalAI on :8080
  • text-generation-webui, Jan and KoboldCpp on their usual ports

One server can speak several dialects. Ollama, for example, answers both its native API and the OpenAI one, and both are offered to callers.

It keeps watching

Discovery re-runs about every 30 seconds. Pull a new model, stop a runner or start another one, and the public URL reflects it without a restart. Only servers the CLI discovered or that you configured are ever proxied to.

Servers on another port or machine

Discovery covers the common cases on the same machine. For anything else, pass --provider with a base URL:

tokmine --provider http://gpu-box:8000
tokmine --provider http://10.0.0.5:8080 --dialect openai
tokmine --no-discover --provider http://gpu-box:8000

The flag is repeatable, the dialect is detected automatically, and --no-discover limits the machine to exactly the servers you list.

See what was found

tokmine models   # providers, dialects and models
tokmine status   # config, endpoint and reachability

Try it

Point the CLI at a machine with any mix of runners and watch what it finds. The full table is in supported runners.