Documentation made publicly accessible to newbies and non-technical users
BEFORE READING, KEEP THIS IN MIND: Subscribing to Claude Pro alone does not eliminate the need to supply an API key or token when running Claude Code on Git Bash; you need to authenticate via API key or OAuth token following the setup procedure provided by Anthropic.
IF YOU FOLLOWED THE INSTRUCTIONS ON THE ANTHROPIC SITE YET RECEIVED "INVALID" ERROR MESSAGES:
Step-by-step: Add npm global bin path to Git Bash PATH
Open Git Bash (you already are).
Open your .bashrc file for editing:
bash
Copy
Edit
nano ~/.bashrc
Add this line to the bottom of the file:
bash
Copy
Edit
export PATH=$PATH:/c/Users/MSI_Z97/AppData/Roaming/npm
Save and close:
Press Ctrl + O to save
Press Enter to confirm
Press Ctrl + X to exit
Apply the updated .bashrc to your current terminal:
bash
Copy
Edit
source ~/.bashrc
✅ Test it
Now try:
bash
Copy
Edit
claude
If successful, it should show the Claude CLI help screen or version info.
If that still doesn’t work, try this temporary check:
bash
Copy
Edit
/c/Users/MSI_Z97/AppData/Roaming/npm/claude
SLASH COMMANDS FOR REFERENCE:
/add-dir - Add a new working directory
/agents - Manage agent configurations
/bug - Submit feedback about Claude Code
/clear - Clear conversation history and free up context
/compact - Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization]
/config - Open config panel
/cost - Show the total cost and duration of the current session
/doctor - Diagnose and verify your Claude Code installation and settings
/exit - Exit the REPL
/export - Export the current conversation to a file or clipboard
/help - Show help and available commands
/hooks - Manage hook configurations for tool events
/ide - Manage IDE integrations and show status
/init - Initialize a new CLAUDE.md file with codebase documentation
/install-github-app - Set up Claude GitHub Actions for a repository
/login - Sign in with your Anthropic account -- note: especially helpful dealing with the "Missing API Key" error message that you may encounter
/logout - Sign out from your Anthropic account
/mcp - Manage MCP servers
/memory - Edit Claude memory files
/migrate-installer - Migrate from global npm installation to local installation
/model - Set the AI model for Claude Code
/permissions - Manage allow & deny tool permission rules
/pr-comments - Get comments from a GitHub pull request
/release-notes - View release notes
/resume - Resume a conversation
/review - Review a pull request
/status - Show Claude Code status including version, model, account, API connectivity, and tool statuses
/upgrade - Upgrade to Max for higher rate limits and more Opus
/vim - Toggle between Vim and Normal editing modes
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