Setup Guides¶
shellsage setup handles everything automatically. The manual steps below are for reference or scripted environments.
Claude Code (recommended — hooks + MCP)¶
Claude Code supports hooks (silently rewrite before execution) and MCP (tools the model can call).
What the hooks do¶
shellsage hooks install creates two files inside .claude/hooks/ and prints the settings snippet to add to .claude/settings.json.
| Hook | Role |
|---|---|
pre_tool_use.py | Translates the command before execution; caches original → translated to a temp file |
post_tool_use.py | Reads the cache and records the outcome to local SQLite memory |
Cursor¶
Windsurf¶
Other IDEs (stdio transport)¶
For any MCP-compatible IDE that supports stdio transport:
No background server needed — the IDE spawns the process directly.
Custom port¶
All shellsage start / stop / status commands respect SHELLSAGE_PORT.
Scripted / headless environments¶
Skip the interactive wizard and drive each step directly: