AI sidecar terminal - let Claude/Cursor run commands in a visible, persistent terminal you control
Project description
sideshell
AI sidecar terminal — let Claude/Cursor run commands in a visible, persistent terminal you control.
Why?
When AI assistants run shell commands, they execute in a hidden terminal:
- ❌ No visible history
- ❌ Can't intervene (enter password, confirm prompts)
- ❌ Output mixed with AI conversation
sideshell runs commands in a separate visible terminal:
- ✅ Full command history visible
- ✅ Persistent session (survives AI restarts)
- ✅ Intervene anytime (passwords, confirmations)
- ✅ Clean separation from AI conversation
Supported Terminals
| Terminal | Platform | Status |
|---|---|---|
| iTerm2 | macOS | ✅ Full support (native Python API) |
| tmux | macOS, Linux, WSL | ✅ Full support |
| WezTerm | macOS, Linux, Windows | ✅ Full support |
| Kitty | macOS, Linux | ✅ Full support |
| Ghostty | macOS | ✅ Full support (ghostty_tmux hybrid: native AppleScript splits + per-surface tmux engine, Ghostty 1.3+) |
| maquake | macOS | ✅ Full support (drop-down terminal via Unix socket) |
| VS Code / Cursor | macOS, Linux, Windows | ✅ Full support (via extension, Unix-socket bridge) |
| JetBrains IDEs | macOS, Linux, Windows | ✅ Full support (via plugin, Unix-socket bridge) |
Features
- Multi-Backend - Works with iTerm2, tmux, WezTerm, Kitty, Ghostty, maquake, VS Code/Cursor, or JetBrains IDEs
- Sidecar Terminal - AI commands run in a visible terminal pane
- You Stay in Control - See everything, intervene anytime
- Session Persistence - Terminal survives AI session restarts
- TUI Support - Arrow keys, F1-F12, Ctrl+C/D/Z for interactive apps
- Focus Management - Optionally returns focus after operations
Installation
Using uvx (Recommended)
# Install uv first
curl -LsSf https://astral.sh/uv/install.sh | sh
# Run sideshell
uvx sideshell-mcp
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"sideshell": {
"command": "uvx",
"args": ["sideshell-mcp"]
}
}
}
Using pipx
pipx install sideshell-mcp
sideshell-mcp
Backend Selection
# Auto-detect (default)
uvx sideshell-mcp
# Force specific backend
uvx sideshell-mcp --backend=tmux
uvx sideshell-mcp --backend=iterm2
Available Tools (17)
| Tool | Description |
|---|---|
execute |
Execute commands (supports wait, timeout, targets for broadcast) |
read |
Read terminal output |
control-char |
Send special keys: Ctrl+C/D/Z, arrows, F1-F12, Home/End, PageUp/Down |
list |
List all windows/tabs/sessions |
split |
Split pane horizontally or vertically |
new-window |
Create new window |
new-tab |
Create new tab |
new-session |
Smart session creation (splits if window exists) |
focus |
Focus specific session |
close-session |
Close terminal session |
set-appearance |
Set tab title, badge, and color |
get-terminal-state |
Get detailed terminal state |
list-color-presets |
List available color presets |
set-color-preset |
Apply color preset |
show-alert |
Show alert dialog |
clear |
Clear terminal screen |
paste |
Paste text to terminal |
MCP Resources
| Resource | Description |
|---|---|
sideshell://sessions |
List all terminal sessions |
sideshell://capabilities |
Backend features and system info |
sideshell://sessions/{id} |
Session details |
sideshell://sessions/{id}/screen |
Screen content |
Prerequisites
iTerm2 (macOS)
- Open iTerm2 → Preferences → General → Magic
- Enable "Enable Python API"
- Restart iTerm2
tmux
# macOS
brew install tmux
# Ubuntu/Debian
sudo apt install tmux
WezTerm
Download from wezfurlong.org/wezterm
Kitty
# macOS
brew install --cask kitty
# Linux
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh
Architecture
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ MCP Client │────▶│ sideshell │────▶│ Terminal │
│ (Claude) │ │ MCP Server │ │ Backend │
└─────────────┘ └──────────────┘ └─────────────┘
│
┌───────┴────────────┐
│ Backends │
├────────────────────┤
│ • iTerm2 │
│ • tmux │
│ • WezTerm │
│ • Kitty │
│ • Ghostty │
│ • maquake │
│ • VS Code / Cursor │
│ • JetBrains IDEs │
└────────────────────┘
VS Code/Cursor and JetBrains backends talk to their IDE extension/plugin over a
local Unix domain socket (~/.sideshell/<ide>.sock) using newline-delimited
JSON-RPC 2.0 with a token handshake.
Development
git clone https://github.com/menemy/sideshell
cd sideshell
uv pip install -e ".[dev]"
# Run tests
python tests/test_iterm2_backend.py # iTerm2
python tests/test_tmux_backend.py # tmux
python tests/test_wezterm_backend.py # WezTerm
python tests/test_kitty_backend.py # Kitty
# Lint & format
ruff format .
ruff check . --fix
Requirements
- Python 3.11+
- One of: iTerm2, tmux, WezTerm, Kitty, Ghostty, maquake, VS Code/Cursor, or a JetBrains IDE
License
MIT
Contributing
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sideshell_mcp-1.0.0.tar.gz.
File metadata
- Download URL: sideshell_mcp-1.0.0.tar.gz
- Upload date:
- Size: 179.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2081b7694f15de8325a27a3e04f86badafeb2eedca5a9f40ad701f4bf839617
|
|
| MD5 |
72e6d48351100d2c7c9c326180dc6c82
|
|
| BLAKE2b-256 |
73c7e55ca17dc6c41f3b1c791f9b4ddf2fefa5dd3e84be37b9330a876d82a77c
|
Provenance
The following attestation bundles were made for sideshell_mcp-1.0.0.tar.gz:
Publisher:
publish.yml on menemy/sideshell
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sideshell_mcp-1.0.0.tar.gz -
Subject digest:
e2081b7694f15de8325a27a3e04f86badafeb2eedca5a9f40ad701f4bf839617 - Sigstore transparency entry: 1864062083
- Sigstore integration time:
-
Permalink:
menemy/sideshell@e301ba598d132032d8765137fd2e5ddc593d62d9 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/menemy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e301ba598d132032d8765137fd2e5ddc593d62d9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sideshell_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sideshell_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 66.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6898e771fdc567a6bb40d5f786ae0f90f59d968ee1f758e73aa7d6e9d624f593
|
|
| MD5 |
e6431815f332b9f7376915391c0198e5
|
|
| BLAKE2b-256 |
854d922fed5f5421fea649c7c5db4c7c1d60b56a6782db01968da2dff03ed22b
|
Provenance
The following attestation bundles were made for sideshell_mcp-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on menemy/sideshell
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sideshell_mcp-1.0.0-py3-none-any.whl -
Subject digest:
6898e771fdc567a6bb40d5f786ae0f90f59d968ee1f758e73aa7d6e9d624f593 - Sigstore transparency entry: 1864062234
- Sigstore integration time:
-
Permalink:
menemy/sideshell@e301ba598d132032d8765137fd2e5ddc593d62d9 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/menemy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e301ba598d132032d8765137fd2e5ddc593d62d9 -
Trigger Event:
release
-
Statement type: