Skip to content
Agentmart
Submit a tool

tmux-bridge

Local terminal access via the tmux bridge.

Skill by tmustier

IndexedMIT★ 438
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tmustier-tmux-bridge

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Local terminal access via the tmux bridge. Use when the user asks about running shell commands, setting up the tmux bridge, or troubleshooting terminal connectivity.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/tmux-bridge

What's inside

Skill name
tmux-bridge
Description
Local terminal access via the tmux bridge. Use when the user asks about running shell commands, setting up the tmux bridge, or troubleshooting terminal connectivity.
License
MIT
Compatibility
Requires a local tmux bridge process running on the user's machine.
Metadata
docs: docs/tmux-bridge-contract.md · tool-name: tmux
Instructions
78 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Tmux Bridge

The tmux bridge gives Pi access to a real local terminal on the user's machine. The `tmux` tool is always registered — it just needs the bridge process running locally to work.

## What it does

When the bridge is running, the `tmux` tool can:
- **list_sessions** — see active tmux sessions
- **create_session** — start a new shell session (optionally in a specific directory)
- **send_keys** — type commands into a session
- **capture_pane** — read terminal output
- **send_and_capture** — send a command and wait for output in one call
- **kill_session** — close a session

## Running `pi` (or other local CLIs) via tmux

The tmux pane is a normal local shell. If `pi` is installed, you can invoke it directly with `send_keys`/`send_and_capture` text like any other command.

Recommended flow:
1. `list_sessions` then `create_session` (or reuse an existing session)
2. Optional one-time check: `command -v pi`
3. Send the `pi ...` command
4. Monitor output with `capture_pane`

For long-running jobs, avoid rapid repeated captures. Prefer:
- `capture_pane` with `wait_ms` (for example 15000-30000), or
- `send_and_capture` with `wait_for` + `timeout_ms` when you know a completion pattern.

## How to set it up

### 1. Start the bridge

The bridge is a local HTTPS server. Run it from a terminal:

```bash
npx pi-for-excel-tmux-bridge
```

This defaults to **real tmux mode** on `https://localhost:3341`.

Options:
- `--install-missing` — auto-install tmux via Homebrew (macOS)
- `TMUX_BRIDGE_MODE=stub` — safe simulated mode (no real shell execution)
- `TMUX_BRIDGE_TOKEN=your-secret` — require auth token

### 2. Configure in Pi (usually not needed)

The default bridge URL (`https://localhost:3341`) works automatically — no configuration required. If you need a custom URL or auth token:

```
/experimental tmux-bridge-url <url>
/experimental tmux-bridge-token <token>
/experimental tmux-status
```

### 3. Accept the local HTTPS certificate

The bridge uses a self-signed cert. You may need to visit `https://localhost:3341` in your browser once and accept it.

## When the bridge is not running

The `tmux` tool stays registered but returns an error if the bridge is unreachable. Python tools (`python_run`, `python_transform_range`) still work via the in-browser Pyodide fallback — tmux is the only tool that strictly requires its bridge.

## Security

- Loopback-only (localhost)
- Origin allowlist
- Optional bearer token auth
- Session names and key tokens are validated
- No shell interpolation (argv-based tmux calls)

## Troubleshooting

- **"bridge URL is unavailable"** — the bridge process isn't running. Start it with `npx pi-for-excel-tmux-bridge`.
- **"timed out"** — the bridge is running but the command took too long. Default timeout is 15s; use `timeout_ms` for longer operations.
- **CORS/cert errors** — visit the bridge URL directly in your browser and accept the certificate.

From tmustier/pi-for-excel, MIT.

Signals

Stars
438
Forks
61
Open issues
33
Last commit (this folder)
Feb 21, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from tmustier

Cite this page

tmux-bridge skill. Agent Mart. https://agentmart.dev/skills/tmustier-tmux-bridge (last updated 2026-10-24)