Autonomous AI agent TUI for penetration testing and CTF challenges. Built with Go + Bubble Tea.
Current version: v0.2.4
- Get an OpenCode Go API key and export it:
export AI_GATEWAY_API_KEY="YOUR_OPENCODE_GO_API_KEY"- Run:
just runOr without just:
go run ./cmd/z2e-terminal| 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.
just check # fmt + vet + test + build
just build # build ./bin/z2e-terminalcmd/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.