Z²ᴱ

Installation

Install and configure z2e-terminal.

Prerequisites

  • Go 1.23+ (required for building from source)
  • Bun (optional, for the www documentation site)
  • Git (for cloning repositories)

Clone & Build

git clone https://github.com/Z2E-Agent/z2e-terminal.git
cd z2e-terminal

# Build the binary
go build -o main ./cmd/z2e-terminal/

# Or use just (if installed)
just build

The binary is output to ./main in the project root.

Environment Configuration

Copy the example env file and configure your AI Gateway credentials:

cp .env.example .env

Required environment variables:

VariableDescription
AI_GATEWAY_API_KEYYour AI Gateway API key
VERCEL_AI_GATEWAY_API_KEYAlias for the above

Optional environment variables:

VariableDefaultDescription
AI_GATEWAY_BASE_URLhttps://ai-gateway.vercel.sh/v1Gateway endpoint
AI_GATEWAY_MODELopenai/gpt-5.2Default model
VERCEL_AI_GATEWAY_MODELSame as aboveAlias

Verify Installation

# Start the TUI
just run

# Or directly
./main

You should see the Z2E terminal interface with a prompt area and status bar.

On this page