local-ai-app-integration
Integrates local AI capabilities into applications using Embeddable Lemonade.
Skill by amd
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/amd-local-ai-app-integration
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/local-ai-app-integration
What's inside
- Skill name
local-ai-app-integration- Description
- Integrates local AI capabilities into applications using Embeddable Lemonade. Use when the user wants to add local AI, offline AI, private AI, on-device AI, a local LLM, local chat, embeddings, image generation, speech-to-text, or text-to-speech to an existing app; replace or supplement OpenAI, Anthropic, Ollama, or other cloud AI APIs with a local backend; only use to convert user apps. Do not use when the user just wants the agent itself to generate images, transcribe, or speak locally in the current workspace, even to cut their own API bill.
- License
- MIT
- Instructions
- 461 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (7)
- .federated.json
- SKILL.md
- evals.json · evals/
- main.py · evals/files/apikey-guard/
- main.py · evals/files/openai-stub/
- reference.md
- skill-card.md
SKILL.md (first lines)
# Local AI App Integration (Embeddable Lemonade) Add a local AI mode to an existing app that already talks to a cloud AI API (OpenAI, Anthropic, or Ollama-compatible). The app launches `lemond`, the Embeddable Lemonade binary, as a private subprocess and the existing client talks to it on `http://localhost:PORT/api/v1`. The user gets local, private, hardware-optimized inference (CPU, AMD iGPU/dGPU, XDNA2 NPU) with no separate install. **What you'll end up with:** one new launcher module (~30 lines), three mandatory changes to the existing HTTP client (`base_url`, `api_key`, and a 120-second HTTP timeout), one vendored binary under `vendor/lemonade/`. ## When this skill is the right tool Use this skill when **all** of the following are true: - The app already calls a cloud AI service over HTTP (OpenAI Chat Completions, Anthropic Messages, or Ollama). - The user wants that AI to run on the end-user's PC, with the AI engine bundled into the app, not as a separate user install. - The target platform is Windows x64 or Linux x64 (macOS embeddable is in beta). If the user instead wants a **system-wide** Lemonade Server (one install, shared across apps), do not use this skill; point them at `https://lemonade-server.ai/install_options.html` and the standard OpenAI base URL `http://localhost:13305/api/v1`. ## The opinionated path This skill follows one fixed sequence. Do not deviate without a stated reason. ``` [ ] 1. Survey the app's current AI integration [ ] 2. Pick a model + backend profile [ ] 3. Place Embeddable Lemonade in the app's tree (full package, not just the binary) [ ] 4. Add a `lemond` launcher (subprocess + API key + port + per-stage logging) [ ] 5. Re-point the existing client at lemond (base_url, api_key, 120s timeout — all three required) [ ] 6. Wait for /api/v1/health, install backend, then PULL the model before first use [ ] 7. Wire shutdown and error recovery ``` Track progress against this checklist. Move on only when each step verifies. > **Log every stage.** A local integration has many silent failure points — > spawn, health, backend install, model download, first inference. Without a > log line at each transition, "nothing happened" is indistinguishable from > "broke at stage 3." Emit one clear line per stage as you build (see > [Step 4](#step-4-add-a-lemond-launcher)); the most common dead-end in this > integration — a blank result with no error — is invisible without them. --- ## Step 1: Survey the app Find every place the app currently calls a cloud AI API. Search the repo for: - `openai`, `OpenAI(`, `chat.completions`, `responses.create` - `anthropic`, `Anthropic(`, `messages.create` - `api.openai.com`, `api.anthropic.com`, `localhost:11434` (Ollama) - `OPENAI_API_KEY`, `ANTHROPIC_API_KEY` Record three things before continuing: 1. **Client library and language** (e.g., `openai-python`, `openai-node`, `@anthropic-ai/sdk`, `go-openai`, raw `fetch`). 2. **Modalities used:** text chat, tool calling, embeddings, image gen, transcription, TTS. This drives the model + backend choice in Step 2. 3. **One single place** where the base URL and API key are constructed. If there isn't one, refactor to one before going further. Local-mode toggling must flip exactly one config object. 4. **Any API-key gating** that blocks the app before a key is entered (onboarding walls, validators that reject empty keys, startup checks that disable AI until a key exists). Note each one — Step 5 bypasses them in local mode. ## Step 2: Pick a model + backend profile Choose **one** default profile based on the app's primary modality. Do not ship a buffet. Ship one good default and document how the user can override it. | App's primary need | Default model | Recipe | Why | |---|---|---|---| | General chat / assistant | `Qwen3-4B-GGUF` | `llamacpp` | Small, fast, good tool calling, fits 8GB systems | | Coding assistant | `Qwen2.5-Coder-7B-Instruct-GGUF` | `llamacpp` | Strong code, runs on iGPU | | Vision / multimodal chat | `Gemma-4-E2B-it-GGUF` | `llamacpp` | Small multimodal default | | NPU-first on Ryzen AI | `Llama-3.2-3B-Instruct-Hybrid` | `ryzenai-llm` | XDNA2 NPU on Windows | | Speech-to-text (Windows) | `Whisper-Large-v3-Turbo` | `whispercpp` | One model; probe picks NPU → iGPU/dGPU → CPU automatically | | Speech-to-text (Linux NPU) | `whisper-v3-turbo-FLM` | `flm` | Linux NPU path; falls back to `whispercpp` iGPU/CPU off-NPU | | Text-to-speech | `kokoro-v1` | `kokoro` | CPU-only, low latency | | Image generation | `SDXL-Turbo` | `sd-cpp` | Single-step generation | For the LLM backend, default to `llamacpp` and let `lemond` pick `rocm` → `vulkan` → `cpu` automatically by leaving `llamacpp_backend` unset. Override only if the app has hard hardware requirements. **Scope: this skill selects a backend once at integration time on the developer's machine.** Runtime fallback based on the end user's hardware is out of scope. Bundle `vulkan` as the universal fallback so the app works on any machine. If the dev machine has an NPU and the chosen recipe supports it, the skill will use the NPU backend — otherwise it falls back to `vulkan`. > **Note:** having an NPU does not mean every recipe supports NPU. Confirm > the recipe/backend pair is `installed` or `installable` via > `GET /api/v1/system-info` before committing to it. See > [reference.md](reference.md#hardware-probing-with-v1system-info) for > per-recipe decision rules. For more options and tradeoffs, see [reference.md](reference.md). ## Step 3: Place Embeddable Lemonade in the app's tree and install backends **Get the embeddable artifact** from the latest Lemonade release: ``` https://github.com/lemonade-sdk/lemonade/releases/latest ``` Download the file matching your target OS:
From amd/skills, MIT.
More from amd/skills
- 0.700score
quark-install
amd
Installs or verifies AMD Quark and ensures the selected Python environment has an accelerator-matched PyTorch.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
quark-torch-llm-ptq
amd
Runs an end-to-end AMD Quark post-training quantization workflow for PyTorch / Hugging Face LLMs: inspect a Hub or local model, choose a quantization plan…
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
lemonade-router-builder
amd
Turns a natural-language description of routing intent into a valid Lemonade `collection.router` policy JSON.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
rocprofiler-pc-sampling
amd
Profiles a target application using rocprofv3 with program counter sampling enabled and then analyzes the results.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
local-ai-use
amd
Makes this agent generate images, transcribe audio, and synthesize speech on the user's own machine through a local Lemonade Server instead of a paid cloud API.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
serving-llms-on-epyc
amd
Serves an LLM on a supported AMD EPYC server CPU using vLLM with zentorch, in Docker, Podman, or conda.
SkillAFreshness: A★ 465Claude Code +9 - 0.695score
tracelens-analysis-orchestrator
amd
Orchestrates modular PyTorch profiler trace analysis with TraceLens: generates perf reports, prepares category data, runs system-level and compute-kernel…
SkillAFreshness: A★ 465Claude Code +9 - 0.695score
hyperloom-workload-optimizer
amd
Autonomously optimizes end-to-end LLM inference throughput on AMD Instinct GPUs and reports a validated gain, using the Hyperloom multi-agent optimizer.
SkillAFreshness: A★ 465Claude Code +9 - 0.695score
magpie-kernel-evaluator
amd
Benchmarks LLM inference and drives GPU kernel optimization with Magpie.
SkillAFreshness: A★ 465Claude Code +9 - 0.695score
rocm-doctor
amd
Diagnoses why ROCm, the HIP SDK, PyTorch, or llama.cpp is broken on an AMD GPU on Linux, Windows, or WSL2, then applies a low-risk fix with consent or hands…
SkillAFreshness: A★ 465Claude Code +9 - 0.660score
apu-memory-tuner
amd
Inspects and tunes the shared-vs-dedicated memory split on AMD Ryzen APUs with unified memory (UMA) so larger LLMs and image-gen models fit on the iGPU, or so…
SkillBFreshness: B★ 465Claude Code +9 - 0.660score
serving-llms-on-instinct
amd
Serves AI models on AMD Instinct GPU hardware using vLLM.
SkillBFreshness: B★ 465Claude Code +9
Signals
- Stars
- 465
- Forks
- 44
- Open issues
- 45
- Last commit (this folder)
- Oct 7, 2026 (21 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/amd/skills
- Website
- developer.amd.com/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from amd
- 0.700score
rocprofiler-pc-sampling
amd
Profiles a target application using rocprofv3 with program counter sampling enabled and then analyzes the results.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
local-ai-use
amd
Makes this agent generate images, transcribe audio, and synthesize speech on the user's own machine through a local Lemonade Server instead of a paid cloud API.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
quark-install
amd
Installs or verifies AMD Quark and ensures the selected Python environment has an accelerator-matched PyTorch.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
quark-torch-llm-ptq
amd
Runs an end-to-end AMD Quark post-training quantization workflow for PyTorch / Hugging Face LLMs: inspect a Hub or local model, choose a quantization plan…
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
lemonade-router-builder
amd
Turns a natural-language description of routing intent into a valid Lemonade `collection.router` policy JSON.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
serving-llms-on-epyc
amd
Serves an LLM on a supported AMD EPYC server CPU using vLLM with zentorch, in Docker, Podman, or conda.
SkillAFreshness: A★ 465Claude Code +9
Cite this page
local-ai-app-integration skill. Agent Mart. https://agentmart.dev/skills/amd-local-ai-app-integration (last updated 2026-10-24)