Local mirror of Claude Code documentation files from https://code.claude.com/docs/en/, updated every 12 hours.
Quick Install: curl -fsSL https://raw.githubusercontent.com/greenstevester/claude-code-docs/main/install.sh | bash
Stop context-switching to your browser every time you need Claude Code documentation. Get instant answers in your terminal:
- 10x faster - Read from local files instead of web pages (< 0.1s vs 2-3s)
- Always current - Auto-syncs with official docs every 3 hours
- Track changes - See exactly what changed in docs over time with diffs
- Built for Claude - Let Claude explore and cross-reference docs naturally
- Offline ready - Access documentation even without internet (after first sync)
Before: Alt-tab to browser → search docs → find topic → read → switch back
After: Type /claude-code-docs hooks → read → continue coding
- ✅ macOS: Fully supported (tested on macOS 12+)
- ✅ Linux: Fully supported (Ubuntu, Debian, Fedora, etc.)
- ⏳ Windows: Not yet supported - contributions welcome!
You need these tools installed:
- git - For cloning and updating the repository (usually pre-installed)
- jq - For cleaning up legacy installations (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 :)
Quick check: Verify you have everything before installing:
for cmd in git jq curl; do command -v $cmd >/dev/null 2>&1 && echo "✓ $cmd installed" || echo "✗ $cmd missing"; doneIf any show "missing", install them first:
- Ubuntu/Debian:
sudo apt install git jq curl - Fedora/RHEL:
sudo yum install git jq curl - macOS:
brew install jq(git and curl pre-installed)
Run this single command:
curl -fsSL https://raw.githubusercontent.com/greenstevester/claude-code-docs/main/install.sh | bashThe installer will:
- Clone the repository to
~/.claude-code-docs - Create the
/claude-code-docsslash command in your Claude Code commands - Set up automatic background updates when you read documentation
Installation completes in ~10 seconds. You'll see a success message with available documentation topics.
Note: After installation, restart Claude Code or start a new session to load the /claude-code-docs command.
Verify the installation works:
/claude-code-docs # List all available topics
/claude-code-docs quickstart # Read the quickstart guide (good first doc!)Expected output:
📚 Reading from local docs (run /claude-code-docs -t to check freshness)
📖 OFFICIAL DOCS: https://claude-code-docs.anthropic.com/en/claude-code-docs/claude-code/quickstart
# Quick Start Guide
[Documentation content appears here...]
That's it! You now have instant local access to all Claude Code documentation.
| Command | Description |
|---|---|
/claude-code-docs |
List all available topics |
/claude-code-docs <topic> |
Read specific documentation instantly |
/claude-code-docs search <term> |
Search all documentation content |
/claude-code-docs -t |
Check sync status with GitHub |
/claude-code-docs -t <topic> |
Check sync, then read docs |
/claude-code-docs what's new |
Show recent doc changes with diffs |
/claude-code-docs changelog |
Read Claude Code release notes |
/claude-code-docs uninstall |
Get uninstall instructions |
Read documentation:
/claude-code-docs hooks # Hooks documentation
/claude-code-docs mcp # MCP server documentation
/claude-code-docs memory # Memory system docs
/claude-code-docs quickstart # Getting started guideSearch documentation content:
/claude-code-docs search environment # Find all mentions of "environment"
/claude-code-docs search "MCP server" # Search for exact phrase
/claude-code-docs search authentication # Search across all 42 docsCheck for updates:
/claude-code-docs -t # Check sync status
/claude-code-docs -t hooks # Check sync, then read hooks docs
/claude-code-docs what's new # See what changed recentlyNatural language queries (Claude will search and cross-reference):
/claude-code-docs what environment variables exist and how do I use them?
/claude-code-docs explain the differences between hooks and MCP
/claude-code-docs how do I customize Claude Code's behavior?
/claude-code-docs find all mentions of authentication- Default mode: Reads instantly from local files (< 0.1s)
- Search mode: Greps through all 42 docs, shows matches with context
- With
-tflag: Checks GitHub first, pulls updates if available (~0.4s) - Auto-sync: Each command automatically checks for documentation updates
Your local docs stay synchronized automatically through two mechanisms:
- Background sync: GitHub Actions fetches official docs every 3 hours and commits changes
- Automatic pull: When you read docs, a background check pulls the latest version if available (~0.4s)
You'll see 🔄 Updating documentation... briefly when updates are downloaded. This happens transparently without blocking your workflow.
Manual update: If needed, you can force an update:
/claude-code-docs -t # Check sync status and pull latest
# OR
cd ~/.claude-code-docs && git pullFresh install: To completely refresh your installation:
curl -fsSL https://raw.githubusercontent.com/greenstevester/claude-code-docs/main/install.sh | bashRegardless of which version you have installed, simply run:
curl -fsSL https://raw.githubusercontent.com/greenstevester/claude-code-docs/main/install.sh | bashThe installer will handle migration and updates automatically.
Problem: Command doesn't work after installation
Solutions:
- Restart Claude Code - The new command needs a fresh session to load
- Verify installation:
ls ~/.claude/commands/claude-code-docs.md # Should exist ls ~/.claude-code-docs/ # Should exist
- Reinstall: Run the installer again if files are missing
Problem: Docs seem outdated or /claude-code-docs -t shows old timestamp
Solutions:
- Force sync:
/claude-code-docs -tchecks GitHub and pulls latest - Manual update:
cd ~/.claude-code-docs && git pull
- Nuclear option: Reinstall completely:
rm -rf ~/.claude-code-docs curl -fsSL https://raw.githubusercontent.com/greenstevester/claude-code-docs/main/install.sh | bash
"Failed to update settings.json"
- Check file permissions:
ls -la ~/.claude/settings.json - Fix permissions:
chmod 644 ~/.claude/settings.json - Ensure
~/.claude/directory exists:mkdir -p ~/.claude
To completely remove the docs integration:
/claude-code-docs uninstallOr run:
~/.claude-code-docs/uninstall.shSee UNINSTALL.md for manual uninstall instructions.
What the installer does:
- Clones this repository to
~/.claude-code-docsvia HTTPS - Creates a slash command file at
~/.claude/commands/claude-code-docs.md
What it NEVER does:
- Send any data externally (100% local operations)
- Execute code from the internet (only reads documentation files)
- Access files outside
~/.claude-code-docsdirectory - Modify Claude Code itself (only user config files)
Trust & verification:
- All source code is open and reviewable in this repository
- For maximum security:
- Fork the repository and install from your fork
- Clone manually and review code before running installer
- Audit the helper script:
~/.claude-code-docs/claude-docs-helper.sh
Network access:
- Only connects to GitHub to fetch documentation updates
- No telemetry, analytics, or external tracking of any kind
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!
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!