LibreAI / Local LLM / node-llama-cpp
// local-llm · withcatai/node-llama-cpp

node-llama-cpp

Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level

★ 2.2k stars⑂ 221 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

node-llama-cpp is an open-source local llm project by withcatai (withcatai/node-llama-cpp on GitHub). It has 2,187 GitHub stars and 221 forks, is released under the MIT license, and was last updated on GitHub on 2 October 2026.

GitHub stars
2,187
Forks
221
License
MIT
Last updated on GitHub
2 October 2026
Category
Local LLM
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Install the runtime

    One binary or app gets you a working local model setup.

  2. Download a model

    Pick a size that fits your RAM/VRAM; smaller models run on laptops.

  3. Chat or integrate

    Use the built-in UI, or point OpenAI-compatible clients at it.

  4. Go private

    Airplane mode works — your prompts never leave the device.

// features

Why people love it

Extensible

RAG, tools, and agents build on the same base.

Quantized efficiency

Smart compression runs big models on modest hardware.

Offline capable

Works on planes, in basements, behind firewalls.

Model choice

Swap between hundreds of open models freely.

OpenAI-compatible APIs

Existing tools plug in by changing one URL.

Document chat

Ask questions over your PDFs, notes, and codebases.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/withcatai/node-llama-cpp.git
    cd node-llama-cpp
  2. Step 2 — Check the README

    Every project documents its own setup; start with install requirements.

    cat README.md | head -60
  3. Step 3 — Run it

    Follow the project's launch command — Docker, pip, npm, or a binary release.

    # see README for the exact launch command
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains node-llama-cpp?

It is an open-source project at withcatai/node-llama-cpp with 221 forks. Check the repo's contributors and recent commits to see how active maintenance is.

Is node-llama-cpp free for commercial use?

MIT licensed — use it commercially, no strings attached.

What hardware do I need?

8B models run on 16GB RAM; bigger models want a real GPU.

Which model should I start with?

A recent 8–32B instruct model is the sweet spot for most machines.

Is it really private?

Yes — with no network calls, there's nothing to leak.

// keep exploring

Similar tools

Local LLM

llmfit

Hundreds of models & providers. One command to find what runs on your hardware.

★ 37.5k starsMIT
View guide →
Local LLM

assistant-ui

Typescript/React Library for AI Chat 💬🚀

★ 12.4k starsMIT
View guide →
Local LLM

atomic-agent

Atomic Agent is a local-first AI agent. Runs open-weight models on your own machine via llama.cpp.

★ 2.7k starsMIT
View guide →
Local LLM

maid

Maid is a free and open source application for interfacing with llama.cpp models locally, and with Anthropic, DeepSeek, Ollama, Mistral and OpenAI models rem…

★ 2.7k starsMIT
View guide →
Local LLM

kalosm

Run controllable pre-trained AI models locally, written in Rust.

★ 2.2k starsApache-2.0
View guide →
Local LLM

Koboldcpp

KoboldCpp - Run GGUF AI models locally with a KoboldAI UI. One File. Zero Install

★ 11.9k starsAGPL-3.0
View guide →
// alternatives

Alternatives in Local LLM

The most-starred other Local LLM projects in the LibreAI catalogue — the realistic shortlist if node-llama-cpp is not the right fit.

Get node-llama-cpp

Free and open — grab the source, star the repo, and start creating.