LibreAI / Dev Tools / repo2txt
// devtools · abinthomasonline/repo2txt

repo2txt

Turn any GitHub repo into one formatted text file — perfect context for AI.

💎 Hidden gem★ 1.8k stars⑂ 220 forksCustomupdated 2026-08
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

repo2txt is an open-source dev tools project by abinthomasonline (abinthomasonline/repo2txt on GitHub). It has 1,839 GitHub stars and 220 forks, is released under the Custom license, and was last updated on GitHub on 5 August 2026.

GitHub stars
1,839
Forks
220
License
Custom
Last updated on GitHub
5 August 2026
Category
Dev Tools
Listing
Hidden gem — a shorter page for a lesser-known project
Official site
Official site
// how it works

How it works

  1. Paste a repo URL

    Drop any public GitHub repository link into the tool.

  2. Convert the contents

    The tool walks the repo and formats everything into one text file.

  3. Download the file

    Grab the single formatted document with the full codebase.

  4. Feed it to your AI

    Paste or attach it wherever your assistant accepts long context.

// features

Why people love it

One-file output

Entire repository flattened into a single text file.

Web-based

Runs in the browser with nothing to install.

Formatted structure

Clean formatting that preserves file boundaries.

GitHub links in

Works straight from any public repo URL.

AI-ready context

Sized and shaped for LLM context windows.

Quick workflow

Link in, text file out, in under a minute.

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/abinthomasonline/repo2txt.git
    cd repo2txt
  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

Is repo2txt free for commercial use?

It uses a custom license — read the license file before commercial use.

Does it work with private repos?

It is designed around public GitHub URLs; private repos are not its use case.

What about huge repositories?

Very large repos may exceed practical text-file sizes — smaller repos work best.

Is there a hosted version?

Yes — the official site runs it in the browser with no setup.

Which file types are included?

It converts repo contents broadly; check the tool for any exclusion options.

// keep exploring

Similar tools

Dev Tools

Continue

Open-source coding agent

★ 36.1k starsApache-2.0
View guide →
Dev Tools

Aider

Aider is AI pair programming in your terminal

★ 49.4k starsApache-2.0
View guide →
Dev Tools

OpenCode

The open source coding agent

★ 211.6k starsMIT
View guide →
Dev Tools

gitdiagram

Turn any GitHub repo into an interactive architecture diagram - just swap 'hub' for 'diagram'

★ 18.0k starsMIT
View guide →
Dev Tools

cartograph

Cartograph turns any GitHub repo into an interactive dependency map.

★ 42 starsCustom
View guide →
Dev Tools

OpenCLI

Turn any website into a CLI — and let AI agents drive your already-logged-in browser

★ 29.9k starsApache-2.0
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if repo2txt is not the right fit.

Get repo2txt

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