Local mirror of comprehensive Claude documentation from Anthropic's official sites, updated daily.
Documentation Sources:
- Claude Code: https://code.claude.com/docs (Build with Claude Code + Reference docs)
- Platform: https://platform.claude.com/docs (API reference, Agent SDK, and more)
Includes:
- ~17 Claude Code documentation files (Build with Claude Code + Reference categories)
- ~530 Platform API reference documentation files
- 1 changelog file (from Claude Code GitHub repository)
- Total: ~550 documentation files
This release includes:
- π New documentation sources: Now fetches from
code.claude.comandplatform.claude.com - π Expanded coverage: Full API reference and Agent SDK documentation
- π·οΈ Categorized filenames:
code__bwc__*,code__ref__*,platform__*prefixes - β Production ready: Stable, tested, comprehensive documentation coverage
Migrating from v1.x:
curl -fsSL https://raw.githubusercontent.com/kreitter/claude-docs/main/install.sh | bashYour installation will automatically update to the new version. No manual action required.
- Faster access - Reads from local files instead of fetching from web
- Automatic updates - Attempts to stay current with the latest documentation
- Track changes - See what changed in docs over time
- Claude Code changelog - Quick access to official release notes and version history
- Better Claude Code integration - Allows Claude to explore documentation more effectively
- β macOS: Fully supported (tested on macOS 12+)
- β Linux: Fully supported (Ubuntu, Debian, Fedora, etc.)
- β³ Windows: Not yet supported - contributions welcome!
This tool requires the following to be installed:
- git - For cloning and updating the repository (usually pre-installed)
- jq - For JSON processing in the auto-update hook (pre-installed on macOS; Linux users may need
apt install jqoryum install jq) - curl - For downloading the installation script (usually pre-installed)
- Claude Code - Obviously :)
Run this single command:
curl -fsSL https://raw.githubusercontent.com/kreitter/claude-docs/main/install.sh | bashThis will:
- Install to
~/.claude-docs(auto-migrates from v0.3.x if present) - Create the
/docsslash command to pass arguments to the tool and tell it where to find the docs - Set up a 'PreToolUse' 'Read' hook to enable automatic git pull when reading docs from
~/.claude-docs
Note: The command is /docs (user) - it will show in your command list with "(user)" after it to indicate it's a user-created command.
The /docs command provides instant access to documentation with optional freshness checking.
/docs hooks # Instantly read hooks documentation
/docs mcp # Instantly read MCP documentation
/docs memory # Instantly read memory documentationYou'll see: π Reading from local docs (run /docs -t to check freshness)
/docs -t # Show sync status with GitHub
/docs -t hooks # Check sync status, then read hooks docs
/docs -t mcp # Check sync status, then read MCP docs/docs what's new # Show recent documentation changes with diffs/docs changelog # Read official Claude Code release notes and version historyThe changelog feature fetches the latest release notes directly from the official Claude Code repository, showing you what's new in each version.
/docs uninstall # Get command to remove claude-docs completely# Natural language queries work great
/docs what environment variables exist and how do I use them?
/docs explain the differences between hooks and MCP
# Check for recent changes
/docs -t what's new in the latest documentation?
/docs changelog # Check Claude Code release notes
# Search across all docs
/docs find all mentions of authentication
/docs how do I customize Claude Code's behavior?The documentation attempts to stay current:
- GitHub Actions runs daily at noon UTC to fetch new documentation
- When you use
/docs, it checks for updates - Updates are pulled when available
- You may see "π Updating documentation..." when this happens
Note: If automatic updates fail, you can always run the installer again to get the latest version.
Regardless of which version you have installed, simply run:
curl -fsSL https://raw.githubusercontent.com/kreitter/claude-docs/main/install.sh | bashThe installer will handle migration and updates automatically.
If /docs returns "command not found":
- Check if the command file exists:
ls ~/.claude/commands/docs.md - Restart Claude Code to reload commands
- Re-run the installation script
If documentation seems outdated:
- Run
/docs -tto check sync status and force an update - Manually update:
cd ~/.claude-docs && git pull - Check if GitHub Actions are running: View Actions
- "git/jq/curl not found": Install the missing tool first
- "Failed to clone repository": Check your internet connection
- "Failed to update settings.json": Check file permissions on
~/.claude/settings.json
To completely remove the docs integration:
/docs uninstallOr run:
~/.claude-docs/uninstall.shSee UNINSTALL.md for manual uninstall instructions.
- The installer modifies
~/.claude/settings.jsonto add an auto-update hook - The hook only runs
git pullwhen reading documentation files - All operations are limited to the documentation directory
- No data is sent externally - everything is local
- Repository Trust: The installer clones from GitHub over HTTPS. For additional security, you can:
- Fork the repository and install from your own fork
- Clone manually and run the installer from the local directory
- Review all code before installation
See CHANGELOG.md for complete version history.
- New documentation sources: Fetches from
code.claude.comandplatform.claude.com - Expanded coverage: ~550 total files (17 Claude Code + 530 Platform + changelog)
- Categorized filenames:
code__bwc__*,code__ref__*,platform__*prefixes - Removed sitemap dependency: Uses llms.txt for reliable discovery
- Production ready: Stable, tested, ready for daily use
- Comprehensive scope: 38 CLI docs + 76 API docs = 116 total files
- Path migration: Auto-migrates
~/.claude-code-docsβ~/.claude-docs - Repository: Now at
kreitter/claude-docs(fork with enhancements)
- v0.3.x: Claude Code CLI docs only, at ericbuess/claude-code-docs
- See upstream: https://github.com/ericbuess/claude-code-docs/commits/main
Contributions are welcome! This is a community project and we'd love your help:
- πͺ Windows Support: Want to help add Windows compatibility? Fork the repository and submit a PR!
- π Bug Reports: Found something not working? Open an issue
- π‘ Feature Requests: Have an idea? Start a discussion
- π Documentation: Help improve docs or add examples
You can also use Claude Code itself to help build features - just fork the repo and let Claude assist you!
This is a fork of ericbuess/claude-code-docs with the following enhancements:
- Expanded scope to include API documentation
- Enhanced installer with migration support
- Improved error handling and macOS compatibility
- Better naming consistency
If you find any issues, please report them!
Documentation content belongs to Anthropic. This mirror tool is open source - contributions welcome!