Skip to content

About

Autonomous AI agent TUI for CTF and pentesting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

z2e-terminal

Autonomous AI agent TUI for penetration testing and CTF challenges. Built with Go + Bubble Tea.

Current version: v0.2.4

Quick start

  1. Get an OpenCode Go API key and export it:
export AI_GATEWAY_API_KEY="YOUR_OPENCODE_GO_API_KEY"
  1. Run:
just run

Or without just:

go run ./cmd/z2e-terminal

Environment

Variable Required Default Description
AI_GATEWAY_API_KEY Yes — OpenCode Go API key
AI_GATEWAY_BASE_URL No https://opencode.ai/zen/go/v1 Gateway endpoint
AI_GATEWAY_MODEL No opencode-go/deepseek-v4-pro Model override

Use /model in the TUI to switch models live.

Build

just check   # fmt + vet + test + build
just build   # build ./bin/z2e-terminal

Architecture

cmd/z2e-terminal/main.go
internal/
  ui/           — Bubble Tea TUI
  agent/        — runtime loop, tools, prompts
  llm/gateway/  — OpenCode Go client, SSE parser, model catalog
  executor/     — shell runner
  config/       — env loader

Go version in go.mod (1.26.1) is a placeholder; the build uses the system toolchain.

About

Autonomous AI agent TUI for CTF and pentesting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages