lemonade AGENTS.md

Repository instructions for Lemonade, a local server for running large language models on consumer computers with GPU or NPU acceleration. They describe its server, command-line client, tray applications, and supported model backends.

In plain words
What is it for?
Use them when working on model serving, HTTP or WebSocket APIs, model commands, backend integration, configuration, or desktop and tray clients.
Why use it?
They give agents the architecture needed to change the right executable or backend and understand how clients communicate with the server.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/lemonade-sdk/lemonade/agents-md
Clone the repo
git clone --depth 1 https://github.com/lemonade-sdk/lemonade

Made for: Codex, OpenCode.

Per session 4,973 This file is loaded in full into every session.
When invoked 4,973 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.04973 $0.04973
Opus 5 $0.02486 $0.02486
Sonnet 5 $0.00995 $0.00995
Haiku 4.5 $0.00497 $0.00497

Measured 3d ago against content hash 45d4ca56f333, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lemonade AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

This file provides guidance to agent driven code reviews when working with this repository.

Project Overview

Lemonade is a local LLM server providing GPU and NPU acceleration for running large language models on consumer hardware. It exposes OpenAI-compatible, Ollama-compatible, and Anthropic-compatible REST APIs, plus a WebSocket Realtime API. It supports multiple backends: llama.cpp, FastFlowLM, RyzenAI, whisper.cpp, stable-diffusion.cpp, Kokoro TTS, and Moonshine.

Architecture

Executables

  • lemond — Pure HTTP server. Handles REST API, routes requests to backends, manages model loading/unloading. Configured via config.json in the lemonade cache directory. CLI args: [cache_dir] [--port PORT] [--host HOST].
  • lemonade — CLI client (src/cpp/cli/). Commands: list, pull, delete, run, status, logs, launch, backends, scan, etc. Communicates with router via HTTP. Discovers running server via UDP beacon.
  • LemonadeServer.exe (Windows) — SUBSYSTEM:WINDOWS GUI app that embeds lemond and shows a system tray icon. Auto-starts via Windows startup folder.
  • lemonade-tray (macOS/Linux) — Lightweight tray client that connects to a running lemond. Platform code in src/cpp/tray/platform/.

Backend Abstraction

WrappedServer (src/cpp/include/lemon/wrapped_server.h) is the abstract base class. Each backend inherits it and implements load(), unload(), chat_completion(), completion(), responses(), and optionally install() / download_model(). Backends run as subprocesses — Lemonade forwards HTTP requests to them.

Backend Class Capabilities Device Purpose
llama.cpp LlamaCppServer Completion, Embeddings, Reranking GPU LLM inference — CPU/GPU (Vulkan, ROCm, Metal)
FastFlowLM FastFlowLMServer Completion, Embeddings, Audio NPU NPU inference (multi-modal: LLM, ASR, embeddings)
RyzenAI RyzenAIServer Completion NPU Hybrid NPU inference
vLLM VLLMServer Completion GPU LLM inference — ROCm on AMD iGPU/dGPU (Linux). Experimental, validated only on gfx1151 (Strix Halo).
whisper.cpp WhisperServer Audio CPU Audio transcription
stable-diffusion.cpp SdServer Image CPU Image generation, editing, variations
Kokoro KokoroServer TTS CPU Text-to-speech
Moonshine MoonshineServer Audio CPU Streaming speech-to-text (ONNX-based)

Read the full file on GitHub · 248 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 248 lines · 4,973 tokens per session scan A 45d4ca56f333

Subscribe to this mod's changes

lemonade AGENTS.md is an instructions file published in the GitHub repository lemonade-sdk/lemonade (5,570 stars, last pushed yesterday), licensed Apache-2.0. It adds 4,973 tokens to every session, about $0.0249 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.