gitingest
CLI tool to analyze and create text dumps of codebases for LLMs
Decision gist · record as of 2026-08-14
Yes. Low install friction, active maintenance, no known vulnerabilities, and a clear use case for anyone working with LLMs and codebases. The MIT license is unencumbered. Start with the CLI to test; the Python API and async support are available if you need programmatic integration.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8+.
- For private repositories, a GitHub Personal Access Token must be provided via --token parameter or GITHUB_TOKEN environment variable.
- Low friction: pure Python wheel with 10 runtime dependencies including common libraries like click, httpx, and pydantic.
License · maintenance · safety
permissive license (permissive) — MIT License permits commercial and private use with minimal restrictions—include the license text and copyright notice in distributions.
last release 2025-07-31 (379 days) · last repo commit 2026-08-13 · 15,302 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 107,802 downloads/mo, #12,594 on PyPI
Alternatives
Verify before relying
pip install gitingest
from gitingest import ingest
summary, tree, content = ingest("https://github.com/coderamp-labs/gitingest")
print(summary)
print(content)- Whether token-based authentication works with GitHub Enterprise or other Git hosting platforms beyond github.com
- Performance characteristics and memory usage on very large repositories (no size limits documented)
- Whether the async API (ingest_async) is required for production use or optional for CLI/sync workflows
What it is and what it does
Gitingest is a CLI tool and Python library that transforms a Git repository—local path or GitHub URL—into a single text file optimized for LLM consumption. It extracts file structure, code content, and metadata (file count, total size, token count via tiktoken), then formats everything as a prompt-friendly digest. The tool respects .gitignore by default, supports private repositories with GitHub tokens, and can include submodules. It runs as a command-line utility (via click), a Python function (sync or async), or a self-hosted web service (via Starlette).
The package is designed for developers who need to feed entire codebases into language models for analysis, documentation generation, or code review. It handles the boilerplate of cloning, filtering, and formatting, leaving you with clean text ready for an LLM prompt. The library is young (first release late 2024) but actively maintained, with support for Python 3.8–3.13 and a permissive MIT license.
Use it for
- Feed a GitHub repository into an LLM for code review, refactoring suggestions, or documentation generation.
- Generate a text summary of an open-source project to understand its structure before contributing.
- Create a codebase digest to include in an LLM chat for debugging or architecture questions.
- Automate extraction of private repository code for internal AI-assisted analysis workflows.
- Build a web service that converts any public repo URL into an LLM-ready prompt via the self-hosted server.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, active maintenance, no known vulnerabilities, and a clear use case for anyone working with LLMs and codebases. The MIT license is unencumbered. Start with the CLI to test; the Python API and async support are available if you need programmatic integration.
Install
gitingest on PyPI
Before you install
Low friction: pure Python wheel with 10 runtime dependencies including common libraries like click, httpx, and pydantic. Actively maintained with recent releases; last commit 2026-08-13.
Requires Python 3.8+. For private repositories, a GitHub Personal Access Token must be provided via --token parameter or GITHUB_TOKEN environment variable.
License in practice
MIT License permits commercial and private use with minimal restrictions—include the license text and copyright notice in distributions.
Quickstart
pip install gitingest
from gitingest import ingest
summary, tree, content = ingest("https://github.com/coderamp-labs/gitingest")
print(summary)
print(content)
Verify before relying
- Whether token-based authentication works with GitHub Enterprise or other Git hosting platforms beyond github.com
- Performance characteristics and memory usage on very large repositories (no size limits documented)
- Whether the async API (ingest_async) is required for production use or optional for CLI/sync workflows
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 10 packagesclickhttpxlogurupathspecpydanticpython-dotenvstarlettestrenumtiktokentyping_extensions |
| Maintenance | Actively maintained 379 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 107,802 / month, #12,594 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: gitingest-0.3.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “git repo to text for llm”
- gitingestConverts Git repositories into plain-text digests optimized for…
- giturlparseParses and rewrites Git repository URLs from multiple platforms…
- git-filter-repoRewrites git repository history efficiently, replacing files,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also git-remote-s3 · ingestr · textual-universal-directorytree · langextract · chonkie · git-remote-codecommit · unstructured-ingest · llmlingua · lintro · llama-index