LocalAI is an inference server that runs language, vision, voice, image, and video models through compatible APIs on local hardware. It is used to operate models privately across different hardware, including CPU-only systems, and supports applications, agents, and multi-user services. The catalogue contains instructions for using LocalAI.
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.
npx skills add mudler/LocalAI --skill apigit clone --depth 1 https://github.com/mudler/LocalAIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mudler/localai/api)<a href="https://agentmods.dev/skills/mudler/localai/api"><img src="https://agentmods.dev/badge/skills/mudler/localai/api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mudler/localai/api"><img src="https://agentmods.dev/badge/skills/mudler/localai/api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01359 |
| Opus 5.5 | $0.00019 | $0.00544 |
| Sonnet 5.5 | $0.00009 | $0.00272 |
| Haiku 4.5 | $0.00005 | $0.00136 |
Grade A, and why
api scanned grade A with 1 finding 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 2d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -o /dev/null -w '%{http_code}\n' $LOCALAI/readyz How it starts
The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Call the LocalAI API
LocalAI serves an OpenAI-compatible API. A client made for the OpenAI API works when you point its base URL at the server and use a model name that the server has.
Full reference: https://localai.io/docs/api/ and the server's own page at /swagger/index.html.
Before you start
-
Set the address. The default port is 8080.
LOCALAI=http://localhost:8080 -
If the server has API keys, send one with each request. Both headers work:
-H "Authorization: Bearer $LOCALAI_API_KEY" -H "x-api-key: $LOCALAI_API_KEY"Never print the key or write it in a file.
-
Check that the server is ready.
200means ready.curl -s -o /dev/null -w '%{http_code}\n' $LOCALAI/readyz -
List the models. Use a name from this list. Never guess a name.
curl -s $LOCALAI/v1/models -H "Authorization: Bearer $LOCALAI_API_KEY" | jq -r '.data[].id'No model, or not the right kind: install one first (skill
localai:models).
OpenAI-compatible endpoints
| Task | Method and path |
|---|---|
| Chat | POST /v1/chat/completions |
| Text completion | POST /v1/completions |
| Responses API | POST /v1/responses |
| Anthropic Messages API | POST /v1/messages |
| Embeddings | POST /v1/embeddings |
| Image from text | POST /v1/images/generations |
| Text to speech | POST /v1/audio/speech |
| Speech to text | POST /v1/audio/transcriptions |
| Models | GET /v1/models |
Chat
curl -s $LOCALAI/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCALAI_API_KEY" \
-d '{
"model": "MODEL",
"messages": [{"role": "user", "content": "Say hello in one word."}]
}' | jq -r '.choices[0].message.content'
Add "stream": true to get server-sent events. Tools and function calling use the OpenAI tools field: https://localai.io/docs/api/openai-functions/
Embeddings
curl -s $LOCALAI/v1/embeddings \
-H "Content-Type: application/json" \
-d '{"model": "MODEL", "input": "The cat sat on the mat."}' \
| jq '.data[0].embedding | length'
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.
- 2d ago First seen · 158 lines · 47 tokens per session scan A 795142b75df2
api is a skill published in the GitHub repository mudler/LocalAI (50,617 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 1,359 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-28.
api compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| apimudler/LocalAI | Skill | 51k | today | MIT | A | 47 | Claude Code |
| openrouterbobmatnyc/claude-mpm-skills | Skill | 79 | 4mo ago | MIT | B | 32 | Claude Code |
| llm-integrationLuuOW/meridian-mcp | Skill | 0 | 1mo ago | MIT | A | 29 | Claude Code, Codex |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| serving-llms-vllmNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 27 | Claude Code, Codex |
| open-sourcebrowser-use/browser-use | Skill | 122k | today | MIT | A | 101 | Claude Code |
| sglang-diffusion-performancesgl-project/sglang | Skill | 39k | today | Apache-2.0 | A | 29 | Claude Code, Codex |