Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Here

Add an "Open Claude Here" entry to the Windows right-click menu for the Claude Code CLI.

中文文档

Windows 10/11 Node 18+ No admin Zero deps


What it does

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.

Context menu with "Open Claude Here" entry, launching Claude Code in the selected folder

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.


Install

npx -y claude-here install

That'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.

Language

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=en

Or set the env var CLAUDE_HERE_LANG=zh (or en) for the current shell.

From source (no npm)

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 uninstall

The install / uninstall subcommands work the same as via npx; you're just running the checkout you cloned. The --lang flag works the same way.

Uninstall

npx claude-here uninstall

Requirements

  • Windows 10 or 11
  • Node.js 18+
  • Claude Code CLI installed (where claude should print a path)
  • One of: Windows Terminal, PowerShell 7, or cmd.exe (the last is always there)

How it works

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 (wtpwshcmd), 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.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages