Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

node-llama-cpp

Runs local models with llama.cpp from Node.js, with JSON schema output.

Model SDKs npm MIT

Used in agent projects
19
0.4% of 4,818 JS/TS repos built with AI coding agents; 34 counting our dependency samples
Gid Score
33 /100
#3248 of 3,794 tools, #58 in model sdks · ranking
Rank in model sdks
#19 of 79
by use in those projects
Downloads
138K
npm, last 7 days, node-llama-cpp
GitHub stars
2,192
252 forks · last push Oct 19, 2026

How node-llama-cpp is used

node-llama-cpp is a dependency in 19 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 34 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Ollama JavaScript Library (29 projects). Projects that use it most often also use dotenv (82.4%), ws (82.4%), Zod (82.4%). It is more common in projects set up for OpenClaw (5.5%) than for GitHub Copilot (0.2%).

node-llama-cpp popularity over time

Top tools by Gid Score

node-llama-cpp: downloads per weeknpm, node-llama-cpp 138,197
node-llama-cpp: GitHub starswithcatai/node-llama-cpp 2,192

Gid Score 33: downloads 46, use in agent projects 35, GitHub stars 25, downloads trend 14 (each 0-100). How it is calculated.

Often used with node-llama-cpp

dotenv82.4% of node-llama-cpp projects · 5.3× more than average
ws82.4% of node-llama-cpp projects · 26.2× more than average
Zod82.4% of node-llama-cpp projects · 3.3× more than average
Mozilla Readability67.6% of node-llama-cpp projects · 110.5× more than average
AWS SDK for JavaScript (S3)64.7% of node-llama-cpp projects · 20.5× more than average
Sharp64.7% of node-llama-cpp projects · 13.8× more than average
sqlite-vec (JavaScript)64.7% of node-llama-cpp projects · 121.7× more than average
tsx64.7% of node-llama-cpp projects · 4.3× more than average

From all 34 projects in our scan that use node-llama-cpp, including the dependency samples.

By coding agent

Claude Code0.6% of projects set up for it
OpenClaw5.5% of projects set up for it
Gemini CLI1.9% of projects set up for it
GitHub Copilot0.2% of projects set up for it

Share of public repos configured for each agent that list node-llama-cpp as a dependency.

How node-llama-cpp is funded

Most funded tools

GitHub Sponsors

@giladgd3 current sponsors

GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work.

Ways to fund node-llama-cpp

GitHub Sponsors

As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.

Install

Packagenpm install node-llama-cpp
Main stacksTypeScript / JavaScript (25), Python (7), Next.js (1), Java / Kotlin (1)
Example projectsBitterbot-AI/bitterbot-desktop, ArgentAIOS/argentos-core, zhaojiaqi/MeowHub, raucvr/Group-Goki, viralcode/openwhale

Alternatives to node-llama-cpp

All model sdks

Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside node-llama-cpp are not listed here; they are in "Often used with".

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
Ollama JavaScript Library npm
Official JavaScript client library for Ollama to run and interact with local language models.
50 29 (0.6%) 454K 4,392 MIT
GitHub Copilot SDK npm
TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC.
42 10 (0.2%) 1.1M — MIT
Ollama AI Provider npm
Vercel AI provider for running LLMs locally using Ollama.
31 9 (0.2%) 85.9K 340 Apache-2.0

More in Model SDKs: OpenAI AI SDK OpenAI Python Library Anthropic SDK Google Generative AI Anthropic Python SDK Google GenAI Python SDK Hugging Face Hub

Is node-llama-cpp right for your project? Ask AgentGid →