Skip to content

Quickstart

Get ShellSage running in under two minutes.


1. Install

pip install "shellsage[mcp]"

This installs the core package plus the MCP server dependencies (mcp, uvicorn, httpx).

Python version

ShellSage requires Python 3.10 or later.


2. Run the setup wizard

shellsage setup

The wizard:

  • Detects which IDE/agent you have (Claude Code, Cursor, Windsurf)
  • Seeds the local SQLite database with 400+ curated translations
  • Starts the background MCP server on http://127.0.0.1:7842
  • Registers the MCP server with your IDE
  • Optionally installs Claude Code hooks for transparent pre-execution translation

If you have multiple IDEs installed it will ask which to configure.


3. Try it

# Translate a single command
shellsage translate "ls -la"
# → Get-ChildItem -Force

shellsage translate "find . -name '*.py'"
# → Get-ChildItem -Recurse -Filter '*.py'

shellsage translate "grep -r 'TODO' ."
# → Get-ChildItem -Recurse | Select-String -Pattern 'TODO'

4. Check status

shellsage status

Shows the daemon state, database path, and record counts.


What happens next

Once set up, ShellSage runs transparently. Your AI agent writes bash — ShellSage rewrites it to PowerShell before the shell ever sees it. The agent never knows anything changed.

Each successful translation is stored back to the local SQLite database, so ShellSage gets smarter as you use it.


Next steps

Setup Guides Manual setup for each IDE, custom ports, scripted environments
Translation Reference Full table of 400+ bash → PowerShell pairs
CLI Reference All shellsage subcommands
Configuration Environment variables