Skip to content

Pegg Documentation

Pegg is a provider-agnostic AI coding agent written in Go. It runs as an interactive terminal application, a headless CLI, an HTTP API server, an Agent Client Protocol server, or as an embeddable Go SDK — all inside a sandboxed workspace.

Quick start

curl -fsSL https://pegg.dev/install | bash
pegg login   # add a provider API key
pegg         # launch the TUI

See Installation for npm, prebuilt binaries, go install, and build-from-source options.

  • Pegg

    The coding agent itself: installation, providers & models, config, and usage across CLI, TUI, HTTP, and ACP.

  • SDK

    Embed the full agent engine in your own Go program: chats, streaming, sessions, sandboxed files, and custom tools.

  • Peggbot

    Run Pegg as a GitHub bot: workflows, prompts, and GitHub tooling for issues and pull requests.

  • Plugin

    Extend Pegg with plugins: quickstart, interface reference, and development guide.

Explore

Section Where to go
First steps Installation, Providers & Models, Config
Everyday use TUI, CLI, Adding Context, Sessions
Configuration Tools, Skills, Rules, MCP, LSP, Plugins
Going deeper Subagents, Permissions, Memory, SDK
Getting unstuck Troubleshooting

Resources