Odysseus Model Setup: Ollama and API Keys Guide

November 28, 2026
Odysseus talks to models through OpenAI-compatible endpoints you add in Settings. Use http://host.docker.internal:11434/v1 for Ollama when Odysseus runs in Docker, https://api.openai.com/v1 plus an API key for OpenAI, and https://openrouter.ai/api/v1 plus a key for OpenRouter.
odysseus ollama
odysseus api key
odysseus openai
odysseus openrouter
odysseus setup

Short answer: add a model endpoint in Odysseus Settings. For Ollama on the same computer use http://host.docker.internal:11434/v1 (Docker) or http://localhost:11434/v1 (native). For OpenAI or OpenRouter, add their API base URL and paste your API key.

Odysseus does not ship with a model of its own. It is a workspace that sits on top of whatever models you connect: a local runtime such as Ollama, llama.cpp, vLLM, or LM Studio, or a hosted API such as OpenAI or OpenRouter. Anything that speaks the OpenAI-compatible chat API can be added as an endpoint. This guide assumes Odysseus is already running; if it is not, start with the Odysseus Docker install guide.

How Odysseus connects to models

  • Endpoints are added in the app. The project's own advice is to configure providers inside Settings rather than in .env. The .env file is only for pre-seeding values before the first boot.
  • Local hosts can be discovered. LLM_HOST (default localhost) and LLM_HOSTS (a comma-separated list) tell Odysseus which machines to scan for common model-server ports, including Ollama's 11434.
  • You can mix providers. One workspace can use a local model for private notes and a hosted model for heavy research, and the Compare view can send the same prompt to several of them side by side.

Option 1: Ollama (local and free)

Ollama runs models on your own hardware, so there is no API bill and your prompts never leave the machine.

1. Install Ollama and download a model. Get Ollama from ollama.com, then pull any model from its library, for example:

ollama pull llama3.2

2. Let Ollama accept connections from Docker. By default Ollama only listens on its own loopback address, which a container cannot reach. Start it like this:

OLLAMA_HOST=0.0.0.0:11434 ollama serve

Only do this on a trusted network, and keep port 11434 closed to the internet.

3. Add the endpoint in Settings. Use the address that matches how you run Odysseus:

How Odysseus runsOllama endpoint
Docker Compose, Ollama on the same computerhttp://host.docker.internal:11434/v1
Native install (Python, macOS script, Windows launcher)http://localhost:11434/v1
Ollama on another machine in your networkhttp://<that-machine-ip>:11434/v1

If you prefer to pre-seed it, the same Docker value can go into .env before first boot:

OLLAMA_BASE_URL=http://host.docker.internal:11434/v1

Tool calls with Ollama. A manually added Ollama /v1 endpoint uses a conservative text-based tool-calling mode by default, because some local models mishandle native tool schemas. That is the right choice for most setups. If an agent seems to ignore its tools, try a model that lists tools under Capabilities in ollama show <model>.

Option 2: OpenAI API key

  1. Create an API key in your OpenAI platform account and make sure billing is enabled there. OpenAI charges you per token; Odysseus adds nothing on top.
  2. In Settings, add an endpoint with the base URL https://api.openai.com/v1 and paste the key.
  3. Choose the OpenAI model you want to use in a new chat and send a short test message.

You can also pre-seed the key in .env with OPENAI_API_KEY, but the project recommends adding providers in the app unless you are automating a deployment. Never commit a real key to Git.

Option 3: OpenRouter

OpenRouter gives you one API key for models from many vendors, which makes it a convenient way to try different models in Odysseus without managing several accounts.

  1. Create a key on openrouter.ai and add credit or choose free models there.
  2. In Settings, add an endpoint with the base URL https://openrouter.ai/api/v1 and paste the key.
  3. Odysseus reads OpenRouter's model catalog to detect what each model supports, such as image input, tool calls, and structured output, so it can treat each model correctly.

The same pattern works for other OpenAI-compatible providers such as Groq, Together, Fireworks, DeepSeek, or Mistral: base URL plus API key.

The step people get wrong most often

Using localhost from inside Docker. When Odysseus runs in a container, http://localhost:11434 points at the container itself, where nothing is listening, so the endpoint shows as offline. Use host.docker.internal instead. The default Compose file already maps that name to your host, including on Linux. If it still fails, the usual cause is Ollama listening only on 127.0.0.1; restart it with OLLAMA_HOST=0.0.0.0:11434.

Other quick checks when an endpoint will not connect:

  • Paste the base URL without a trailing path such as /chat/completions; it should end in /v1.
  • Make sure the API key has no leading or trailing spaces and still has credit.
  • Read the container logs with docker compose logs --tail=120 odysseus right after you save the endpoint.

Embeddings for memory

Memory and retrieval need an embedding model as well as a chat model. By default Odysseus looks for an OpenAI-compatible embeddings endpoint on Ollama's port on your LLM_HOST. You can point it somewhere else in .env:

EMBEDDING_URL=http://localhost:11434/v1/embeddings
EMBEDDING_MODEL=all-minilm:l6-v2

If no embeddings API is available, Odysseus falls back to a small local model through fastembed, which downloads about 50 MB on first use.

Check that everything works

  1. Start a new chat, pick the model you just added, and ask a short question.
  2. Open an agent chat and give it a simple task that needs a tool, such as a web search, to confirm tool calls work.
  3. Try Compare with two models to see the difference in answers for your own prompts.

Keep your keys safe

  • Create a separate key for Odysseus so you can revoke it without affecting other apps.
  • Rotate any key that was pasted into a shared chat, a screenshot, or a log.
  • Keep model-server ports such as 11434 internal and only expose the authenticated Odysseus web UI.

Next steps

Odysseus Model Setup: Ollama and API Keys Guide | Odysseus