Gitingest
A codebase digest tool that prepares text for LLM prompts from repositories or local folders, with a local CLI and a Docker self-hosted web interface.

Gitingest prepares code context for developers who want to give an LLM a repository or local directory. It gathers the project structure and file contents into a text digest instead of requiring you to assemble files by hand.
- Codebase extracts: Each digest includes a summary, directory tree and file contents in plain text for use with any LLM.
- File selection: Include and exclude filters let you focus the extract on relevant code; the CLI skips files covered by .gitignore by default.
- Context size: Extract statistics and token estimates help you judge how much code you're putting into a prompt.
- Reusable output: The website lets you copy sections or download the digest, while the Python package supports extraction within your own applications.
You can process local directories on your machine through the CLI or Python package. The web interface is available as a hosted service or as a self-hosted Docker application. Gitingest is open source under the MIT license.
The hosted website clones and processes repositories on its backend. Private GitHub repositories require a personal access token, which the service uses for cloning and then discards from memory without storing it. It doesn't cache the token in the browser, and it deletes cloned repositories after processing.