Agend Sh logo

Agend Sh

MCP tools for persistent Linux workspaces, interactive terminals, file work, background tasks, and HTTPS service previews.

Install Agend Sh

Run the project’s own setup commands, in order.

Setup steps from the project

agend-sh installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://agend.sh/i | sh
    
  2. 2. Install
    irm https://agend.sh/i.ps1 | iex
    
  3. 3. Sign in
    agend login
    
  4. 4. Sign in
    agend signup --email you@example.com
    
  5. 5. Add to your MCP client
    agend connect
    

Overview

agend-sh MCP server lets AI agents operate persistent, isolated Linux workspaces through MCP over stdio. It supports command execution, background tasks, interactive REPLs and terminal applications, file transfers, and port-based HTTPS previews. Use it when an agent needs a remote development environment rather than only local tool calls. An Agend account and available environment quota are required.

Use cases

  • Run code in a persistent remote Linux workspace
  • Drive Python REPLs and interactive terminal applications
  • Develop projects with background services and transferred files
  • Expose a workspace service through a public HTTPS preview
  • Watch an agent's interactive terminal session

Key features

  • Persistent isolated Linux environments
  • MCP over stdio
  • Interactive PTY sessions with input-wait feedback
  • Background command execution and file transfer
  • Public HTTPS port exposure
  • Terminal mirroring with agend watch

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 46d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit6d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Agend Sh works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agend Sh

agend-sh is an MCP server that connects AI agents to persistent, isolated Linux workspaces managed by Agend. Its main tools cover environment discovery, shell execution, interactive terminal input, PTY resizing and interruption, file-oriented workspace work, and HTTPS port exposure for running services. It communicates with MCP clients over stdio.

Install the Agend CLI with the Unix shell installer, Windows PowerShell installer, or Homebrew. Use `agend login`, create an environment with `agend env create`, and run `agend config` to add the MCP connection to a supported client.

Start `shell_exec` with `interactive: true`, then send subsequent input through `shell_send_raw`, including a newline when Enter is needed. Use `shell_resize` when the viewport changes and `shell_interrupt` or the application's own exit command to close the session.

Bind the service to `0.0.0.0`, then call `port_expose` with the workspace environment and listening port. The response contains a public HTTPS URL; `port_list` shows active exposures and `port_unexpose` removes one.

Yes. Run `agend config cursor` to configure Cursor, then reload its MCP integration. The CLI also supports configuration for Claude Code, Claude Desktop, Codex, Windsurf, Gemini CLI, VS Code, Zed, JetBrains, Cline, and Roo Code.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgend Sh AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agend-sh?style=directory)](https://allmcps.com/mcp/agend-sh)
HTML Embed
<a href="https://allmcps.com/mcp/agend-sh"><img src="https://allmcps.com/api/badge/agend-sh?style=directory" alt="Agend Sh on AllMCPs" /></a>