Sandbox
@lemonade-sdk/lemonade

Local AI server and CLI for GPU apps

Lemonade runs local models on your own GPU or NPU and serves them through OpenAI-compatible APIs. It also ships a CLI for browsing, pulling, and launching models, plus an embeddable build you can bundle into your own app.

5,680 stars493 forksC++Updated 6d ago
Who it's for

Builders who want local models they can plug into Claude Code, OpenAI-style clients, or their own apps.

What it delivers

You can use local models without reworking your apps around a cloud API.

What it does

OpenAI-compatible server

Serves local models at `http://localhost:13305/v1` so existing OpenAI clients can connect with little change.

Model manager and CLI

Lets you list, pull, alias, and run models with commands like `lemonade list`, `lemonade pull`, and `lemonade run`.

Multi-modal model support

Runs text, speech-to-text, text-to-speech, image generation, and some 3D or classification models depending on backend support.

Embeddable binary

Provides a portable Lemonade build you can bundle into another app to add local AI without the Lemonade installer or branding.

App integrations and MCP

Includes integrations for apps such as Claude Code and an MCP server path for connecting agents to Lemonade.

How to get it

  1. 1To run and chat with Gemma
    lemonade run Gemma-4-E2B-it-GGUF
  2. 2To code with Lemonade models
    lemonade launch claude
  3. 3Multi-modality
    # image gen
    lemonade run SDXL-Turbo
    
    # speech gen
    lemonade run kokoro-v1
    
    # transcription
    lemonade run Whisper-Large-v3-Turbo
  4. 4To see available models and download them
    lemonade list
    
    lemonade pull Gemma-4-E2B-it-GGUF
  5. 5To manage model aliases for environment-independent naming and active-standby failover
    lemonade alias add production-llm Gemma-4-E2B-it-GGUF
    lemonade alias list
    
    # Instant active-standby failover to a different model target
    lemonade alias add production-llm Qwen3-0.6B-GGUF
    lemonade alias remove production-llm
  6. 6To see the backends available on your PC
    lemonade backends

README

🍋 Lemonade: Refreshingly fast local AI

Discord PRs Welcome Latest Release GitHub downloads GitHub issues License: Apache Star History Chart

Lemonade Banner

Download | Documentation | Discord

Lemonade is the local AI server that gives you the same capabilities as cloud APIs, except 100% free and private. Use the latest models for chat, coding, speech, and image generation on your own NPU and GPU.

Lemonade comes in two flavors:

  • Lemonade Server installs a service you can connect to hundreds of great apps using standard OpenAI, Anthropic, and Ollama APIs.
  • Embeddable Lemonade is a portable binary you can package into your own application to give it multi-modal local AI that auto-optimizes for your user’s PC.

This project is built by the community for every PC, with optimizations by AMD engineers to get the most from Ryzen AI, Radeon, and Strix Halo PCs.

Getting Started

  1. Install: Windows · Linux · macOS · Docker · Source
  2. Get Models: Browse and download with the Model Manager
  3. Generate: Try models with the built-in interfaces for chat, image gen, speech gen, and more
  4. Mobile: Take your lemonade to go: iOS · Android · Source
  5. Connect: Use Lemonade with your favorite apps:

Claude Code  Firefox Chatbot  AnythingLLM  Dify  GAIA  GitHub Copilot  Infinity Arcade  n8n  Open WebUI  OpenHands

Want your app featured here? Just submit a marketplace PR!

Supported Platforms

PlatformBuild
Arch LinuxArch package
Debian Trixie+Build .deb
DockerBuild Container Image
Fedora 43+Build .rpm
macOSBuild .pkg
SnapBuild Snap
Ubuntu 24.04+Build Launchpad PPA
Windows 11Build .msi

Using the CLI

To run and chat with Gemma:

lemonade run Gemma-4-E2B-it-GGUF

To code with Lemonade models:

lemonade launch claude

Multi-modality:

# image gen
lemonade run SDXL-Turbo

