# tunzip — Full Technical & Agent Reference (https://tun.zip) > Free, standalone, agent-first blind-edge HTTPS tunnel client and MCP server by BaseDatum (https://basedatum.com). Sibling to theuth (https://theuth.io). Dual-licensed Apache-2.0 / MIT. ## 1. What tunzip Is `tunzip` publishes local HTTP services or static directories on `https://.tun.zip` (and `https://..tun.zip`) with end-to-end TLS terminated on your own machine. Core properties: - Completely free to use on the default `tun.zip` blind edge. - Agent-focused: first-class CLI (`--json` on every command) and Model Context Protocol (MCP) server (`rmcp`, stdio + loopback Streamable HTTP). - Private keys never leave your machine: P-256 TLS keys and Ed25519 mesh/engine keys stay on disk (`0600`) under your local `data_dir`. - Blind edge: the public edge never holds your certificate private key, never presents a certificate on TCP 443, and never decrypts HTTP traffic. - Reserve a permanent `.tun.zip` subdomain (`[a-z0-9-]{3,32}`), or use an automatically allocated 6-character random name. --- ## 2. Installation | Method | Command | |---|---| | macOS / Linux shell | `curl -fsSL https://tun.zip/install.sh \| sh` | | Homebrew (macOS / Linux) | `brew install basedatum/tap/tunzip` | | Cargo (Rust) | `cargo install tunzip` | | Windows PowerShell | `irm https://tun.zip/install.ps1 \| iex` | Direct release archives (verified with `SHA256SUMS`, `.minisig`, and GitHub build-provenance attestations): - `aarch64-apple-darwin` (macOS Apple Silicon, signed & notarized `.tar.gz`) - `x86_64-apple-darwin` (macOS Intel, signed & notarized `.tar.gz`) - `x86_64-unknown-linux-musl` (Linux x86_64 static musl `.tar.gz`) - `aarch64-unknown-linux-musl` (Linux ARM64 static musl `.tar.gz`) - `x86_64-pc-windows-msvc` (Windows x64 `.zip`) Latest release API: `https://api.github.com/repos/BaseDatum/tunzip/releases/latest` Releases page: `https://github.com/BaseDatum/tunzip/releases/latest` --- ## 3. Quick Start ```sh # 1. Generate local Ed25519 keys (mesh.key + engine.key, mode 0600) and starter config.yaml tunzip init --accept-terms # 2. Optional: claim a human-readable subdomain and obtain a Let's Encrypt cert via local CSR tunzip reserve myagent # 3. Expose a local port or directory over end-to-end TLS tunzip share 3000 # -> https://myagent.tun.zip (terminating TLS locally, forwarding to 127.0.0.1:3000) # Share a static directory with password protection and 1h expiry tunzip share ./dist --sub preview --expires 1h --password ``` --- ## 4. CLI Reference Global flags accepted on every subcommand: - `--json`: emit machine-readable JSON to stdout - `--config `: override config file path (also honors `TUNZIP_CONFIG`) Subcommands: - `tunzip init [--edge ] [--accept-terms]` Generates `mesh.key` and `engine.key` (two distinct 32-byte Ed25519 keys, mode `0600`), writes starter `config.yaml`, and prints your `mesh_id`. - `tunzip terms [--accept]` Fetches `terms_url` and `terms_rev` from the edge and records acceptance in `config.yaml`. - `tunzip reserve ` Checks availability, claims `.tun.zip` (`[a-z0-9-]{3,32}`, no leading/trailing `-`, no `xn--`), generates a local P-256 keypair and PKCS#10 CSR, submits the CSR, and streams ACME DNS-01 queue/issuance progress until the cert chain is installed locally. - `tunzip names [ls | check | release | primary | rotate [--compromised] | transfer ]` Manage held names (bare `tunzip names` equals `ls`). `release` revokes the cert, deletes DNS, and places the name into cooldown (`max(30d, cert not_after)`). `rotate` generates a fresh local P-256 keypair and CSR. `transfer` creates a 7-day offer for ``. - `tunzip share [--name ] [--sub