DocuPilot Action

April 4, 2026 · View on GitHub

AI-powered documentation generator for GitHub repos. Automatically update your README, CHANGELOG, and API docs on every push.

GitHub Marketplace License: MIT

Try It in 30 Seconds

Fork the docupilot-demo template, add your ANTHROPIC_API_KEY secret, and push a change to see it work.

Quick Start

# .github/workflows/docupilot.yml
name: DocuPilot
on:
  push:
    branches: [main]

permissions:
  contents: write
  pull-requests: write

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: AkrMcmr/docupilot-action@v1
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

That's it. Push code, get a PR with updated docs.

What It Does

  1. Analyzes your source code and recent commits
  2. Uses Claude AI to generate/update documentation
  3. Creates a Pull Request with the changes

You stay in control — review, edit, and merge like any other PR.

Inputs

InputRequiredDefaultDescription
anthropic_api_keyYesYour Anthropic API key
github_tokenNo${{ github.token }}GitHub token for creating PRs
generate_readmeNotrueGenerate/update README.md
generate_changelogNotrueGenerate/update CHANGELOG.md
languageNoenDocumentation language (en, ja, zh, es, etc.)
modelNoclaude-sonnet-4-6Claude model to use

Outputs

OutputDescription
pr_urlURL of the created pull request
pr_numberNumber of the created pull request

Examples

Only README updates

- uses: AkrMcmr/docupilot-action@v1
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    generate_changelog: 'false'

Japanese documentation

- uses: AkrMcmr/docupilot-action@v1
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    language: 'ja'

Run only on specific paths

on:
  push:
    branches: [main]
    paths:
      - 'src/**'
      - 'lib/**'

Live Demo

DocuPilot dogfoods itself — see real PRs generated by this action:

Zero-Config Alternative

Don't want to manage API keys? Try the DocuPilot SaaS — install the GitHub App and get automatic documentation updates with zero configuration.

  • Free: 1 repo
  • Starter: $9/mo — 5 repos
  • Pro: $29/mo — unlimited repos + API docs

License

MIT