# speech gen
lemonade run kokoro-v1

# transcription
lemonade run Whisper-Large-v3-Turbo

To see available models and download them:

lemonade list

lemonade pull Gemma-4-E2B-it-GGUF

To manage model aliases for environment-independent naming and active-standby failover:

lemonade alias add production-llm Gemma-4-E2B-it-GGUF
lemonade alias list

# Instant active-standby failover to a different model target
lemonade alias add production-llm Qwen3-0.6B-GGUF
lemonade alias remove production-llm

To see the backends available on your PC:

lemonade backends

For hybrid setups, Lemonade can also route to any OpenAI-compatible cloud provider (Fireworks, OpenAI, OpenRouter, Together, …) alongside local models — see Cloud Offload. (Experimental.)

Model Library

Model Manager

Lemonade supports a wide variety of LLMs (GGUF, FLM, and ONNX), whisper, stable diffusion, etc. models across CPU, GPU, and NPU.

Use lemonade pull or the built-in Model Manager to download models. Custom GGUF/ONNX models can be pulled from Hugging Face or ModelScope, with their source retained for future updates.

Browse all built-in models →


Supported Configurations

Lemonade supports multiple inference engines for LLM, speech, TTS, and image generation, and each has its own backend and hardware requirements.

ModalityEngineBackendDeviceOS
Text generationllamacppsystemx86_64/ARM64 CPU, GPULinux
metalApple Silicon GPUmacOS
cudaNVIDIA GPUs (Turing or newer)**Windows, Linux
vulkanx86_64 CPU, AMD iGPU, AMD dGPU; ARM64 CPU/GPU (Linux)Windows, Linux
rocmAMD GPUs supported by ROCmWindows, Linux
cpux86_64 CPU; ARM64 CPU (Linux)Windows, Linux
llamacpp-hrx (experimental)hrxAMD GPUs (gfx1100, gfx1151)Linux
flmnpuXDNA2 NPUWindows, Linux
ryzenai-llmnpuXDNA2 NPUWindows
vllm (experimental)rocmStrix Halo iGPU (gfx1151)Linux
ds4 (experimental)rocmPrebuilt ds4 for AMD Strix HaloLinux
Speech-to-textwhispercppnpuXDNA2 NPUWindows
metalApple Silicon GPUmacOS
vulkanx86_64 CPUWindows, Linux
rocmSupported AMD ROCm iGPU/dGPU families*Windows, Linux
cpux86_64 CPUWindows, Linux
moonshinecpux86_64/arm64 CPUWindows, Linux, macOS
Text-to-speechkokorometalApple Silicon GPUmacOS
cpux86_64 CPUWindows, Linux
openmoss (experimental)cudaNVIDIA GPUsWindows, Linux
vulkanVulkan-capable GPUsWindows, Linux
rocmAMD GPUs (ROCm via TheRock)Windows, Linux
Audio generationthinksound (experimental)cudaNVIDIA GPUsWindows, Linux
vulkanVulkan-capable GPUsWindows, Linux
rocmSupported AMD ROCm iGPU/dGPU families (ROCm via TheRock)Windows, Linux
acestep (experimental)cudaNVIDIA GPUsWindows, Linux
vulkanVulkan-capable GPUsWindows, Linux
rocmSupported AMD ROCm iGPU/dGPU families (ROCm via TheRock)Windows, Linux
Image generationsd-cppmetalApple Silicon GPUmacOS
cudaNVIDIA GPUs (Turing or newer)**Windows, Linux
vulkanVulkan-capable GPUsWindows, Linux
rocmSupported AMD ROCm iGPU/dGPU families*Windows, Linux
cpux86_64 CPUWindows, Linux
thenoise (experimental)rocmSupported AMD ROCm iGPU familiesLinux
3D generationtrellis (experimental)cudaNVIDIA GPUsWindows, Linux
vulkanVulkan-capable GPUsWindows, Linux
rocmSupported AMD ROCm iGPU/dGPU families (ROCm via TheRock)Windows, Linux
Text classificationonnxruntime (experimental)cpux86_64 CPUWindows
cpux86_64/arm64 CPULinux
cpuarm64 CPUmacOS

