{"id":"local-llm-2027","title":"Run AI on your own machine in 2027.","searchTitle":"Best Local LLM Tools for 2027: Ollama, LM Studio and More","cheat":["Local means your prompts stay on your machine and nothing bills per token.","Memory sets the limit: at 4 bits, plan a bit over half a GB per billion parameters.","Never open the model server to the internet, and keep it updated."],"description":"Ollama, LM Studio, Jan, llama.cpp and MLX side by side: how to run AI models on your own computer, what hardware you need and how to keep it private.","topic":"building","tags":["must-know","builders"],"published":"2026-11-04","updated":"2026-11-04","minutes":5,"terms":[{"id":"local-llm","term":"Local LLM"},{"id":"quantization","term":"Quantization"},{"id":"parameters","term":"Parameters"},{"id":"open-weights","term":"Open-weights model"},{"id":"small-language-model","term":"Small language model"},{"id":"prompt-injection","term":"Prompt injection"}],"tools":[{"label":"Repos worth building on","path":"/repos"},{"label":"Skills and workflows","path":"/library/skills"}],"sources":[{"label":"Ollama on GitHub","url":"https://github.com/ollama/ollama"},{"label":"Ollama FAQ","url":"https://docs.ollama.com/faq"},{"label":"LM Studio docs","url":"https://lmstudio.ai/docs/app"},{"label":"llama.cpp on GitHub","url":"https://github.com/ggml-org/llama.cpp"},{"label":"Pickle scanning, Hugging Face","url":"https://huggingface.co/docs/hub/security-pickle"}],"blocks":[{"type":"p","children":[{"type":"text","text":"Running a model locally means the AI works on your own laptop or server instead of someone else's cloud. Your prompts stay on your machine, it works offline and nothing bills you per token. The trade-off is size: your memory decides how big a model you can run, and the biggest open models still need serious hardware. Going into 2027 the tools are easy enough to try in an afternoon. This directory covers the apps, the engines underneath, what your machine can run and how to keep it private for real. Descriptions are each project's own words; GitHub numbers are from 4 November 2026."}]},{"type":"h2","children":[{"type":"text","text":"Start here: apps for your laptop"}]},{"type":"ul","items":[[{"type":"link","href":"https://github.com/ollama/ollama","children":[{"type":"text","text":"Ollama"}]},{"type":"text","text":": \"Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.\" One command downloads and runs a model, and it speaks a subset of the OpenAI API, so many tools can point at it. 185,788 stars, MIT."}],[{"type":"link","href":"https://lmstudio.ai","children":[{"type":"text","text":"LM Studio"}]},{"type":"text","text":": a desktop app for running open models on macOS, Windows and Linux. Its docs say it \"can operate entirely offline, just make sure to get some model files first.\" The app itself isn't open source; its command-line tool, "},{"type":"link","href":"https://github.com/lmstudio-ai/lms","children":[{"type":"text","text":"lms"}]},{"type":"text","text":", is (MIT)."}],[{"type":"link","href":"https://github.com/janhq/jan","children":[{"type":"text","text":"Jan"}]},{"type":"text","text":": \"an open source alternative to ChatGPT that runs 100% offline on your computer.\" 45,378 stars, Apache-2.0."}],[{"type":"link","href":"https://github.com/nomic-ai/gpt4all","children":[{"type":"text","text":"GPT4All"}]},{"type":"text","text":": \"Run Local LLMs on Any Device.\" 77,345 stars, MIT. Its last push to GitHub was in May 2025, so check it's still maintained before you build on it."}]]},{"type":"h2","children":[{"type":"text","text":"The engines underneath"}]},{"type":"p","children":[{"type":"text","text":"Most local apps run on one of these. You'll meet them when you want more speed or control."}]},{"type":"ul","items":[[{"type":"link","href":"https://github.com/ggml-org/llama.cpp","children":[{"type":"text","text":"llama.cpp"}]},{"type":"text","text":": \"LLM inference in C/C++\", the engine behind much of the local scene and home of the GGUF model format. 133,261 stars, MIT."}],[{"type":"link","href":"https://github.com/ml-explore/mlx","children":[{"type":"text","text":"MLX"}]},{"type":"text","text":": \"An array framework for Apple silicon\", with "},{"type":"link","href":"https://github.com/ml-explore/mlx-lm","children":[{"type":"text","text":"mlx-lm"}]},{"type":"text","text":" to \"Run LLMs with MLX\" on a Mac. 29,036 and 7,540 stars, both MIT."}],[{"type":"link","href":"https://github.com/LostRuins/koboldcpp","children":[{"type":"text","text":"KoboldCpp"}]},{"type":"text","text":": \"Run GGUF AI models locally with a KoboldAI UI. One File. Zero Install.\" 12,142 stars, AGPL-3.0."}]]},{"type":"h2","children":[{"type":"text","text":"A chat window and an API"}]},{"type":"ul","items":[[{"type":"link","href":"https://github.com/open-webui/open-webui","children":[{"type":"text","text":"Open WebUI"}]},{"type":"text","text":": \"User-friendly AI Interface (Supports Ollama, OpenAI API, ...)\", a ChatGPT-style window for your local models. 157,654 stars. It uses its own Open WebUI License rather than a standard one, so read it before you ship it to others."}],[{"type":"link","href":"https://github.com/mudler/LocalAI","children":[{"type":"text","text":"LocalAI"}]},{"type":"text","text":": \"Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.\" 50,166 stars, MIT."}]]},{"type":"h2","children":[{"type":"text","text":"Serving a team or a product"}]},{"type":"p","children":[{"type":"text","text":"When many people or an app need the model at once, you need a serving engine on a proper GPU server."}]},{"type":"ul","items":[[{"type":"link","href":"https://github.com/vllm-project/vllm","children":[{"type":"text","text":"vLLM"}]},{"type":"text","text":": \"A high-throughput and memory-efficient inference and serving engine for LLMs.\" 96,224 stars, Apache-2.0."}],[{"type":"link","href":"https://github.com/sgl-project/sglang","children":[{"type":"text","text":"SGLang"}]},{"type":"text","text":": \"a high-performance serving framework for large language models and multimodal models.\" 38,412 stars, Apache-2.0."}],[{"type":"link","href":"https://github.com/exo-explore/exo","children":[{"type":"text","text":"exo"}]},{"type":"text","text":": \"Run frontier AI locally.\" It connects your own devices into one cluster, so you can run models larger than any one of them could hold. 48,160 stars, Apache-2.0."}]]},{"type":"h2","children":[{"type":"text","text":"What your machine can run"}]},{"type":"p","children":[{"type":"text","text":"Memory is the limit. Most people run models compressed to 4 bits per weight, which is called "},{"type":"link","href":"/ai-glossary/quantization","children":[{"type":"text","text":"quantization"}]},{"type":"text","text":". At that size a model needs a little over half a gigabyte of memory for every billion "},{"type":"link","href":"/ai-glossary/parameters","children":[{"type":"text","text":"parameters"}]},{"type":"text","text":", plus room for the conversation."}]},{"type":"ul","items":[[{"type":"strong","children":[{"type":"text","text":"An 8-billion-parameter model"}]},{"type":"text","text":" needs about 5 GB: a laptop with 16 GB of memory runs it comfortably."}],[{"type":"strong","children":[{"type":"text","text":"A 32-billion-parameter model"}]},{"type":"text","text":" needs about 20 GB: a Mac with 32 GB of memory or a graphics card with 24 GB."}],[{"type":"strong","children":[{"type":"text","text":"A 70-billion-parameter model"}]},{"type":"text","text":" needs about 40 GB: a Mac with 64 GB or more, or two 24 GB graphics cards."}]]},{"type":"p","children":[{"type":"text","text":"On a Mac with Apple silicon, the memory is shared, so most of it can hold the model. On a PC, the graphics card's own memory sets the fast limit; a model that spills into normal memory still runs, just slower. Some models are a "},{"type":"link","href":"/ai-glossary/mixture-of-experts","children":[{"type":"text","text":"mixture of experts"}]},{"type":"text","text":": they use only part of the model for each "},{"type":"link","href":"/ai-glossary/token","children":[{"type":"text","text":"token"}]},{"type":"text","text":", so they run faster than their size suggests, but you still need the memory to hold all of it."}]},{"type":"h2","children":[{"type":"text","text":"Which models to try"}]},{"type":"p","children":[{"type":"text","text":"Ollama's own description names Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen and Gemma. The biggest versions of these need far more memory than a laptop has, so pick a size that fits the list above; Ollama's model library shows the download size of each one. "},{"type":"link","href":"/ai-glossary/small-language-model","children":[{"type":"text","text":"Small language models"}]},{"type":"text","text":" are the ones built to fit. Each model also comes with its own licence, and "},{"type":"link","href":"/ai-glossary/open-weights","children":[{"type":"text","text":"open weights"}]},{"type":"text","text":" don't always mean open source, so read the licence before you use one at work."}]},{"type":"h2","children":[{"type":"text","text":"How to choose"}]},{"type":"ol","items":[[{"type":"strong","children":[{"type":"text","text":"Just want a private chat?"}]},{"type":"text","text":" Start with LM Studio or Jan. Download a small model, then turn off your wifi and see that it still answers."}],[{"type":"strong","children":[{"type":"text","text":"Building something?"}]},{"type":"text","text":" Use Ollama or LocalAI and point your code at their OpenAI-style API."}],[{"type":"strong","children":[{"type":"text","text":"On a Mac?"}]},{"type":"text","text":" Try the MLX tools; they're built for Apple silicon."}],[{"type":"strong","children":[{"type":"text","text":"Serving a team?"}]},{"type":"text","text":" That's a server job: vLLM or SGLang on a GPU machine."}],[{"type":"strong","children":[{"type":"text","text":"Coding with it?"}]},{"type":"text","text":" Several open-source coding agents can run on a local model. "},{"type":"link","href":"/learn/ai-coding-agents-2027","children":[{"type":"text","text":"AI coding agents for 2027, compared"}]},{"type":"text","text":" lists the ones that let you pick your model."}]]},{"type":"h2","children":[{"type":"text","text":"Keep it private for real"}]},{"type":"ul","items":[[{"type":"strong","children":[{"type":"text","text":"Don't put it on the internet."}]},{"type":"text","text":" Ollama listens only on your own machine (127.0.0.1, port 11434) by default and has no login. People change that so other devices can reach it, and in February 2026 LeakIX found 12,269 Ollama servers open to the public internet with no authentication. Keep it local, or put it behind a VPN and a login."}],[{"type":"strong","children":[{"type":"text","text":"Keep it updated."}]},{"type":"text","text":" "},{"type":"link","href":"https://www.cve.org/CVERecord?id=CVE-2026-7482","children":[{"type":"text","text":"CVE-2026-7482"}]},{"type":"text","text":", published in May 2026, let anyone who could reach an Ollama server older than 0.17.1 leak its memory, which may include API keys and other users' conversations."}],[{"type":"strong","children":[{"type":"text","text":"Check where a model comes from."}]},{"type":"text","text":" A model file is something your computer loads and runs. Download from publishers you trust, and avoid older pickle files: "},{"type":"link","href":"https://huggingface.co/docs/hub/security-pickle","children":[{"type":"text","text":"Hugging Face warns"}]},{"type":"text","text":" that loading one can run someone else's code."}],[{"type":"strong","children":[{"type":"text","text":"Local doesn't stop tricks."}]},{"type":"text","text":" A local model that reads web pages, files or email can still fall for "},{"type":"link","href":"/ai-glossary/prompt-injection","children":[{"type":"text","text":"prompt injection"}]},{"type":"text","text":". Keep approval on for actions; "},{"type":"link","href":"/learn/prompt-injection","children":[{"type":"text","text":"Prompt injection, explained for normal people"}]},{"type":"text","text":" shows real cases."}],[{"type":"strong","children":[{"type":"text","text":"Cloud models aren't local."}]},{"type":"text","text":" Ollama also offers cloud models, which run on its servers, not yours. Its FAQ says it doesn't store or log that content, but don't send anything you'd keep off the internet."}]]},{"type":"p","children":[{"type":"text","text":"New to the idea? Read what a "},{"type":"link","href":"/ai-glossary/local-llm","children":[{"type":"text","text":"local LLM"}]},{"type":"text","text":" is in plain words, then "},{"type":"link","href":"/learn/open-source-ai-agents","children":[{"type":"text","text":"Open-source AI agents worth trying in 2027"}]},{"type":"text","text":" for agents you can run on top."}]}],"quote":{"text":"local llm went from \"fun toy\" to \"production stack\" in the last 30 days. almost nobody noticed.","url":"https://x.com/glitch_/status/2051613774029668737","date":"2026-05-05"},"table":{"caption":"The main tools side by side","head":["","Best for","Licence","Stars, Nov 2026"],"rows":[["Ollama","Running models with one command and an API","MIT","185,788"],["Open WebUI","A ChatGPT-style window for local models","Open WebUI License","157,654"],["llama.cpp","The engine many local tools build on","MIT","133,261"],["vLLM","Serving many users from a GPU server","Apache-2.0","96,224"],["Jan","A private chat app that works offline","Apache-2.0","45,378"],["MLX","Running models on Apple silicon Macs","MIT","29,036"]]},"recent":[{"date":"2026-06-17","title":"An exposed Ollama server became an attacker’s brain","text":"Sysdig watched an attacker point a hacking tool at a misconfigured Ollama server and use its model to scan targets, match them to known flaws and write exploit code. Its advice: treat an exposed model server like an exposed database.","url":"https://sysdig.com/blog/llmjacking-evolved-attackers-are-using-stolen-ai-compute-to-build-offensive-agentic-tools/","source":"Sysdig Threat Research"},{"date":"2026-05-04","title":"Ollama memory leak fixed in 0.17.1","text":"CVE-2026-7482: a crafted model file sent to an unpatched Ollama server could leak its memory to anyone, no login needed. That memory may include API keys, system prompts and other users’ conversations.","url":"https://www.cve.org/CVERecord?id=CVE-2026-7482","source":"CVE record"},{"date":"2026-02-23","title":"12,269 Ollama servers open to anyone","text":"LeakIX found 12,269 Ollama instances on the public internet with zero authentication, mostly because people set them to listen on every network interface so other machines could reach them.","url":"https://blog.leakix.net/2026/02/ollama-exposed/","source":"LeakIX"}],"faq":[{"q":"What does running an AI model locally actually mean?","a":"Running a model locally means the AI works on your own laptop or server instead of someone else's cloud. Your prompts stay on your machine, it works offline and nothing bills you per token. The trade-off is size: your memory decides how big a model you can run, and the biggest open models still need serious hardware."},{"q":"How much memory do I need to run a local LLM?","a":"At 4-bit quantization, plan a little over half a gigabyte per billion parameters, plus room for the conversation. An 8-billion-parameter model needs about 5 GB, so a 16 GB laptop runs it comfortably. A 32-billion model needs about 20 GB, and a 70-billion model needs about 40 GB, such as a Mac with 64 GB or two 24 GB graphics cards."},{"q":"Ollama vs LM Studio vs Jan: which should I use?","a":"For a private chat, start with LM Studio or Jan, download a small model, then turn off your wifi to confirm it still answers. If you are building something, use Ollama or LocalAI and point your code at their OpenAI-style API. Note that the LM Studio app itself isn't open source, while Jan is Apache-2.0."},{"q":"Is it risky to expose my Ollama server to the internet?","a":"Yes. Ollama listens only on your own machine by default and has no login. In February 2026 LeakIX found 12,269 Ollama servers open to the public internet with no authentication. Keep it local, or put it behind a VPN and a login, and keep it updated, since versions older than 0.17.1 could leak memory including API keys."},{"q":"How should I prepare for running AI locally in 2027?","a":"Check your memory first and pick a model size that fits, using Ollama's library to see download sizes. Try LM Studio or Jan in an afternoon, or the MLX tools on a Mac. Read each model's licence before work use, download only from trusted publishers, avoid older pickle files, keep approval on for actions and never open the model server to the internet."}],"card":{"code":"LRN 29/38","rarity":"holo rare","type":"equip","name":"Home lab","image":"/images/cards/learn/local-llm-2027.webp?v=3bef510389f511de","share":"/images/cards/learn/local-llm-2027.jpg?v=3bef510389f511de","alt":"Home lab, a holo rare equip card for the guide “Run AI on your own machine in 2027”: Claymation still of a small clay robot sitting cross-legged inside an old beige computer tower made into a cosy bedroom, a graphics card for a bed."},"partOf":{"id":"forward-deployed-engineer","title":"What is a forward deployed engineer? The ultimate guide to becoming one in 2027"},"fresh":[{"week":"2026-W47","title":"Thinking Machines releases Inkling 2 Mini, a looped open-weights model","path":"/radar/2026-w47#story-wire-bd3614c30b5d6b837c23","date":"2026-11-22"},{"week":"2026-W44","title":"MLX-Serve puts OpenAI, Anthropic and Ollama APIs on a Mac","path":"/radar/2026-w44#story-wire-4aae132185ec73277c6b","date":"2026-11-01"}]}
