Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
AI and machine learning

Ollama, LM Studio and AI workspaces: how the layers fit

Ollama and LM Studio run models; Open WebUI and Odysseus are workspaces on top. See which layer you need, how they connect and how to expose them safely.

CloudSat teamNovember 18, 20266 min read
Abstract illustration of three stacked translucent layers joined by thin vertical beams of light
On this pageA local AI stack has three layers

"Ollama or LM Studio?" and "Odysseus or Ollama?" sound like the same kind of question. They are not. The first compares two tools that do the same job. The second compares tools from different layers of a local AI setup, and most people who run models for more than a weekend end up using one of each. Sort the layers first and the choices get easy.

A local AI stack has three layers

Browser or app
   │
   ▼
Workspace: Open WebUI, Odysseus ...        chat, documents, users, agents
   │   OpenAI-compatible HTTP
   ▼
Runtime: Ollama, LM Studio, llama-server   loads weights, generates tokens
   │
   ▼
GPU or CPU, plus model files (GGUF, safetensors)

The runtime loads a model into memory and generates text. It exposes an HTTP API, usually OpenAI-compatible, so any client that speaks that dialect can use it. The workspace is what people actually look at: conversations, uploaded files, user accounts, tools and agents. A workspace needs a model source behind it, either a local runtime or a cloud API key.

Ollama and LM Studio both ship a small chat window of their own, which blurs the line. Treat those windows as conveniences: the runtime is the core of both products.

The runtime layer: Ollama or LM Studio

Ollama LM Studio
License MIT, open source Proprietary desktop app, free for home and work use as of July 2025; the lms CLI is MIT
Main interface CLI and REST API, plus a desktop app on macOS and Windows Desktop app on macOS, Windows and Linux, plus the lms CLI
On a headless Linux server Install script sets up a systemd service llmster, the app's core packaged for servers, started with lms daemon up
Default address 127.0.0.1:11434 localhost:1234 in the docs' examples
API Native API plus OpenAI-compatible /v1 routes OpenAI-compatible /v1 routes (chat, responses, completions, embeddings, models)
Model sources Ollama's library, or GGUF repos on Hugging Face (ollama run hf.co/user/repo:quant) Built-in Hugging Face search, or lms get
Apple Silicon GGUF models GGUF models and the MLX engine

Pick Ollama for servers, scripts and containers. It installs as a service, its license is permissive, and many workspaces and coding tools detect it out of the box.

Pick LM Studio when you want a desktop app for browsing, comparing and tuning models, or MLX on a Mac. With llmster it also runs headless now, so it is no longer desktop-only.

On a Linux server, Ollama takes one command:

curl -fsSL https://ollama.com/install.sh | sh
ollama run llama3.1:8b "Say hello in five words."

Before you pull large models, check that they fit your card with the VRAM guide.

The workspace layer: Open WebUI, Odysseus and others

Open WebUI is a web interface for Ollama and any OpenAI-compatible API, with multi-user accounts (the first account becomes the administrator), document chat, and model management. Since version 0.6.6 (April 2025) its license is BSD-3-based with a branding clause: you may not remove the Open WebUI branding unless your deployment has 50 or fewer users in a 30-day period, or you hold a license that allows it. The project states that this is not an OSI-approved open source license.

Odysseus is a self-hosted AI workspace started in 2026 by YouTuber Felix Kjellberg (PewDiePie). Its README lists chat and agents with tools, MCP, files, shell access, skills and memory, plus deep research, a document editor, an IMAP and SMTP inbox, notes, tasks and a CalDAV calendar, and blind side-by-side model comparison. A "Cookbook" recommends, downloads and serves models for your hardware. It is licensed AGPL-3.0-or-later, so if you modify it and let others use it over a network, you must offer them your modified source. It moves fast, so pin a release tag of its container image, as the README recommends, rather than tracking the newest build.

LibreChat and AnythingLLM fill the same slot. The test for any of them is the same: does it speak to your runtime, and does it handle users and authentication the way you need?

Which combination do you need?

  • Just you, one machine: Ollama's desktop app or LM Studio alone is enough.
  • A team, shared documents, or access from a phone: a runtime plus a workspace, both on a server.
  • A workspace with cloud models only: possible, and no GPU is needed, but your prompts then go to the model provider.
  • Coding agents and scripts: they talk to the runtime's API directly and skip the workspace.

Connecting a workspace to a runtime

Most connection problems come from one detail: inside a container, localhost means the container itself, not your server.

Same machine, no containers

The simplest setup keeps every port on loopback. Open WebUI's docs support Python 3.11 and 3.12 and offer a uvx route:

curl -LsSf https://astral.sh/uv/install.sh | sh
DATA_DIR=~/.open-webui uvx --python 3.12 open-webui@latest serve --host 127.0.0.1 --port 8080

Open WebUI finds Ollama at 127.0.0.1:11434, and nothing listens on a public interface.

Workspace in Docker

Open WebUI's documented docker run command adds --add-host=host.docker.internal:host-gateway, and Odysseus's .env.example uses OLLAMA_BASE_URL=http://host.docker.internal:11434/v1 and LM_STUDIO_URL=http://host.docker.internal:1234. The container then reaches the host through the Docker bridge, which means the runtime must listen beyond loopback. Open WebUI's docs say Ollama has to listen on 0.0.0.0 in this case:

sudo systemctl edit ollama.service    # add the two lines below, then save
[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"
sudo systemctl restart ollama
sudo ufw allow 22/tcp    # keep SSH open before enabling the firewall
sudo ufw allow in on docker0 to any port 11434 proto tcp
sudo ufw enable

With ufw's default policy of denying inbound traffic, only containers on the default Docker bridge reach port 11434. Containers started with Docker Compose sit on their own bridge interface (named br- followed by an id, listed by ip link), so adjust the interface name. Then confirm from another machine that port 11434 is closed. One more trap: ports that Docker publishes bypass ufw, so publish the workspace on loopback only (-p 127.0.0.1:3000:8080) and let a reverse proxy face the internet.

Running the stack on a server

Three rules keep it boring:

  1. Never publish the runtime port. Ollama's API has no authentication, and LM Studio's docs recommend enabling authentication for any bind other than 127.0.0.1.
  2. Serve the workspace over HTTPS. Run Open WebUI or Odysseus behind a reverse proxy (Caddy or Nginx, for example) that takes care of the certificates. Keep Odysseus's AUTH_ENABLED=true and LOCALHOST_BYPASS=false, as its README advises for anything network-accessible.
  3. Size the GPU for the model, and the CPU plan for the workspace. Workspaces need little compute; the runtime needs the memory.

On CloudSat, Ollama hosting puts the runtime on a GPU server, while a Cloud VPS with 4 GB of RAM ($11.58/mo) is a sensible start for a workspace that calls a model elsewhere.

FAQ

Is it safe to expose Ollama's port to the internet?

No. Anyone who can reach port 11434 can use your GPU and pull or delete models. Keep it on loopback or a private network, and let an authenticated workspace or proxy face users.

Does Odysseus replace Ollama?

No. Odysseus is a workspace. It needs a model source: a local runtime such as Ollama or LM Studio, or a provider's API key.

Which runtime is faster?

For GGUF models on one GPU, both build on the llama.cpp family of engines, so differences depend on version and settings more than on brand. If you serve many concurrent users from one GPU, look at vLLM or SGLang, which are designed around batching.

Can Open WebUI and Odysseus share one Ollama?

Yes. A runtime serves any number of clients. Each request queues or runs in parallel according to OLLAMA_NUM_PARALLEL, which defaults to 1.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.