Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

readme-ai

> AI 编程
Open source

README file generator, powered by AI.

3.0K stars0 likes2 views
WebsiteGitHub

About

README file generator, powered by AI.

Designed for simplicity, customization, and developer productivity.

The metrics above are rendered with HyperWeave — an experimental SVG artifact layer for agents.  Explore →

Quick Links

  • Intro
  • Demo
  • Features
  • Quickstart
  • Configuration
  • Example Gallery
  • Contributing Guidelines

[!IMPORTANT] Explore the [Official Documentation][docs] for a complete list of features, customization options, and examples.

Introduction

ReadmeAI is a developer tool that automatically generates README files using a robust repository processing engine and advanced language models. Simply provide a URL or path to your codebase, and a well-structured and detailed README will be generated.

Why Use ReadmeAI?

This project aims to streamline the process of creating and maintaining documentation across all technical disciplines and experience levels. The core principles include:

  • ** Automate:** Generate detailed and structured README files with a single command.
  • ⚫️ Customize: Select from a variety of templates, styles, badges, and much more.
  • ** Flexible:** Switch between OpenAI, Ollama, Anthropic, and Gemini anytime.
  • ** Language Agnostic:** Compatible with a wide range of languages and frameworks.
  • ** Best Practices:** Ensure clean and consistent documentation across all projects.
  • ** Smart Filtering:** Intelligent file analysis with customizable .readmeaiignore patterns.
  • ⛔️ Offline Mode: Create README files offline, without using a LLM API service.

Demo

Run from your terminal:

[readmeai-cli-demo][cli-demo]

Features

Customize Your README

Let's begin by exploring various customization options and styles supported by ReadmeAI:

Generated Sections & Content

꩜ Expand to view more!

Project Introduction

  • This section captures your project's essence and value proposition.
  • The prompt template used to generate this section can be viewed [here][prompts.toml].
![][project-overview]

Features Table

  • Detailed feature breakdown and technical capabilities.
  • The prompt template used to generate this section can be viewed [here][prompts.toml].
![][features-table]

Project Structure

  • Visual representation of your project's directory structure.
  • The tree is generated using [pure Python][tree.py] and embedded in a code block.
![][project-structure]

Project Index

  • Summarizes key modules of the project, which are also used as context for downstream [prompts.toml][prompts.toml].
![][project-index]

Getting Started Guides

  • Dependencies and system requirements are extracted from the codebase during preprocessing.
  • The [parsers][readmeai.parsers] handle most of the heavy lifting here.
![][installation-steps]

Installation, Usage, & Testing

  • Setup instructions and usage guides are automatically created based on data extracted from the codebase.
![][usage-guides]

Community & Support

  • Development roadmap, contribution guidelines, license information, and community resources.
  • A return button is also included for easy navigation.
![][community-and-support]

Contribution Guides

  • Instructions for contributing to the project, including resource links and a basic contribution guide.
  • Graph of contributors is also included for open-source projects.
![][contributing-guidelines]

Getting Started

Prerequisites

ReadmeAI requires Python 3.10 or higher, and one of the following installation methods:

Requirement Details
• [Python][python-link] ≥3.10 Core runtime
Installation Method (choose one)
• [pip][pip-link] Default Python package manager
• [pipx][pipx-link] Isolated environment installer
• [uv][uv-link] High-performance package manager
• [docker][docker-link] Containerized environment

Supported Repository Platforms

To generate a README file, provide the source repository. ReadmeAI supports these platforms:

Platform Details
[File System][file-system] Local repository access
[GitHub][github] Industry-standard hosting
[GitLab][gitlab] Full DevOps integration
[Bitbucket][bitbucket] Atlassian ecosystem

Supported LLM API Services

ReadmeAI is model agnostic, with support for the following LLM API services:

Provider Best For Details
[OpenAI][openai] General use Industry-leading models
[Anthropic][anthropic] Advanced tasks Claude language models
[Google Gemini][gemini] Multimodal AI Latest Google technology
[Ollama][ollama] Open source No API key needed
[Offline Mode][README-Offline.md] Local operation No internet required

Installation

ReadmeAI is available on [PyPI][pypi-link] as readmeai and can be installed as follows:

 Pip

Install with pip (recommended for most users):

bash
❯ pip install -U readmeai

 Pipx

With pipx, readmeai will be installed in an isolated environment:

bash
❯ pipx install readmeai

 Uv

The fastest way to install readmeai is with [uv][uv-link]:

bash
❯ uv tool install readmeai

 Docker

To run readmeai in a containerized environment, pull the latest image from [Docker Hub][dockerhub-link]:

