Skip to content
OSSsoftware

Open Source Alternatives to OpenAI

OpenAI is the company behind ChatGPT and GPT models. These are the best free and open-source OpenAI alternatives, ranked by community, activity and maintenance — see also AI.

30 projects · top pick Ollama (★ 188k) · also LocalAI, LangChain, Meta Toolkit · stats updated 2026-11-27.

Share:XLinkedIn

Top 10 compared

Open-source OpenAI alternatives compared
ProjectStarsLicenseLanguageLast commitHealth
OllamaOpen-source platform for running large language models locally on macOS, Windows and Linux.188k GitHub starsMITGotodayThriving
LocalAIOpen-source OpenAI-compatible API for running AI models locally and privately.51k GitHub starsMITGotodayThriving
LangChain🦜🔗 Build context-aware reasoning applications.32k GitHub starsMITPythontodayThriving
Meta ToolkitGenerate meta tags or Preview how your webpage will look on social media.20 GitHub starsOSSTypeScript3 years agoInactive
HTML to JSXHTML to JSX Generator with NextJS.11 GitHub starsOSSTypeScript3 years agoInactive
AI Meta LlamaAlternative to OpenAi.———
OpenCodeOpen-source AI coding agent that works with any model provider from the terminal.229k GitHub starsMITTypeScripttodayThriving
n8nSecure, AI-native workflow automation.212k GitHub starsOtherTypeScripttodayThriving
Open WebUISelf-hosted AI interface for local and cloud language models with RAG and tool support.160k GitHub starsOtherSveltetodayThriving
ComfyUIOpen-source node-based interface and backend for advanced AI image generation workflows.149k GitHub starsGPL-3.0PythontodayThriving

All 30 projects

188k GitHub stars

Open-source platform for running large language models locally on macOS, Windows and Linux.

ThrivingGo · MIT · updated today
51k GitHub stars

Open-source OpenAI-compatible API for running AI models locally and privately.

ThrivingGo · MIT · updated today

LangChain

Python

32k GitHub stars

🦜🔗 Build context-aware reasoning applications.

ThrivingPython · MIT · updated today
20 GitHub stars

Generate meta tags or Preview how your webpage will look on social media.

InactiveTypeScript · updated 3 years ago
11 GitHub stars

HTML to JSX Generator with NextJS.

InactiveTypeScript · updated 3 years ago
229k GitHub stars

Open-source AI coding agent that works with any model provider from the terminal.

ThrivingTypeScript · MIT · updated today

n8n

AI

212k GitHub stars

Secure, AI-native workflow automation.

ThrivingTypeScript · updated today
160k GitHub stars

Self-hosted AI interface for local and cloud language models with RAG and tool support.

ThrivingSvelte · updated today
149k GitHub stars

Open-source node-based interface and backend for advanced AI image generation workflows.

ThrivingPython · GPL-3.0 · updated today
120k GitHub stars

Open-source self-hosted photo and video management platform with AI-powered search and recognition.

ThrivingTypeScript · AGPL-3.0 · updated today
119k GitHub stars

Fully local voice cloning, voice design, video dubbing and dictation in 646 languages.

ThrivingPython · AGPL-3.0 · updated today

Supabase

Databases

116k GitHub stars

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

ThrivingTypeScript · Apache-2.0 · updated today
110k GitHub stars

Local-first, open-source alternative to Claude Design: your coding agent becomes the design engine.

ThrivingTypeScript · Apache-2.0 · updated today
98k GitHub stars

Open-source high-throughput inference and serving engine for large language models.

ThrivingPython · Apache-2.0 · updated today

Zed

Code editors & IDEs

96k GitHub stars

High-performance open-source code editor with multiplayer collaboration and AI agent support.

ThrivingRust · updated today
94k GitHub stars

Open-source AI software development agent that can autonomously work on code and development tasks.

ThrivingTypeScript · MIT · updated today
86k GitHub stars

An open-source high-performance chatbot framework that supports speech synthesis / multimodal and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

ThrivingTypeScript · updated today

Netdata

Monitoring & observability

82k GitHub stars

Monitor your servers , containers and applications , in high-resolution and in real-time!

ThrivingGo · GPL-3.0 · updated today
80k GitHub stars

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

ThrivingPython · Apache-2.0 · updated today

OpenBB Terminal

Machine learning

76k GitHub stars

Investment Research for Everyone & Everywhere.

ThrivingPython · updated 2 days ago
72k GitHub stars

Open-source coding agent for IDE, terminal and automated development workflows.

ThrivingTypeScript · Apache-2.0 · updated today
69k GitHub stars

Open-source local-first AI workspace for LLMs, RAG, agents and document-aware chat.

ThrivingJavaScript · MIT · updated 3 days ago
64k GitHub stars

Call all LLM APIs using the OpenAI format.

ThrivingPython · updated today
61k GitHub stars

Local-first AI voice studio: voice cloning, TTS in 23 languages and dictation.

ThrivingPython · MIT · updated 2 days ago
61k GitHub stars

Open-source framework for orchestrating collaborative AI agents and workflows.

ThrivingPython · MIT · updated today
60k GitHub stars

A lightning-fast search engine API bringing AI-powered hybrid search to your sites and applications.

ThrivingRust · updated today
59k GitHub stars

A no-code RAG server that keeps answers in sync with your documents. Works with 8 vector databases. Built on Pathway.

ThrivingPython · MIT · updated 17 days ago
58k GitHub stars

Open-source managed agents platform that turns coding agents into teammates.

ThrivingGo · updated today
57k GitHub stars

Open-source extensible AI agent for developers with MCP support and multiple model providers.

ThrivingRust · Apache-2.0 · updated today

Head-to-head comparisons

Frequently asked questions

What is the best open-source alternative to OpenAI?

Ollama (★ 188k on GitHub) is the top-ranked open-source OpenAI alternative; LocalAI, LangChain, Meta Toolkit are strong options too.

Is there a free alternative to OpenAI?

Yes. All 30 projects on this page are open source and free to use; n8n, Open WebUI, Immich can be self-hosted on your own server.

Can I self-host an alternative to OpenAI?

Yes — n8n, Open WebUI, Immich are designed for self-hosting with Docker.

Why switch from OpenAI to open source?

No per-seat fees, full control of your data, no vendor lock-in, and the ability to audit and extend the code.