{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "thesysdev-open-intelligent-ui--run-chat-app-on-local-ollama-model",
 "repo": "thesysdev/open-intelligent-ui",
 "repo_url": "https://github.com/thesysdev/open-intelligent-ui",
 "repo_slug": "thesysdev-open-intelligent-ui",
 "title": "Run the chat app on a local model with Ollama and no API key",
 "page_title": "How to run the chat app on a local model with Ollama and no API key with Open Intelligent UI",
 "summary": "Point the app at a local Ollama model so answers run on your own machine.",
 "who": "A developer who wants to try or build the interactive chat without sending prompts to a hosted service.",
 "problem": "The default setup needs an OpenUI Cloud key, which is a barrier for private or offline testing.",
 "outcome": "A chat at localhost:3000 that answers using a local Ollama model, with the context window set large enough for the prompt.",
 "steps": [
  "Install Ollama, then run `ollama pull qwen3.8:27b`",
  "Run `OLLAMA_CONTEXT_LENGTH=32768 ollama serve` so the prompt is not cut",
  "In .env, set MODEL_PROVIDER=ollama, then run `npm run dev`",
  "Open http://localhost:3000 and send a prompt such as: I'm in San Francisco for a day, plan a sightseeing route for me"
 ],
 "agent_prompt": "In the thesysdev/open-intelligent-ui repo, follow the Run with a local model (Ollama) section: pull qwen3.8:27b, set OLLAMA_CONTEXT_LENGTH to 32768, set MODEL_PROVIDER=ollama in .env and start npm run dev. Send one travel prompt and report whether the answer renders as UI or as broken output. Verify the context window is at least 32768 before testing.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says local output is rendered as written with no Gateway correction, so smaller models may produce broken UI, and the default model is about 18 GB.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node 24",
  "An OpenUI Cloud (Gateway) key in THESYS_API_KEY, or any OpenAI-compatible API key set through LLM_BASE_URL, LLM_API_KEY and LLM_MODEL",
  "Optional: Ollama and enough memory for a local model (the README recommends 32 GB or more for the default)"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/thesysdev-open-intelligent-ui/run-chat-app-on-local-ollama-model/",
 "md": "https://dedupedai.com/use-cases/thesysdev-open-intelligent-ui/run-chat-app-on-local-ollama-model/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/thesysdev-open-intelligent-ui--run-chat-app-on-local-ollama-model.json",
 "api_version": "v1"
}