bash
❯ docker pull zeroxeli/readme-ai:latest

 From source

Click to build readmeai from source
  1. Clone the repository:

    bash
    ❯ git clone https://github.com/eli64s/readme-ai
  2. Navigate to the project directory:

    bash
    ❯ cd readme-ai
  3. Install dependencies:

    bash
    ❯ pip install -r setup/requirements.txt

Alternatively, use the [setup script][setup-script] to install dependencies:

 Bash
  1. Run the setup script:

    bash
    ❯ bash setup/setup.sh

Or, use poetry to build and install project dependencies:

 Poetry
  1. Install dependencies with poetry:

    bash
    ❯ poetry install

Additional Optional Dependencies

[!IMPORTANT] To use the Anthropic and Google Gemini clients, extra dependencies are required. Install the package with the following extras:

  • Anthropic:

    bash
    ❯ pip install "readmeai[anthropic]"
  • Google Gemini:

    bash
    ❯ pip install "readmeai[google-generativeai]"
  • Install Multiple Clients:

    bash
    ❯ pip install "readmeai[anthropic,google-generativeai]"

Usage

Set your API key

When running readmeai with a third-party service, you must provide a valid API key. For example, the OpenAI client is set as follows:

bash
❯ export OPENAI_API_KEY=<your_api_key>

# For Windows users:
❯ set OPENAI_API_KEY=<your_api_key>
Click to view environment variables for - Ollama, Anthropic, Google Gemini
Ollama

Refer to the [Ollama documentation][ollama] for more information on setting up the Ollama server.

To start, follow these steps:

  1. Pull your model of choice from the Ollama repository:

    bash
    ❯ ollama pull llama3.2:latest
  2. Start the Ollama server and set the OLLAMA_HOST environment variable:

    bash
    ❯ export OLLAMA_HOST=127.0.0.1 && ollama serve
Anthropic
  1. Export your Anthropic API key:

    bash
    ❯ export ANTHROPIC_API_KEY=<your_api_key>
Google Gemini
  1. Export your Google Gemini API key:

    bash
    ❯ export GOOGLE_API_KEY=<your_api_key

Using the CLI

Running with a LLM API service

Below is the minimal command required to run readmeai using the OpenAI client:

bash
❯ readmeai --api openai -o readmeai-openai.md -r https://github.com/eli64s/readme-ai

[!IMPORTANT] The default model set is gpt-3.5-turbo, offering the best balance between cost and performance.When using any model from the gpt-4 series and up, please monitor your costs and usage to avoid unexpected charges.

ReadmeAI can easily switch between API providers and models. We can run the same command as above with the Anthropic client:

bash
❯ readmeai --api anthropic -m claude-3-5-sonnet-20240620 -o readmeai-anthropic.md -r https://github.com/eli64s/readme-ai

And finally, with the Google Gemini client:

bash
❯ readmeai --api gemini -m gemini-1.5-flash -o readmeai-gemini.md -r https://github.com/eli64s/readme-ai
Running with local models

We can also run readmeai with free and open-source locally hosted models using the Ollama:

bash
❯ readmeai --api ollama --model llama3.2 -r https://github.com/eli64s/readme-ai
Running on a local codebase

To generate a README file from a local codebase, simply provide the full path to the project:

bash
❯ readmeai --repository /users/username/projects/myproject --api openai

Adding more customization options:

bash
❯ readmeai --repository https://github.com/eli64s/readme-ai \
           --output readmeai.md \
           --api openai \
           --model gpt-4 \
           --badge-color A931EC \
           --badge-style flat-square \
           --header-style compact \
           --navigation-style fold \
           --temperature 0.9 \
           --tree-depth 2
           --logo LLM \
           --emojis solar
Running in offline mode

ReadmeAI supports offline mode, allowing you to generate README files without using a LLM API service.

bash
❯ readmeai --api offline -o readmeai-offline.md -r https://github.com/eli64s/readme-ai

 Docker

Run the readmeai CLI in a Docker container:

bash
❯ docker run -it --rm \
    -e OPENAI_API_KEY=$OPENAI_API_KEY \
    -v "$(pwd)":/app zeroxeli/readme-ai:latest \
    --repository https://github.com/eli64s/readme-ai \
    --api openai

 Streamlit

Try readme-ai directly in your browser on Streamlit Cloud, no installation required.

See the [readme-ai-streamlit][readme-ai-streamlit] repository on GitHub for more details about the application.

[!WARNING] The readme-ai Streamlit web app may not always be up-to-date with the latest features. Please use the command-line interface (CLI) for the most recent functionality.

 From source

C

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonagentsaiai-agentsai-documentation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.