Deploy Gitingest

Turn any Git repo into a prompt-friendly text digest for LLMs, with login

Deploy Gitingest

/data

Deploy and Host Gitingest on Railway

Gitingest turns any public Git repository (GitHub, GitLab, Bitbucket, Gitea, Codeberg and similar hosts) into one prompt-friendly text digest: a directory tree plus the contents of every text file, with an estimated token count. Paste the digest into ChatGPT, Claude or any other LLM, or fetch it from scripts through the API.

About Hosting Gitingest

This template runs the official Gitingest v0.3.1 server image (pinned by digest) as one Railway service built from a public GitHub repo, with a volume at /data. Upstream's server has no login, so this template puts HTTP basic auth on everything except /health, and Railway generates the password. Clones are made on the container's own disk and deleted after each ingest. Finished digests are kept on the volume for 7 days, so download links still work after a restart or redeploy. Memory limits are sized to the service, so it runs on Railway's 0.5 GB plans. No LLM key is needed.

Common Use Cases

  • Hand a whole codebase to an LLM in one paste for review, refactoring ideas or onboarding questions
  • Build plain-text corpora of repositories for retrieval (RAG) or agent tools, through the REST API
  • Run digests of private GitHub repositories on your own server, with your token never leaving it

Dependencies for Gitingest Hosting

Deployment Dependencies

Implementation Details

What you get: the service Gitingest (web UI and REST API on one public URL, health check /health) and its volume at /data.

After deploy: open the service's Variables tab and copy GITINGEST_PASSWORD. Open the public URL and log in as gitingest with that password. Enter a repository URL, or replace github.com with your domain in any GitHub link: https://YOUR-DOMAIN/github.com/OWNER/REPO.

API (same login):

curl -u gitingest:YOUR-PASSWORD -H 'Content-Type: application/json' \
  -d '{"input_text":"https://github.com/pallets/flask","max_file_size":5120,"pattern_type":"exclude","pattern":""}' \
  https://YOUR-DOMAIN/api/ingest

The response holds the summary, the tree, the content (cut to 300k characters) and a digest_url for downloading the full text file.

Variables:

  • GITINGEST_PASSWORD: generated login password. Change it whenever you like.
  • GITINGEST_USERNAME: login user name (default gitingest).
  • GITHUB_TOKEN (optional): a fine-grained GitHub token with read access to Contents, for private repositories. Anyone with the login can then read those repositories, so share the login carefully. A token typed into the web form is used for that one request.
  • GITINGEST_DIGEST_RETENTION_DAYS: how long digests stay on the volume (default 7).

Memory: on 0.5 GB the largest digest is capped at about 17 MB and one ingest runs at a time. Ingesting microsoft/vscode, django and fastapi each peaked at about 210 MB of process memory. Give the service 1 GB or more and both caps rise on their own (about 50 MB per digest at 1 GB, and one ingest per GB).

Not included: upstream's optional S3 storage, Sentry and Prometheus metrics. The clone timeout is upstream's 60 seconds, so very large repositories can time out.

Updates: the service builds from the template repo. When it moves to a new Gitingest release, Railway shows an "update available" notice on your project. Read CHANGELOG.md in the repo first, then apply the update. Your digests stay on the volume.

Why Deploy Gitingest on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Gitingest on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1