# Termada

> Reliable, transparent terminal runtime between AI agents and the shell (local + SSH).

- **Type:** MCP server
- **Install:** `agentstack add mcp-islomzoda-termada`
- **Verified:** Pending review
- **Seller:** [Islomzoda](https://agentstack.voostack.com/s/islomzoda)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.7.5
- **License:** Apache-2.0
- **Upstream author:** [Islomzoda](https://github.com/Islomzoda)
- **Source:** https://github.com/Islomzoda/termada

## Install

```sh
agentstack add mcp-islomzoda-termada
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

Termada

The reliable, transparent terminal runtime for AI agents.

  
  
  
  
  

Termada is a single-binary, local-first runtime that sits between an AI agent and
the terminal — local, and remote over SSH. The agent talks to it over the
[Model Context Protocol](https://modelcontextprotocol.io) and gets a sturdy
toolset instead of a raw shell: commands that don't hang, persistent sessions
that keep `cwd`/env, async jobs with streamed output, PTY input for interactive
prompts, and structured results — while you watch and control everything from a
live dashboard with a kill-switch and an approval queue.

  

The live dashboard: every session is a real terminal you can watch and take over — block or pause the agent, type in yourself — beside the agent panel, read-only policies, a tamper-evident History, and a Stop-All kill-switch.

---

## Why

Handing an AI agent a raw shell is fragile and opaque: a command blocks on a
prompt and the agent hangs; `cd` and exported env vanish between calls; long
builds flood the context window; and you can't see — let alone stop — what's
running. Termada replaces the raw shell with a runtime that is **reliable** for
the agent and **transparent** for you:

- **Reliable for the agent** — every command has a deadline and returns
  structured output; sessions persist `cwd`/env; long jobs run async and stream
  incrementally instead of dumping; interactive prompts are answerable.
- **Transparent for you** — one dashboard shows every agent and every session as
  a real terminal; dangerous commands wait for your approval; nothing is hidden;
  one button stops everything.

## Features

**Execution engine**
- Persistent-shell sessions over a PTY that keep `cwd`, env, and venv between commands.
- Async jobs: `exec_start` → `job_id`; poll incrementally by a stable cursor, with a full status state machine and structured errors.
- Answer interactive prompts (`exec_write`, with secret redaction); send signals / kill by process group.
- Clean output: stateful ANSI/VT stripping, CR-collapse, bounded retention, best-effort secret redaction.

**Live control & observability**
- A long-lived daemon with a control plane over a Unix socket; `serve --stdio` is a thin shim that proxies MCP to it — so **multiple agents share one daemon and one dashboard**.
- Web dashboard where **each session renders as a real terminal** (xterm.js, streamed over SSE) with **operator take-over**: type into a job's PTY, hold the agent's input, or pause its output.
- Approval queue, activity feed, read-only policy view, and a **Stop-All** kill-switch.
- A TUI (`termada top`) and a full inspection CLI.
- Tamper-evident, hash-chained, secret-redacted audit log (`termada audit verify`).

**Security**
- Policy engine: argv-level allow / deny / confirm. Dangerous commands park in an approval queue (deny-by-default on timeout; agents can't self-approve).
- age-encrypted vault (no CGO); secrets are never returned to agents, only injected into the daemon.
- Per-agent quotas and non-spoofable identity: cap concurrent jobs per agent, and bind an agent id to a secret token so `owner` can't be forged.

**Remote & fleet**
- Persistent **remote SSH sessions** with transparent reconnect — a dropped link is re-dialled so the session keeps serving commands.
- `fleet_run` across servers by name or tag with structured per-server results; SSH via vault creds, ssh-agent, or on-disk keys, with TOFU host-key pinning.

**Operations**
- Crash recovery (jobs persist; running jobs come back as `orphaned`), local-FS snapshots/undo, desktop & Telegram notifications.
- Out-of-process plugins exposed to agents as `.`.
- `termada update` — self-update from GitHub releases (download → verify SHA-256 → atomic replace).

> **Not yet:** a native Windows ConPTY runtime (cross-compiles today, but PTY and
> signals are stubs) and code-signing / notarization.

## Install

**One line, no Go needed** — downloads the prebuilt binary for your OS/arch
(SHA-256 verified) to `~/.local/bin`:

```bash
curl -fsSL https://raw.githubusercontent.com/Islomzoda/termada/main/install.sh | sh
```

Pin a version with `TERMADA_VERSION=v0.7.5`, or change the location with
`TERMADA_BIN_DIR=~/bin`. If `~/.local/bin` isn't on your `PATH`, the installer
prints the one line to add.

Other ways — Docker, Homebrew, packages, source

```bash
# Docker (nothing to install) — pull the published image:
docker run --rm -p 7717:7717 ghcr.io/islomzoda/termada serve

# Homebrew:
brew install Islomzoda/tap/termada

# From source (needs Go 1.26+):
TERMADA_FROM_SOURCE=1 ./install.sh
# or:  go build -o ~/.local/bin/termada ./cmd/termada
```

Releases also ship `.deb` and `.rpm` packages on the
[releases page](https://github.com/Islomzoda/termada/releases).

## Quick start

```bash
termada serve         # start the daemon + dashboard (prints the URL)
termada dashboard     # open it — http://127.0.0.1:7717, no token on your own machine
```

Connect it to your agent — this is a **one-time, machine-wide** step. You do it
once and every project gets Termada automatically; there's nothing to copy into
each repo.

For Claude Code, one command does it:

```bash
claude mcp add --scope user termada -- termada serve --stdio
```

Using a different agent (or prefer a file)? Add this once to your **global** MCP
config — see [`.mcp.json.example`](.mcp.json.example):

```json
{ "mcpServers": { "termada": { "command": "termada", "args": ["serve", "--stdio"] } } }
```

That's it. From now on, just ask the agent to do terminal work — it flows through
Termada while you watch and control it live. The one shared daemon serves every
project and every agent session, all on the same dashboard.

### Reach remote servers through Termada

For the agent to operate a remote box **through Termada** (observable, reconnecting,
policy-gated) instead of shelling out to raw `ssh`, register the server once — then
it's reachable **by name**, no IP and no raw ssh client.

Add it to `config.yaml` (see [`config.example.yaml`](config.example.yaml)) and
restart the daemon:

```yaml
servers:
  - name: prod
    host: prod.example.com        # hostname or IP of your server
    user: deploy
    # auth is OPTIONAL: a vault entry name for a Termada-stored credential.
    # Omit it to use your own ssh-agent / ~/.ssh key — if you can `ssh deploy@host`, so can Termada.
    # auth: prod-ssh-key
    tags: [web]
```

…or add it live from the dashboard (**Servers → Add**). Confirm it's registered:

```bash
termada servers          # lists registered servers by name
```

Now the agent reaches it by name:

- **a remote shell session** — `session_create(target="prod")`, then run `exec_run` / `exec_start` in that session (state persists, the link auto-reconnects);
- **one command across servers** — `fleet_run(command=[...], servers=["prod"])` (or by tag).

### Make the agent actually use Termada

Agents like Claude Code and Cursor ship with a built-in shell and will reach for it
(and for raw `ssh`) by default. Two things steer them to Termada:

1. **Install the usage skill** — the plugin below, or [`skills/termada`](skills/termada/SKILL.md). It teaches the agent how to drive the tools (and to route remote work through registered servers instead of `ssh`).
2. **Add a project rule** so the agent *prefers* Termada. Put this in `CLAUDE.md`
   (Claude Code), `.cursor/rules` (Cursor), or your agent's system prompt:

   > Use the Termada MCP tools for **all** shell and remote work — `exec_run` /
   > `exec_start` for commands, `session_create(target="")` and `fleet_run`
   > for remote servers. Do **not** use the built-in shell or a raw `ssh` client:
   > everything must go through Termada so it is observable, reconnecting, and
   > policy-gated. If a server isn't in `server_list()`, ask me to register it
   > rather than falling back to `ssh`.

Install as a Claude Code plugin

This repo is also a Claude Code plugin marketplace — it bundles the MCP server
config and the usage skill (you still need the `termada` binary on `PATH`):

```text
/plugin marketplace add Islomzoda/termada
/plugin install termada@termada
```

## MCP tools

Commands are passed as an **argv array** (`["echo", "hi"]`), never a shell string,
so shell metacharacters are inert by construction.

| Group | Tools |
| --- | --- |
| Run | `exec_run` · `exec_start` · `exec_poll` · `exec_write` · `exec_signal` · `exec_kill` · `exec_list` |
| Sessions | `session_create` · `session_list` · `session_close` |
| Files & logs | `file_read` · `file_write` · `logs_tail` |
| Recipes | `recipe_list` · `recipe_run` |
| Remote | `server_list` · `fleet_run` |
| Meta | `capabilities` |

## CLI

```text
termada serve [--stdio]              daemon, or the MCP shim
termada dashboard | top | status     open the UI / live TUI / overview
termada jobs [-f] | sessions         list jobs / sessions
termada logs  [-f]              stream a job's output
termada kill  | stop            kill a job / kill-switch (stop all)
termada pending | approve | deny     human-in-the-loop approvals
termada audit [verify]               audit feed / verify the tamper chain
termada servers | unlock             remote inventory / unlock the vault
termada vault init|set|list|rm|reset manage credentials
termada snapshot create|list|restore local-FS safety net (undo)
termada doctor                       health check
termada service install|uninstall    run the daemon at login
termada update                       self-update from GitHub releases
```

## Documentation

- [docs/SECURITY.md](docs/SECURITY.md) — threat model: what's protected and what isn't.
- [docs/PLUGINS.md](docs/PLUGINS.md) — writing out-of-process tool plugins.
- [docs/PUBLISHING.md](docs/PUBLISHING.md) — release & MCP-registry process.

## Architecture

A single daemon owns all state; agents connect through a stdio shim, and you
observe through the dashboard, TUI, or CLI — all over the same control plane.

```text
cmd/termada            CLI: daemon, shim, inspection/control, vault
internal/engine        sessions, jobs, PTY, status machine, signals, files, recipes
internal/output        cursor buffers, VT cleaner, redaction
internal/policy        argv allow/deny/confirm classification
internal/vault         age-encrypted credential store
internal/audit         hash-chained tamper-evident log
internal/bus           event bus (observability + durable audit)
internal/daemon        long-lived process: listeners, auth, lifecycle
internal/controlplane  HTTP/JSON control-plane server + client
internal/dashboard     embedded web UI
internal/tui           termada top
internal/fleet         server selection + concurrent aggregation
internal/sshx          SSH runner (vault / agent / key auth, TOFU host keys)
internal/mcp           MCP JSON-RPC stdio server + tools
```

## Development

```bash
make vet test    # vet + tests
make race        # tests under the race detector
```

Engine tests exercise a real PTY and `bash`; fleet logic is unit-tested with a
mock runner; the daemon stack and SSH are integration-tested end-to-end.

## License

[Apache-2.0](LICENSE).

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Islomzoda](https://github.com/Islomzoda)
- **Source:** [Islomzoda/termada](https://github.com/Islomzoda/termada)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.7.5 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.7.5** — security scan: flagged — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-islomzoda-termada
- Seller: https://agentstack.voostack.com/s/islomzoda
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
