Add an "Open Claude Here" entry to the Windows right-click menu for the Claude Code CLI.
After install, right-clicking in Windows Explorer shows a new entry:
| Right-click on | Menu shows |
|---|---|
| Empty space inside a folder | Open Claude Here |
| A folder itself | Open Claude Here |
The exact label follows your system language — see Language below.
Clicking it opens a terminal in that folder and runs claude.
Win11 note: the entry may live under "Show more options" in the modern context menu. That's a Win11 menu quirk, not a bug. The entry still works.
npx -y claude-here installThat's it. The install step writes per-user registry entries under
HKCU. It does not require admin rights and leaves nothing behind
on uninstall beyond what npx claude-here uninstall removes.
The right-click menu label follows your system locale: Open Claude Here
on English systems, 用 Claude Code 打开 on Chinese systems. To override:
npx -y claude-here install --lang=zh
npx -y claude-here install --lang=enOr set the env var CLAUDE_HERE_LANG=zh (or en) for the current shell.
If you'd rather read the code before running it, or don't want to go through npm:
git clone https://github.com/klarkxy/claude-here
cd claude-here
npm run register # = node bin/claude-here.cjs install
npm run unregister # = node bin/claude-here.cjs uninstallThe install / uninstall subcommands work the same as via npx;
you're just running the checkout you cloned. The --lang flag works
the same way.
npx claude-here uninstall- Windows 10 or 11
- Node.js 18+
- Claude Code CLI installed (
where claudeshould print a path) - One of: Windows Terminal, PowerShell 7, or
cmd.exe(the last is always there)
install writes 4 registry values (per-user, no admin needed):
HKCU\Software\Classes\Directory\Background\shell\OpenClaudeHere (folder background)
HKCU\Software\Classes\Directory\shell\OpenClaudeHere (folder item)
Each has a command subkey whose value is a self-contained command line
that Explorer runs on right-click. uninstall deletes those keys.
The terminal used is detected at install time (wt → pwsh → cmd),
and the absolute path to claude is resolved via where claude and
baked into the registry command. The command never relies on Explorer's
PATH or your shell's PATH.
The menu icon is read from claude.exe in the @anthropic-ai/claude-code
npm package (its embedded app icon), resolved at install time. Falls
back to cmd.exe if that binary can't be located.
