# agend-sh [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/agend-sh/cli  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agend-sh

## Description
Persistent Linux environments for AI agents, with interactive terminals and HTTPS previews.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/agend-sh/cli), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://agend.sh/i | sh
```

2. Install:

```sh
irm https://agend.sh/i.ps1 | iex
```

3. Sign in:

```sh
agend login
```

4. Sign in:

```sh
agend signup --email you@example.com
```

5. Add to your MCP client:

```sh
agend connect
```

## Documentation

## What agend-sh does

agend-sh connects MCP-compatible agents to persistent, isolated Linux environments managed by Agend. Agents can discover environments, run shell commands, edit or transfer project files, start background processes, and work with Python REPLs or terminal applications. The CLI also lets a user open a shell in the selected environment or watch an agent-driven interactive session.

Services running in a workspace can be made reachable through public HTTPS URLs. This supports previewing a web application or other network service without requiring the agent to configure an external tunnel directly.

## How it works

The Agend CLI runs locally on Linux, macOS, or Windows and exposes the MCP server over stdio. After installation and browser-based authentication, create or select an environment, then configure an MCP client with `agend config`.

Agents identify a workspace with its environment name and invoke tools against it. A normal shell command can complete, time out, or run in the background. Interactive commands use a persistent PTY: start them with interactive mode, send later input through the session, resize the terminal when needed, and interrupt or exit the application when finished.

Only one interactive session can be active in an environment at a time. Interactive processes can remain alive between tool calls and may continue after a client disconnects, although sleep, crashes, or a cold reset can affect their lifetime.

## Setup and configuration

Install the CLI with the Unix shell installer, the PowerShell installer, or Homebrew:

- Linux and macOS: `curl -fsSL https://agend.sh/i | sh`
- Windows PowerShell: `irm https://agend.sh/i.ps1 | iex`
- Homebrew: `brew install agend-sh/tap/agend`

The script installers verify the release signature and archive checksum. They support amd64 and arm64 on Linux, macOS, and Windows.

Authenticate with `agend login`, or create an account and sign in using `agend signup --email you@example.com`. Create a workspace with `agend env create --name my-workspace`; use `agend profiles` to inspect available sizes, quotas, and sleep policies, or select a profile during creation.

Run `agend config` to detect supported clients, or name clients explicitly. `agend config --dry-run` previews changes before writing them. Reload the client's MCP integration after configuration. Docker and MCPB installation paths are also available through the project's connection guides.

## Tools and capabilities

The MCP interface includes capabilities for:

- Listing and locating Agend environments.
- Executing shell commands, including background processes.
- Starting interactive terminal sessions with `shell_exec`.
- Sending raw input with `shell_send_raw`.
- Resizing a PTY with `shell_resize` and stopping an interactive process with `shell_interrupt`.
- Exposing a workspace port through HTTPS with `port_expose`.
- Inspecting active exposures with `port_list` and removing them with `port_unexpose`.

For a preview service, bind the service to `0.0.0.0`, then expose its port. A custom Cloudflare-managed domain can be registered and passed to the exposure operation. Domain registration requires a Cloudflare token with DNS edit, zone read, and Cloudflare Tunnel edit permissions.

## Limitations and notes

An Agend account and available environment quota are needed; installing the CLI does not create a free local machine. Public port exposure makes the selected service reachable from the internet, so services should be configured accordingly.

The terminal input-wait signal is an observed event, not a persistent readiness state or a guarantee that an application is waiting for input. It depends on support in the environment's guest stack. Watch mirrors output collected during agent tool calls; it does not poll the guest between calls and does not display ordinary command output or background-task logs.

The interactive terminal and `agend connect` share one session slot per environment. Close the agent's interactive application before opening a user shell, and finish the existing session before starting another interactive command.

_Full upstream README: https://allmcps.com/mcp/agend-sh/readme_

