selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Self-hosted alternatives to OpenAI API

--sort

Also in AI Chat

Not listed as OpenAI API alternatives, but they cover the same ground and are worth a look.

All 164 AI Chat projects

About these OpenAI API alternatives

5 open-source, self-hosted alternatives to OpenAI API are listed here, ranked by popularity, maintenance and documentation.

Highest rated
Text Generation WebUI (47 724 GitHub stars, AGPL-3.0 license, written in Python), followed by llama-gpt and Atomic Chat
Docker
2 of the top 5 ship an official Docker image
Easiest to set up
Text Generation WebUI and Atomic Chat
Recently updated
Atomic Chat v2.2.26 on 2026-10-28

OpenAI API alternatives compared

ProjectLicenseLanguageStarsDockerSetupLatest releaseScore
Text Generation WebUIAGPL-3.0Python47 724—Easyv4.976
llama-gptMITTypescript10 922YesModerate1.0.164
Atomic ChatOtherTypescript1 864—Easyv2.2.2660
Qwen GateMITTypescript206—Moderatev0.8.046
Open ResponsesApache-2.0Go236YesModeratev0.142