Originally created by Eric Buess - Original Repository
This is a Windows-focused fork that maintains the same functionality with enhanced Windows support.
Local mirror of Claude Code documentation files from https://docs.anthropic.com/en/docs/claude-code/, updated every 3 hours.
This is an early beta release. There may be errors or unexpected behavior. If you encounter any issues, please open an issue - your feedback helps improve the tool!
New in this version:
- πͺ Windows Support: Full Windows compatibility using Python-based installer
- π Cross-platform Python: Unified codebase works on Windows, macOS, and Linux
- π Claude Code Changelog: Access the official Claude Code release notes with
/docs changelog - π§ Improved installer: Better handling of updates and edge cases
To update, use the appropriate command for your platform (see Installation section below).
- 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
- β Windows: Fully supported with Python installer (Windows 10/11)
- β macOS: Fully supported (tested on macOS 12+)
- β Linux: Fully supported (Ubuntu, Debian, Fedora, etc.)
All platforms:
- Python 3.7+ - Required for cross-platform compatibility
- Git - For cloning and updating the repository
- Claude Code - Obviously :)
Platform-specific notes:
- Windows: Python must be in your PATH (check "Add Python to PATH" during installation)
- macOS/Linux: Python and Git are usually pre-installed
- Optional:
requestslibrary (pip install requests) for enhanced features
Option 1: Download and run installer
# Download the installer
curl -o install.py https://raw.githubusercontent.com/ericbuess/claude-code-docs/main/install.py
# Run it
python install.pyOption 2: Clone and install
git clone https://github.com/ericbuess/claude-code-docs.git
cd claude-code-docs
python install.py
# Or double-click install.batOption 1: Shell installer (traditional)
curl -fsSL https://raw.githubusercontent.com/ericbuess/claude-code-docs/main/install.sh | bashOption 2: Python installer (new, cross-platform)
curl -fsSL https://raw.githubusercontent.com/ericbuess/claude-code-docs/main/install.py | python3The installer will:
- Install to
~/.claude-code-docs(or%USERPROFILE%\.claude-code-docson Windows) - Create the
/docsslash command - Set up auto-update hooks for keeping docs current
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 commnd to remove claude-code-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 periodically 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.
curl -o install.py https://raw.githubusercontent.com/ericbuess/claude-code-docs/main/install.py
python install.py# Using shell installer
curl -fsSL https://raw.githubusercontent.com/ericbuess/claude-code-docs/main/install.sh | bash
# Or using Python installer
curl -fsSL https://raw.githubusercontent.com/ericbuess/claude-code-docs/main/install.py | python3The installer will automatically detect and migrate existing installations.
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-code-docs && git pull - Check if GitHub Actions are running: View Actions
- "Python is not installed": Install Python 3.7+ from https://www.python.org/downloads/
- "Git not found": Install Git from https://git-scm.com/downloads
- "Failed to clone repository": Check your internet connection
- "Failed to update settings.json": Check file permissions on
~/.claude/settings.json(or%USERPROFILE%\.claude\settings.jsonon Windows) - Windows: "python not recognized": Ensure Python is added to PATH during installation
To completely remove the docs integration:
/docs uninstallOr run directly:
Windows:
python %USERPROFILE%\.claude-code-docs\uninstall.py
# Or double-click uninstall.bat in the installation directorymacOS/Linux:
python ~/.claude-code-docs/uninstall.py
# Or use the shell script if it exists:
~/.claude-code-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
- πͺ Windows Support: Full Windows compatibility with Python-based implementation
- π Cross-platform: Unified Python codebase for all platforms
- π§ New installers: Python-based install.py, uninstall.py, and helper scripts
- π¦ Batch wrappers: Windows .bat files for easy double-click installation
- π Backward compatible: Existing macOS/Linux installations continue to work
- Added Claude Code changelog integration (
/docs changelog) - Fixed shell compatibility for macOS users (zsh/bash)
- Improved documentation and error messages
- Added platform compatibility badges
- Fixed automatic update functionality
- Improved handling of local repository changes
- Better error recovery during updates
Contributions are welcome! This is a community project and we'd love your help:
- β Windows Support: Now available! Help us test and improve it
- π 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!
As this is an early beta, you might encounter some issues:
- Auto-updates may occasionally fail on some network configurations
- Some documentation links might not resolve correctly
If you find any issues not listed here, please report them!
Documentation content belongs to Anthropic. This mirror tool is open source - contributions welcome!