To check exactly which recipes/backends are supported on your own machine, run:

lemonade backends
* See supported AMD ROCm platforms
ArchitecturePlatform SupportGPU Models
gfx1151 (STX Halo)Windows, UbuntuRyzen AI MAX+ Pro 395
gfx120X (RDNA4)Windows, UbuntuRadeon AI PRO R9700, RX 9070 XT/GRE/9070, RX 9060 XT
gfx110X (RDNA3)Windows, UbuntuRadeon PRO W7900/W7800/W7700/V710, RX 7900 XTX/XT/GRE, RX 7800 XT, RX 7700 XT
** See supported NVIDIA CUDA platforms
Compute CapabilityArchitectureGPU Models
sm_75TuringRTX 20-series, GTX 16-series, T4
sm_80 / sm_86AmpereRTX 30-series, A100, A40
sm_89Ada LovelaceRTX 40-series, L40, L4
sm_90HopperH100, H200
sm_100 / sm_120BlackwellRTX 50-series, B100, B200

Project Roadmap

Lemonade's roadmap is defined by a set of working groups. Visit the landing page here to learn each group's goal and roadmap.

Integrate Embeddable Lemonade in Your Application

Embeddable Lemonade is a binary version of Lemonade that you can bundle into your own app to give it a portable, auto-optimizing, multi-modal local AI stack. This lets users focus on your app, with zero Lemonade installers, branding, or telemetry.

Check out the Embeddable Lemonade guide.

Connect Lemonade Server to Your Application

You can use any OpenAI-compatible client library by configuring it to use http://localhost:13305/v1 as the base URL. A table containing official and popular OpenAI clients on different languages is shown below.

Feel free to pick and choose your preferred language.

PythonC++JavaC#Node.jsGoRubyRustPHP
openai-pythonopenai-cppopenai-javaopenai-dotnetopenai-nodego-openairuby-openaiasync-openaiopenai-php

Python Client Example

from openai import OpenAI

# Initialize the client to use Lemonade Server
client = OpenAI(
    base_url="http://localhost:13305/api/v1",
    api_key="lemonade"  # required but unused
)

# Create a chat completion
completion = client.chat.completions.create(
    model="Gemma-4-E2B-it-GGUF",  # or any other available model
    messages=[
        {"role": "user", "content": "What is the capital of France?"}
    ]
)

# Print the response
print(completion.choices[0].message.content)

Click to learn more about the available APIs and how to embed Lemonade in your own application.

FAQ

To read our frequently asked questions, see our FAQ Guide

Contributing

Lemonade is built by the local AI community! If you would like to contribute to this project, please check out our contribution guide.

Maintainers

This is a community project with many maintainers, please see the maintainers list here to see their subject areas. You can reach us by filing an issue or joining our Discord. This project is sponsored by AMD.

Code Signing Policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

Privacy policy: This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it. When the user requests a model download or registry lookup, Lemonade may contact Hugging Face Hub (see their privacy policy) or ModelScope, according to the model source selected by the user or packager.

License and Attribution

This project is:

Files in the repo

Repository payload31 top-level entries
  • .devcontainer
  • .github
  • .signpath
  • .ubuntu
  • .vscode
  • cmake
  • contrib
  • data
  • docs
  • examples
  • modelscope-blog
  • schemas
  • src
  • test
  • tools
  • .clangd
  • .dockerignore
  • .gitattributes
  • .gitignore
  • .pre-commit-config.yaml
  • AGENTS.md
  • CLAUDE.md
  • CMakeLists.txt
  • CMakePresets.json
  • DESIGN.md
  • Dockerfile
  • LICENSE
  • mkdocs.yml
  • README.md
  • setup.ps1
  • setup.sh

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k