The best open-source AI tools in 2026: Ollama, Stable Diffusion, Aider, Open WebUI, Jan and LM Studio
What open source means for AI tools
Open source has two meanings in AI, and they often get mixed up. For software, such as a chat app or a model runner, it means the code is published under a license like MIT or Apache 2.0 that lets anyone use, modify and redistribute it. For models, the usual term is open weights: the trained model files are downloadable, but the license may limit commercial use and the training data is rarely shared. The Open Source Initiative published an Open Source AI Definition in October 2024 that requires access to enough information about the training data to rebuild the model, and few popular models meet it.
For most people the practical question is simpler. Can you run it on your own hardware, for free, including at work? Every tool in this collection lets you do that, though the licenses differ.
| Tool | What it does | License | Free at work |
|---|---|---|---|
| Ollama | Runs open models locally, serves an API | MIT | Yes |
| Jan | Desktop chat app for local and cloud models | Apache 2.0 | Yes |
| Open WebUI | Browser chat for teams on top of Ollama or any API | BSD-3 with branding clause | Yes, branding kept above 50 users |
| Aider | AI pair programmer in the terminal | Apache 2.0 | Yes |
| LM Studio | Desktop app for local models | Proprietary, free | Yes, since July 2025 |
| Stable Diffusion 3.5 | Image generation model | Stability AI Community License | Under $1M revenue |
Running models: Ollama
Ollama is the engine most local AI setups are built on. After installing it, ollama run followed by a model name downloads that model and opens a chat. More important for other tools, Ollama runs a local server with its own API plus OpenAI- and Anthropic-compatible endpoints, so coding agents, note apps and chat interfaces can treat a local model the same way they treat a cloud one. It ships desktop apps for macOS and Windows alongside the command line, and builds on the llama.cpp library and its GGUF model format.
The company also sells hosted access to large open models that will not fit on most computers. Since August 31, 2026 the Free plan includes a small amount of cloud usage, Pro costs $20 a month and Max $100. Local use stays free and unlimited on every plan. See the Ollama terminal guide for commands and setup.
Chat apps: Jan and LM Studio
Jan, made by Menlo Research, installs like any desktop app and gives you a chat window, a model browser that downloads from Hugging Face, and an OpenAI-compatible server on port 1337. It can also connect to cloud providers such as OpenAI, Anthropic, Mistral and Groq with your own keys, and supports MCP tools. Jan lists more than 6.5 million downloads. As a fully Apache 2.0 project, it suits organizations whose policies require open-source software.
LM Studio is the most polished desktop app for local models, and it appears in many open-source lists even though the app itself is closed source. Its model browser shows which files fit your memory and lets you tune GPU offload and context length. It runs llama.cpp on every platform and Apple's MLX on Macs, which is often faster on Apple Silicon. Version 0.4.0 in January 2026 added headless server deployment and parallel requests. LM Studio dropped its commercial license requirement on July 8, 2025, so it is free at work.
Team chat: Open WebUI
Open WebUI gives a household, lab or company a browser chat that looks and works like ChatGPT. It sits on top of Ollama or any OpenAI-compatible API and adds user accounts, roles, document search, web search, tool calling, image generation and voice. Most people run it with Docker on a home server or office machine.
Its license is the main caveat. From version 0.6.6, released in April 2025, deployments that serve more than 50 users in a 30-day period must keep the Open WebUI name and logo unless they buy an enterprise license or get written permission. The project states that this makes the license no longer OSI-approved open source. Code up to version 0.6.5 remains under plain BSD-3. For small teams the rule has no practical effect.
Coding: Aider
Aider is a terminal pair programmer that edits files in a git repository. You add files to the session, describe the change, and Aider applies edits and commits each one with a descriptive message. It builds a map of the repository so the model understands how files relate, supports voice input and can lint and test after each change. It works with Claude, GPT, Gemini, DeepSeek and local models through Ollama. The tool is free, and you pay only your model provider. Newer open-source agents such as OpenCode and OpenHands compete with it, and our terminal section covers them.
Images: Stable Diffusion
Stable Diffusion, from Stability AI, made local image generation popular in 2022 and still has the largest collection of community fine-tunes, LoRAs and workflows. You run it through an interface such as ComfyUI, Forge or InvokeAI, ideally on an NVIDIA graphics card with 8 GB or more of video memory. Stable Diffusion 3.5 is free under the Community License for individuals and businesses under $1 million in revenue. The FLUX family from Black Forest Labs has overtaken it in many workflows, with FLUX 3 Image Klein released as open weights on October 15, 2026 and a Kommunity License that allows free commercial use under $5 million.
A free local stack
These tools fit together. A typical setup looks like this:
- Install Ollama and pull a model sized to your memory, such as a 7 to 14 billion parameter Qwen or Gemma model.
- Add Open WebUI for a browser interface the whole team can use, or Jan for a single-user desktop app.
- Point Aider or another coding agent at Ollama's local server for private coding help.
- Run ComfyUI with Stable Diffusion or FLUX for images.
The trade-off is hardware. A model that runs well on a 16 GB laptop is useful for drafting, summarizing and simple code, but it will not match the top paid cloud models on hard reasoning. An Apple Silicon Mac with 32 GB or more of unified memory, or a PC with a 16 to 24 GB NVIDIA card, runs much larger models. Our local AI guide and the open-source alternatives directory go further.
Checking a license before you deploy
Before rolling an open tool out at work, check three things. First, the license file in the repository, since some projects change licenses between versions, as Open WebUI did. Second, the license of the model you run, which is separate from the app's license; Llama, Gemma and Stable Diffusion each have their own terms. Third, any telemetry settings, which some apps enable by default and let you turn off.
Related: privacy-first AI tools, best free AI tools, open-source alternatives.
Frequently asked questions
What is the best open-source AI tool?
For running AI models on your own computer, Ollama is the most used open-source tool, under the MIT license. It downloads and serves open models such as Llama, Qwen, Gemma and gpt-oss with one command and exposes an API that many other apps connect to. If you want a desktop chat app without a terminal, Jan is the main fully open-source choice. For coding, Aider is the most established open-source terminal agent.
Is LM Studio open source?
No. LM Studio is free to download and, since July 8, 2025, free for use at work as well as at home, but the desktop app itself is proprietary. Some parts are open, including its command-line tool and SDKs, and it runs open models on top of the open-source llama.cpp and Apple MLX libraries. If you need an open-source app for policy reasons, Jan offers a similar experience under Apache 2.0.
Is Stable Diffusion open source?
Stable Diffusion is open weights. You can download and run the model files, but under a license with conditions. Stable Diffusion 3.5 uses Stability AI's Community License, which is free for research, personal use and businesses with under $1 million in annual revenue. Larger businesses need an Enterprise license. That differs from open-source software licenses such as MIT or Apache, which put no revenue limit on use.
What is the difference between open source and open weights?
Open-source software publishes the code under a license that lets anyone use, change and share it, usually without restrictions on who uses it. Open-weights AI models publish the trained model files so you can run them yourself, but often under custom licenses that limit commercial use, require attribution or ban certain uses, and they rarely publish the full training data. Meta's Llama, Stability's Stable Diffusion and Black Forest Labs' FLUX are open weights. Some models, such as OpenAI's gpt-oss and many Qwen and Mistral releases, use Apache 2.0, which is closer to traditional open source.
Can I build a free private ChatGPT alternative with open-source tools?
Yes. A common setup is Ollama running an open model such as Qwen or Gemma on a computer with a capable GPU or an Apple Silicon Mac, with Open WebUI on top for a ChatGPT-style browser interface, user accounts and document search. Everything runs on your own hardware, so prompts and files stay there. The main costs are hardware and electricity, and the models that fit on a single machine are weaker than the top paid cloud models.







