/v1/chat/completions) on your machine. Ollama, llama.cpp, vLLM, and LM Studio all do. The gateway translates each incoming request to Chat Completions and sends it down the tunnel; the connector forwards it to the upstream BaseUrl you set in tokios-connector.json. Point the connector at your server by setting that BaseUrl — including the /v1 segment.
Always include
/v1 in BaseUrl, and use your backend’s OpenAI-compatible endpoint. For Ollama that’s the /v1 API (not the native /api).Ease of setup
Whichever you pick, Tokios connects to it the same way — set the upstream
BaseUrl (with /v1) and you get one endpoint.
This list isn’t exclusive. The connector forwards to any server that exposes an OpenAI-compatible Chat Completions API at a
/v1 base URL — so SGLang, Xinference, TGI, LocalAI, and similar all work too. Ollama, llama.cpp, vLLM, and LM Studio are simply the ones documented most closely here.Default ports
Drop the matchingUpstream into your tokios-connector.json (see Connector Config for the full file):
The model id your server uses (for Ollama, whatever you
ollama run) is what you list in the connector’s Models / Routes. You give it a public API name when you register a deployment.Backend details
Ollama
Upstream:http://127.0.0.1:11434/v1
Ollama serves an OpenAI-compatible API at /v1 on port 11434. Pull and run your model first — the id you give Ollama is the upstream model id the connector serves:
llama.cpp
Upstream:http://127.0.0.1:8080/v1
Run the bundled OpenAI-compatible server, llama-server. It listens on port 8080 by default and serves /v1:
vLLM
Upstream:http://127.0.0.1:8000/v1
vLLM’s OpenAI-compatible server listens on port 8000. Start it with:
LM Studio
Upstream:http://127.0.0.1:1234/v1
LM Studio includes a built-in OpenAI-compatible server:
- Open LM Studio and go to the Developer (Local Server) tab.
- Load a model and start the server. It listens on port
1234.