{
 "kind": "tool",
 "slug": "llama-cpp-python",
 "path": "tools/llama-cpp-python/",
 "name": "llama-cpp-python",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Model SDKs",
   "tools/ai-sdks/"
  ]
 ],
 "lead": "Python bindings for llama.cpp enabling efficient LLM inference on CPU.",
 "chips": [
  {
   "label": "Model SDKs",
   "path": "tools/ai-sdks/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install llama-cpp-python"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/abetlen/llama-cpp-python"
  },
  {
   "label": "Website",
   "href": "https://github.com/abetlen/llama-cpp-python"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license field.",
   "src": "https://github.com/abetlen/llama-cpp-python"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 23, 2026. ",
   "src": "https://github.com/abetlen/llama-cpp-python"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "4 projects",
   "status": "info",
   "sub": "#37 of 92 in its category",
   "note": "Dependency in 4 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What llama-cpp-python does",
   "parts": [
    {
     "t": "prose",
     "text": "Python bindings for llama.cpp enabling efficient LLM inference on CPU."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "llama-cpp-python popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "46",
       "of": "/ 100",
       "l": "Gid Score, #2468 overall"
      },
      {
       "n": "140K",
       "l": "downloads a week, pypi"
      },
      {
       "n": "10.7K",
       "l": "GitHub stars"
      },
      {
       "n": "4",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How llama-cpp-python is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "llama-cpp-python is a dependency in 4 of the 6,258 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 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 46 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is Ollama (32 projects).",
      "Projects that use it most often also use FastAPI (63.0%), Requests (63.0%), NumPy (63.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 63.0% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 63.0% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 63.0% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 58.7% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 56.5% of its projects",
       "v": "Sentence Transformers",
       "path": "tools/sentence-transformers/"
      },
      {
       "l": "In 56.5% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      },
      {
       "l": "In 56.5% of its projects",
       "v": "aiohttp",
       "path": "tools/aiohttp/"
      },
      {
       "l": "In 54.3% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about llama-cpp-python",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Model SDKs",
       "path": "tools/ai-sdks/",
       "items": [
        {
         "text": "OpenAI",
         "path": "tools/openai-npm/"
        },
        {
         "text": "AI SDK",
         "path": "tools/ai/"
        },
        {
         "text": "OpenAI Python Library",
         "path": "tools/openai-pypi/"
        },
        {
         "text": "Anthropic SDK",
         "path": "tools/anthropic-ai/"
        },
        {
         "text": "Google Generative AI",
         "path": "tools/google-genai-npm/"
        },
        {
         "text": "Anthropic Python SDK",
         "path": "tools/anthropic/"
        },
        {
         "text": "Google GenAI Python SDK",
         "path": "tools/google-genai-pypi/"
        },
        {
         "text": "Hugging Face Hub",
         "path": "tools/huggingface-hub/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "llama-cpp-python",
       "me": true,
       "facts": [
        "MIT",
        "Gid 46",
        "140K/wk"
       ]
      },
      {
       "name": "Ollama",
       "why": "Official Python client for running and interacting with local language models via Ollama.",
       "path": "tools/ollama-pypi/",
       "facts": [
        "MIT",
        "Gid 64",
        "2.9M/wk"
       ]
      }
     ],
     "more": "Compare llama-cpp-python with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install llama-cpp-python"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for llama-cpp-python yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi llama-cpp-python"
  ],
  [
   "Category",
   "Model SDKs"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "45.7"
  ],
  [
   "Rank in category",
   "#37 of 92"
  ],
  [
   "GitHub",
   "abetlen/llama-cpp-python"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/abetlen.png"
}