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

repo2txt

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.

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

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

  • Feed an entire repo to an AI assistant for review.
  • Create a portable text snapshot of a codebase.
  • Summarize unfamiliar projects with full context.
  • Archive repo contents as a readable document.
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.

  • OpenCode★ 211.6k

    The open source coding agent

  • Transformers★ 166.9k

    The model-definition framework behind modern AI — thousands of pretrained transformers for text, vision, and audio.

  • claude-code★ 149.7k

    Anthropic's agentic coding tool that lives in your terminal and works across your whole codebase

  • cc-switch★ 141.3k

    Cross-platform desktop all-in-one manager for Claude Code, Codex, OpenCode and other coding agents

  • codex★ 128.2k

    OpenAI's lightweight coding agent that runs locally in your terminal

// more in devtools

More in Dev Tools

Nearby Dev Tools projects in the catalogue, closest in stars to repo2txt — keep exploring the shelf either side of it.

  • pi_agent_rust★ 1.9k

    A native Rust port of the Pi coding agent: single binary, zero unsafe code, and hardened extensions.

  • px0★ 1.8k

    px0 is an IDE built for reviewing AI-generated code, optimized for speed. It turns your browser into a zero-latency console with native Git and GitHub integr…

  • sourcery★ 1.9k

    Instant AI code reviews

  • ai-legal-claude★ 1.8k

    AI Legal Assistant skill for Claude Code. Contract review, risk analysis, NDA generation, compliance auditing, negotiation strategy, and PDF reports — 14 ski…

  • grepai★ 1.9k

    grepai: semantic code search and call graphs for AI agents, running 100% locally on your machine.

  • agtx★ 1.7k

    agtx: a terminal Kanban blackboard where Claude, Codex, Grok, and more collaborate on the same tasks.

Get repo2txt

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