MidTerm

Your terminal, anywhere. Run AI coding agents and TUI apps on your machine, access them from any browser.


Project maintained by tlbx-ai Hosted on GitHub Pages — Theme by mattgraham

MidTerm Banner

MidTerm

GitHub Release License: AGPL v3 macOS Windows Linux

Your terminal, anywhere. Run AI coding agents and TUI apps on your machine, access them from any browser.

MidTerm Screenshot

The Problem

You kick off Claude Code on a complex refactor. It’s going to take a while. Now you need to leave your desk — grab lunch, head to a meeting, go home. Your options:

The Solution

MidTerm serves your terminal through a browser. Start a task on your main rig, continue watching from your laptop, phone, or tablet. Your machine does the work. You stay connected.

Your PC                          Anywhere
┌─────────────────┐              ┌─────────────────┐
│ Claude Code     │    HTTPS     │                 │
│ OpenAI Codex    │◄────────────►│   Browser       │
│ Any TUI app     │   WebSocket  │                 │
└─────────────────┘              └─────────────────┘
     Full power                    Full access

Perfect for:

Features

Installation

One-liner Install

macOS / Linux:

curl -fsSL https://tlbx-ai.github.io/MidTerm/install.sh | bash

Windows (PowerShell 5.1+ or pwsh):

irm https://tlbx-ai.github.io/MidTerm/install.ps1 | iex

Windows (cmd):

powershell -c "irm https://tlbx-ai.github.io/MidTerm/install.ps1 | iex"

The installer will:

  1. Ask you to choose between system service or user install
  2. Prompt for a password (required — protects your terminal from network access)
Option Best for Privileges
System service Always-on access, headless machines, remote access before login Requires admin/sudo
User install Try it out, occasional use, no admin rights No special permissions

Manual Download

Platform Download
macOS ARM64 mm-osx-arm64.tar.gz
macOS x64 mm-osx-x64.tar.gz
Windows x64 mm-win-x64.zip
Linux x64 mm-linux-x64.tar.gz

Quick Start

  1. Run the one-liner install above
  2. Open http://localhost:2000 (or the port you chose during setup)
  3. Click the + button to create a new terminal
  4. Enjoy working on your terminal from anywhere

Security

MidTerm exposes terminal access over the network. Security is mandatory:

Change your password anytime in Settings > Security.

Terminal Resize

Terminals are created at the optimal size for your current screen. When viewing from a different device:

Remote Access

For access outside your local network:

Tailscale — The easiest option. Install on your machine and phone, access via http://your-machine:2000. Free for personal use.

Other options:

Command Line Options

mm [options]

  --port 2000       Port to listen on (default: 2000)
  --bind 0.0.0.0    Address to bind to (default: 0.0.0.0)
  --version         Show version and exit
  --hash-password   Hash a password for settings.json

Configuration

Settings stored in:

{
  "defaultShell": "Pwsh",
  "defaultCols": 120,
  "defaultRows": 30,
  "authenticationEnabled": true,
  "passwordHash": "$PBKDF2$100000$..."
}

Building from Source

Prerequisites:

git clone https://github.com/tlbx-ai/MidTerm.git
cd MidTerm

# Build
dotnet build src/Ai.Tlbx.MidTerm/Ai.Tlbx.MidTerm.csproj

# AOT binary (platform-specific)
cd src/Ai.Tlbx.MidTerm
./build-aot-macos.sh     # macOS
./build-aot.cmd          # Windows
./build-aot-linux.sh     # Linux

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

Note: All contributions require acceptance of our Contributor License Agreement.

License

GNU Affero General Public License v3.0

Commercial licensing available — contact for details.


Created by Johannes Schmidt