LLMHarbor: A Free Self-Hosted AI API Gateway for Windows, Linux, Android and macOS

Open source · Self-hosted · AI gateway

Meet LLMHarbor: One Gateway for Multiple AI Providers

Connect your own provider keys, manage models from a dashboard, and use an OpenAI-compatible endpoint across your AI apps and tools.

What is LLMHarbor?

A self-hosted AI API gateway

LLMHarbor is a free, open-source gateway maintained by Zelvior Labs. It brings multiple AI providers behind one OpenAI-compatible API, giving you a single place to manage provider keys, models, routing, and fallback behavior.

Instead of configuring each compatible app separately for every provider, you can connect your providers to LLMHarbor and point your client at its local API endpoint.

Bring your own provider keys: LLMHarbor does not provide unlimited AI usage. Provider quotas, availability, pricing, and terms still apply—even when requests pass through the gateway.

LLMHarbor is a modified version of freellmapi by Tashfeen Ahmed.

Highlights

Why use LLMHarbor?

One API, multiple providers Connect supported providers and custom OpenAI-compatible endpoints.
Automatic routing Route requests to available models and keys based on health and rate limits.
Fallback handling Try another candidate after certain errors, rate limits, timeouts, or stalls.
Dashboard and playground Manage keys and models, review analytics, and interact with AI from a browser-based interface.
Multiple platforms Desktop, legacy Windows and Linux, Android, Docker, and source installation options.
Open source Review the code, explore the documentation, and contribute on GitHub under the MIT license.
Inside the dashboard

Manage models and experiment with AI

The dashboard provides tools for managing provider keys, models, and fallback chains. It also includes analytics, logs, backups, and a playground.

The playground offers Chat, Agent, Coding, Research, and Compare modes. Depending on the selected tools and configured providers, agent modes can perform tasks such as working with files, searching the web, and generating supported media.

LLMHarbor playground showing an AI chat interface

LLMHarbor playground screenshot from the project documentation.

Review tool permissions: Agent tools can take actions such as creating files or using connected services. Review what you enable and avoid giving an agent access it does not need.
How it works

From provider keys to one API endpoint

  1. Install or start LLMHarbor on a supported platform.
  2. Create the first dashboard account and sign in.
  3. Add your provider keys on the dashboard’s Keys page.
  4. Copy your unified API key from the dashboard.
  5. Connect a compatible app to the appropriate local API URL for your installation.

You can select a specific model or use routing options such as auto. Available models and features depend on the providers and keys you configure.

LLMHarbor dashboard showing models and routing information

Models and routing in the LLMHarbor dashboard.

Compatibility

Where can you run LLMHarbor?

Platform Available options
Windows Desktop builds, plus a legacy edition for Windows 7 SP1, Windows 8, and Windows 8.1.
Linux Desktop builds for x64 and ARM64, plus Linux Legacy for x86 and x64.
macOS Builds for Apple silicon and Intel; macOS 12 or later.
Android APKs for supported architectures; Android 8.0 or later.
Docker and source Self-host using the project’s Docker or source instructions.

Check the current download page and release notes for the exact requirements and filenames before installing.

Open the downloads page

Older computers

LLMHarbor on Windows 7 and 32-bit Linux

One useful feature for legacy-PC enthusiasts is the availability of separate builds intended for older Windows and Linux systems.

Windows 7 SP1, 8, and 8.1

The Windows legacy edition bundles its runtime, so a separate Node.js installation is not required just to launch that edition.

Choosing the correct Windows 7 x86 file: In the published v1.0.0 release, select the file marked windows-legacy-x86 for 32-bit Windows 7—not the normal windows-x86 file. File naming may change in later releases, so always read the notes for the release you download.

The legacy Windows edition is a preview pending confirmation on real Windows 7, 8, and 8.1 installations. Compatibility should not be assumed for every machine or package.

Linux Legacy for x86 and x64

Linux Legacy runs the API server and opens its dashboard in a browser; it is not the Electron desktop app. It requires a working system installation of Node.js 18 or newer. For an x86 system, that means a suitable 32-bit Node.js installation.

The Linux Legacy downloads include .deb, AppImage, and portable archive options. Follow the release notes for the file you choose.

View current GitHub release notes and downloads

For developers

Use an OpenAI-compatible API

LLMHarbor offers an OpenAI-compatible /v1 API for compatible clients. The project also documents Anthropic Messages, Gemini, optional Ollama emulation, and an MCP endpoint.

The endpoint depends on how you run the application:

  • Desktop and Android apps: http://127.0.0.1:31415/v1 by default.
  • Linux Legacy: http://127.0.0.1:3001/v1 by default.
  • Source development setup: http://localhost:3001/v1 by default.

For example, a Python client can use the desktop endpoint after LLMHarbor is running and a provider key has been configured:

from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:31415/v1",
    api_key="YOUR_LLMHARBOR_API_KEY"
)

response = client.chat.completions.create(
    model="auto",
    messages=[
        {"role": "user", "content": "Explain what an API gateway does."}
    ]
)

print(response.choices[0].message.content)

Replace the example key with your own unified LLMHarbor key. For Linux Legacy, change the port to 3001. Keep real API keys out of public posts, screenshots, and source repositories.

For the complete API reference, visit the LLMHarbor API documentation .

Privacy and security

Where are provider keys stored?

According to the project documentation, provider keys are stored in an SQLite database on your machine using AES-256-GCM encryption. Client applications can use a unified key or separately created client credentials instead of receiving your provider keys directly.

Local gateway does not mean fully offline AI: When you use an external AI provider, your request is still sent to that provider. Review the provider’s privacy policy and terms before sending sensitive information.

LLMHarbor is intended for personal use and trusted networks. Keep your API keys and backups private, leave LAN access off unless you need it, and do not expose the gateway directly to the public internet.

Download and setup

Get started with LLMHarbor

  1. Visit the LLMHarbor app page or GitHub Releases.
  2. Choose a build that matches your operating system and architecture.
  3. Compare the downloaded file’s SHA-256 checksum with the published checksum before running it.
  4. Install or extract the build, following the platform instructions.
  5. Start LLMHarbor, create your dashboard account, and add a provider key.
FAQ

Frequently asked questions about LLMHarbor

Is LLMHarbor free?

LLMHarbor is free and open source under the MIT license, and the project has no paid plan. The AI providers you connect have their own quotas, pricing, and terms.

Does LLMHarbor provide free API keys?

You add your own keys from the providers you use. Provider free tiers and availability can change, so check each provider’s current terms.

Does LLMHarbor work with OpenAI-compatible applications?

It provides an OpenAI-compatible API. Individual client features and models still depend on your configuration and provider support.

Can I use LLMHarbor on Windows 7 32-bit?

A separate Windows legacy edition is available for Windows 7 SP1, including an x86 build. It is a preview and should be tested on the intended machine. Check the release notes carefully for the correct legacy filename.

Can I use LLMHarbor on 32-bit Linux?

A Linux Legacy x86 build is available. It uses the system’s Node.js installation and opens the dashboard in a browser.

Is LLMHarbor completely offline?

The gateway can run locally, but requests to external AI providers require a network connection and are sent to those providers.

Project links

Explore the project

LLMHarbor is maintained by Zelvior Labs and is based on freellmapi. Platform support, provider terms, and available downloads may change.

Did this help?

These guides are free. If one saved you time, you can say thanks, ask a question or follow the projects.

Ad settings

Ad settings. Edit the data-* values above: set data-enabled to "false" to turn ads off, or change data-src and data-key to use a different ad zone. Remove this gadget to remove the ad slot.