awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Open Source OpenAI Alternatives

Ranking updated Jun 30, 2026

For an open source platform for LLM hosting, the first results are josstorer/rwkv-runner, abetlen/llama-cpp-python (llama-cpp-python wraps llama.cpp into a Python library that provides a local inference server with an OpenAI-compatible API, making it a self-hostable replacement for OpenAI's chat and completion services with support for multimodal vision and LoRA-based fine-tuning) and optimalscale/lmflow. sgl-project/sglang and arthur-ficial/apfel round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

We curate open-source GitHub repositories matching “open source openai alternatives”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

Open Source OpenAI Alternatives

Find the best repos with AI.We'll search the best matching repositories with AI.
  • josstorer/rwkv-runnerjosStorer avatar

    josStorer/RWKV-Runner

    6,219View on GitHub↗

    RWKV-Runner is a self-hostable platform for running RWKV large language models locally, featuring a chat interface and an OpenAI-compatible API, which directly fits the sought-after category—though it is limited to the RWKV architecture and lacks the multimodal vision support specified in the requirements.

    TypeScriptOpenAI-CompatibleOpenAI-Compatible ServersLoRA Training
    View on GitHub↗6,219
  • abetlen/llama-cpp-pythonabetlen avatar

    abetlen/llama-cpp-python

    9,993View on GitHub↗

    llama-cpp-python provides a Python interface for the llama.cpp library, enabling the execution of large language models with hardware acceleration. It functions as a GGUF model loader and a structured text generator capable of running inference servers and multimodal runtimes for processing both text and image inputs. The project distinguishes itself through a local inference server that exposes model capabilities via an OpenAI-compatible web API. It supports advanced execution techniques including speculative decoding, weight quantization, and layer-based GPU offloading to manage memory acro

    llama-cpp-python wraps llama.cpp into a Python library that provides a local inference server with an OpenAI-compatible API, making it a self-hostable replacement for OpenAI's chat and completion services with support for multimodal vision and LoRA-based fine-tuning.

    PythonOpenAI-Compatible Inference ServersOpenAI-Compatible Servers
    View on GitHub↗9,993
  • optimalscale/lmflowOptimalScale avatar

    OptimalScale/LMFlow

    8,488View on GitHub↗

    LMFlow is a comprehensive suite for large language model fine-tuning, context extension, multimodal processing, and inference execution. It provides a toolkit for updating model parameters through full tuning or memory-efficient adapter algorithms, alongside an inference engine for executing tuned models via command-line or web-based interfaces. The framework includes a dedicated alignment suite for supervised tuning and reward model training to refine model behavior. It features a context window extender to increase maximum input lengths and a multimodal framework for building chatbots that

    LMFlow is a self-hostable suite for fine-tuning and serving large language models that includes a web-based chat interface and multimodal processing, fitting your need for an open-source AI platform, though its API for completions is less emphasized than its training and alignment tools.

    PythonModel Fine-TuningParameter-Efficient Training Toolkits
    View on GitHub↗8,488
  • sgl-project/sglangsgl-project avatar

    sgl-project/sglang

    29,079View on GitHub↗

    Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It provides a programmable interface for orchestrating complex generation workflows, enabling developers to coordinate multi-turn dialogues, tool invocations, and reasoning chains through a domain-specific language. The platform is built to support production-scale deployments, offering an OpenAI-compatible API that allows for integration with existing application ecosystems. The system distinguishes itself through a disaggregated architecture that separates compute-intensive pr

    Sglang is a high-performance, self-hostable inference engine and serving system for LLMs and multimodal models, providing an OpenAI-compatible API and a programmable interface for chat and complex generation workflows, which directly matches the need for a self-hosted AI service replacement.

    PythonOpenAI-Compatible APIsVision-Language ModelsModel Adapters
    View on GitHub↗29,079
  • arthur-ficial/apfelArthur-Ficial avatar

    Arthur-Ficial/apfel

    5,856View on GitHub↗

    The free AI already on your Mac. CLI tool, OpenAI-compatible server, and interactive chat — all on-device via Apple Intelligence. No API keys, no cloud, no downloads.

    apfel is an open-source, self-hostable LLM serving platform that provides an OpenAI-compatible API and interactive chat, all running on-device via Apple Intelligence — it fits the search for a self-hosted AI chatbot server, though it is limited to Apple Silicon and lacks fine-tuning and explicit multimodal support.

    SwiftOpenAI-Compatible API ServersOpenAI-Compatible Servers
    View on GitHub↗5,856
  • zai-org/glm-4zai-org avatar

    zai-org/GLM-4

    7,058View on GitHub↗

    GLM-4 is a large language model and fine-tuning framework designed for human-like text production, complex reasoning, and multilingual conversation. It functions as a multimodal system capable of processing high-resolution visual content and as a long-context model designed to analyze documents with a context window of up to one million tokens. The project differentiates itself through a function calling interface that enables AI agent development by connecting the model to external APIs and real-time web browsing. It includes specialized capabilities for generating functional programming cod

    GLM-4 is a large language model and fine-tuning framework with OpenAI-compatible APIs, multimodal (vision) support, and a long-context capability, making it a self-hostable solution for AI completions and chat that directly meets the visitor's requirements.

    PythonModel Fine-TuningMultimodal Large Language ModelsOpenAI-Compatible APIs
    View on GitHub↗7,058
  • antirez/ds4antirez avatar

    antirez/ds4

    15,143View on GitHub↗

    ds4 is a local inference engine for DeepSeek models that includes a distributed runtime for splitting transformer layers across networked computers. It functions as a reasoning controller with a local weight streamer and an API server that streams chat completions via industry standard endpoints. The system employs a memory management model that loads model experts from disk on demand to execute models that exceed available system RAM. It provides controls for reasoning effort and model behavior steering, allowing the modification of response characteristics through activation directions. Th

    ds4 is a self-hostable local inference engine that serves LLM chat completions via an OpenAI-compatible API, making it a direct fit for replacing OpenAI's services, though it does not cover fine-tuning or multimodal vision.

    COpenAI-Compatible API ServersOpenAI-Compatible Servers
    View on GitHub↗15,143
  • oobabooga/text-generation-webuioobabooga avatar

    oobabooga/text-generation-webui

    47,323View on GitHub↗

    This project is a comprehensive platform for hosting and interacting with large language models directly on local hardware. It provides a web-based graphical interface that allows users to manage model loading, configure generation parameters, and execute text or chat interactions entirely offline. By running models locally, the software ensures complete data privacy and eliminates reliance on external cloud services for generative tasks. Beyond basic inference, the platform functions as a versatile workbench for generative AI development. It includes an integrated pipeline for fine-tuning mo

    This repository provides a self-hostable web interface and API for running large language models locally, covering chat, completions, and fine-tuning—though the given evidence does not explicitly confirm multimodal vision support, it remains a solid match for the core need.

    PythonModel Fine-TuningConversational Interfaces
    View on GitHub↗47,323
  • qwenlm/qwenQwenLM avatar

    QwenLM/Qwen

    21,294View on GitHub↗

    Qwen is a comprehensive framework for large language model development, serving, and deployment. It provides a complete ecosystem for transformer-based sequence modeling, offering base models alongside specialized tools for instruction-tuned alignment, fine-tuning, and long-context inference. The project is designed to support both research and production environments, enabling users to train, optimize, and host generative models locally or across distributed hardware. The framework distinguishes itself through its focus on high-performance serving and extensibility. It features a high-perfor

    Qwen is a comprehensive framework for developing, serving, and deploying large language models (including the popular Qwen family) that you can self-host, and it covers fine-tuning and long-context inference, though it does not explicitly advertise a built-in chat interface or multimodal support as a primary feature.

    PythonModel Fine-TuningOpenAI-Compatible APIs
    View on GitHub↗21,294
  • zai-org/chatglm-6bzai-org avatar

    zai-org/ChatGLM-6B

    41,039View on GitHub↗

    ChatGLM-6B is a generative AI inference engine designed for local execution of transformer-based language models. It provides a comprehensive runtime environment that allows users to load and run pre-trained neural network weights directly on their own hardware, ensuring data privacy and independence from external cloud services. The project distinguishes itself through a hardware-agnostic execution backend that supports deployment across diverse environments, including standard processors, Apple Silicon, and multi-GPU configurations. It incorporates advanced optimization techniques such as w

    ChatGLM-6B is a self-hostable inference engine that runs transformer-based LLMs locally, providing chat interfaces, API endpoints, fine-tuning tools, and vision support, covering all the key features needed to replace OpenAI's services.

    PythonAutoregressive Inference EnginesLocal Inference EnginesModel Runtimes
    View on GitHub↗41,039
  • ollama/ollamaollama avatar

    ollama/ollama

    174,300View on GitHub↗

    Ollama provides a framework for running and managing local machine learning models. It includes a command-line interface for model lifecycle management, such as creation, embedding generation, and configuration, alongside a stable API for programmatic interaction across multiple programming languages. The platform supports the import of models and adapters in various formats, including GGUF and Safetensors. Users can define custom model behaviors, prompt templates, and system messages through a configuration file format. It also offers tools for fine-tuning models with LoRA adapters and apply

    Ollama is a self-hostable LLM serving platform with a built-in chat interface, a stable API for completions, LoRA-based fine-tuning, and support for multimodal vision models — directly matching what you're looking for.

    GoAI Integration APIsAI Agent FrameworksAI and Machine Learning
    View on GitHub↗174,300
  • janhq/janjanhq avatar

    janhq/jan

    43,043View on GitHub↗

    Jan is a desktop application that functions as a local artificial intelligence model runtime and an open-standard API server. It enables the execution of large language models directly on local hardware, ensuring that data remains private and accessible offline while providing a unified interface for managing model weights and inference runtimes. The platform distinguishes itself by offering a modular inference backend that allows users to swap execution engines based on hardware compatibility and performance needs. It acts as a cross-platform orchestrator, providing the ability to switch bet

    Jan is a desktop application that runs large language models locally with a built-in API server and chat interface, making it a self-hostable platform for replacing OpenAI's chat/completion API, though it does not currently advertise fine-tuning or multimodal support.

    TypeScriptOpenAI-Compatible Servers
    View on GitHub↗43,043
  • oumi-ai/oumioumi-ai avatar

    oumi-ai/oumi

    8,858View on GitHub↗

    Oumi is a comprehensive large language model development platform designed for synthesizing data, fine-tuning models, and running performance evaluations. It serves as a unified environment for the entire model lifecycle, encompassing a training and fine-tuning suite, an evaluation framework, and tools for synthetic data generation and model distillation. The platform is distinguished by its iterative, failure-driven synthesis approach, which analyzes model weaknesses during evaluation to generate targeted training data. It utilizes an LLM-based judge framework to programmatically score respo

    Oumi is a full-lifecycle LLM development platform that includes fine-tuning capabilities and an OpenAI-compatible inference server, making it suitable for self-hosted model serving and completions, though its primary focus on development rather than a dedicated chat interface means it may not be the most out-of-the-box replacement for a chatbot service.

    PythonModel Fine-TuningOpenAI-Compatible Inference ServersPrivate AI Deployments
    View on GitHub↗8,858
  • nomic-ai/gpt4allnomic-ai avatar

    nomic-ai/gpt4all

    77,375View on GitHub↗

    GPT4All is a cross-platform runtime environment designed to execute large language models directly on local consumer hardware. By leveraging an optimized C++ inference backend, it enables private, offline AI interactions without requiring an internet connection or external cloud services. The project provides a comprehensive ecosystem for managing the entire model lifecycle, including discovery, downloading, and configuration of local weights. What distinguishes the platform is its integrated retrieval-augmented generation engine, which allows users to index local documents into semantic vect

    GPT4All is a cross-platform runtime for running large language models locally with a chat interface and local document indexing, making it a solid self-hostable alternative to OpenAI's services, though it lacks built-in fine-tuning and multimodal support.

    C++OpenAI-CompatibleOpenAI-Compatible APIs
    View on GitHub↗77,375
  • mlc-ai/mlc-llmmlc-ai avatar

    mlc-ai/mlc-llm

    22,057View on GitHub↗

    MLC LLM is a machine learning compiler and inference engine designed to execute large language models locally across diverse hardware platforms, including desktop, mobile, and web environments. By utilizing machine learning compilation, the project transforms high-level model definitions into specialized, hardware-specific binary libraries. This process optimizes model weights and generates compute kernels tailored to the unique memory and processing characteristics of target graphics and mobile hardware. The engine distinguishes itself by providing a unified runtime abstraction that enables

    MLC LLM is an inference engine and compiler that lets you serve large language models locally on your own hardware, including via API servers, which directly matches the self-hostable LLM serving platform intent, though it does not include a built-in chat interface, fine-tuning, or multimodal support out of the box.

    PythonOpenAI-Compatible APIs
    View on GitHub↗22,057
  • ericlbuehler/mistral.rsEricLBuehler avatar

    EricLBuehler/mistral.rs

    6,597View on GitHub↗

    mistral.rs is an inference engine for large language models that runs locally and exposes models behind OpenAI and Anthropic-compatible APIs. It serves as a multi-model serving platform, capable of loading several models in a single server process with per-request routing and on-demand loading and unloading. The engine supports multimodal inference, processing text alongside images, video, audio, and speech inputs, and includes a quantized model deployment runtime that reduces memory use and speeds up inference on consumer hardware. The project distinguishes itself through an agentic tool exe

    mistral.rs is a self-hostable inference engine that serves LLMs behind OpenAI-compatible APIs, supports multimodal inputs (images, video, audio), and can handle multiple models in one server — but its description does not mention fine-tuning, so it fits your core need for a local AI platform and API, though that feature isn't covered.

    RustOpenAI-CompatibleOpenAI-Compatible APIsOpenAI-Compatible Servers
    View on GitHub↗6,597
  • google-ai-edge/litert-lmgoogle-ai-edge avatar

    google-ai-edge/LiteRT-LM

    5,619View on GitHub↗

    LiteRT-LM is a high-performance inference framework designed to execute large language models locally on mobile, desktop, and IoT hardware. It serves as an on-device model runtime that utilizes CPU, GPU, and NPU acceleration to provide low-latency processing. The framework is distinguished by its ability to process text, vision, and audio inputs through a single multi-modal inference engine. It features a local HTTP server that emulates OpenAI-compatible API endpoints and a WebGPU-based runtime for executing models directly within a web browser. To ensure output reliability, it includes a con

    LiteRT-LM is an on-device inference framework that runs LLMs locally and provides an OpenAI-compatible API server with multimodal support, making it a strong self-hostable alternative for chat and completion endpoints, though fine-tuning is not covered in the evidence.

    C++OpenAI-Compatible API ServersOpenAI-Compatible Servers
    View on GitHub↗5,619
  • lm-sys/fastchatlm-sys avatar

    lm-sys/FastChat

    39,472View on GitHub↗

    FastChat is a training and serving platform for large language models that provides an integrated toolkit for fine-tuning, hosting, and benchmarking chatbots. It functions as an inference server capable of hosting multiple models and exposing them via a standardized API for chat applications. The platform distinguishes itself through a distributed model controller that manages worker nodes and routes requests across a hardware-agnostic inference layer supporting various accelerators. It includes a dedicated evaluation framework for assessing model quality using automated judges, multi-turn di

    FastChat is an open-source platform for training, serving, and evaluating large language models with a chat API, which directly matches your need for a self-hostable LLM serving platform, though it does not include built-in multimodal support for vision.

    PythonOpenAI-Compatible APIs
    View on GitHub↗39,472
  • vllm-project/vllmvllm-project avatar

    vllm-project/vllm

    83,048View on GitHub↗

    vLLM is a high-throughput inference engine designed for the efficient serving and execution of large language models. It functions as a production-ready distributed model server, providing standard API protocols for online serving while also supporting offline batch processing. The system is built to maximize token generation speed and memory efficiency, enabling both large-scale cloud deployments and local execution on personal hardware. The project distinguishes itself through advanced memory management and request scheduling techniques, most notably its use of non-contiguous key-value cach

    vLLM is a production-grade inference engine for serving large language models via standard APIs, making it an excellent self-hostable backend for AI chat and completion services, though it focuses on inference and lacks a built-in chat interface or fine-tuning capabilities.

    PythonContinuous Batching StrategiesCustom Model Execution EnginesDistributed Model Servers
    View on GitHub↗83,048
  • huggingface/text-generation-inferencehuggingface avatar

    huggingface/text-generation-inference

    10,775View on GitHub↗

    Text Generation Inference is a production-ready engine designed for the deployment and serving of large language models. It functions as a containerized runtime environment that manages model execution, scales across distributed hardware, and provides high-performance inference capabilities for demanding production environments. The project distinguishes itself through advanced optimization techniques, including continuous batching to maximize hardware utilization and tensor parallelism to shard large models across multiple accelerator cards. It supports efficient inference through custom com

    Text Generation Inference (TGI) is a self-hostable, production-ready engine that serves large language models with a high-performance API compatible with chat completions, fitting the core need for an open-source LLM serving platform — though it lacks built-in fine-tuning and doesn't emphasize multimodal support.

    PythonModel ServingContinuous Batching StrategiesLarge Language Model Runtimes
    View on GitHub↗10,775
  • xusenlinzy/api-for-open-llmxusenlinzy avatar

    xusenlinzy/api-for-open-llm

    2,460View on GitHub↗

    This project provides a unified server environment and gateway for hosting and executing open-source large language models on private infrastructure. It functions as a standardized interface that exposes locally deployed models through widely-adopted API protocols, allowing existing applications to interact with them without requiring code modifications. The platform distinguishes itself by acting as a compatibility layer that translates standard REST requests into model-specific execution calls. It supports advanced interaction patterns including real-time token streaming, function calling f

    This repository provides an OpenAI-compatible API server that supports a wide range of open-source large language models, making it a self-hostable LLM serving platform that directly addresses the need for an alternative to OpenAI's API, though it lacks a built-in chat interface and fine-tuning support.

    PythonOpenAI-Compatible API Servers
    View on GitHub↗2,460
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
josstorer/rwkv-runner6.2KTypeScriptmitFeb 18, 2026
abetlen/llama-cpp-python10KPythonmitAug 15, 2025
optimalscale/lmflow8.5KPythonApache-2.0May 22, 2026
sgl-project/sglang29.1KPythonApache-2.0Jun 16, 2026
arthur-ficial/apfel5.9KSwiftMITJun 23, 2026
zai-org/glm-47.1KPythonapache-2.0Jul 4, 2025
antirez/ds415.1KCMITJun 17, 2026
oobabooga/text-generation-webui47.3KPythonAGPL-3.0Jun 2, 2026
qwenlm/qwen21.3KPythonApache-2.0Mar 5, 2026
zai-org/chatglm-6b41KPythonApache-2.0Jun 27, 2024

Related searches

  • an open source alternative to OpenAI API
  • an open source llm proxy and gateway
  • an open source platform for AI characters
  • an open source AI gateway for LLM providers
  • an open source framework for machine learning
  • an open source model for local deployment
  • an open source engine for local LLMs
  • an open source platform for local LLMs