{"repo":"regenrek/codefetch","free":true,"listed":false,"github":"https://github.com/regenrek/codefetch","clone":"git clone https://github.com/regenrek/codefetch.git","description":"Turn code into Markdown for LLMs with one simple terminal command","language":"TypeScript","stars":449,"topics":["cli","llm","markdown"],"license":"MIT","category":"ai-agents","readme_excerpt":"codefetch Turn code repositories into AI-friendly Markdown documentation Codefetch is a powerful tool that converts git repositories and local codebases into structured Markdown files optimized for Large Language Models (LLMs). It intelligently collects, processes, and formats code while respecting ignore patterns and providing token counting for various AI models. Key Features - 📁 Local Codebase Processing - Convert entire codebases into AI-friendly Markdown - 🔗 Git Repository Support - Fast GitHub API fetching with git clone fallback - 🐙 Multi-Platform Support - Works with GitHub, GitLab, and Bitbucket - 🎯 Smart Filtering - Respect .gitignore patterns and custom exclusions - 📊 Token Counting - Track tokens for GPT-4, Claude, and other models - 🚀 CLI & SDK - Use via command line or integrate programmatically - 💾 Intelligent Caching - Speed up repeated fetches with smart caching - 🌲 Project Structure Visualization - Generate tree views of your codebase - ⚡ GitHub API Integration - Fetch repos without git using the GitHub API - 🌐 Open & Send to GPT 5.1 Pro/Gemini 3.0/Claude - Generate codebase, copy to clipboard, and open ChatGPT, Gemini, or Claude in browser Click here for a Demo & Videos Quick Start Installation Using npx (recommended) Global Installation In Your Project Basic Examples Local Codebase Open & Send to GPT/Gemini/Claude The open command generates your codebase, copies it to clipboard, and opens ChatGPT, Gemini, Claude, or other AI chats in the browser: ","default_branch":null,"files":null,"tree":[],"storefront":"/r/regenrek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/regenrek/codefetch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}