Skip to content
Edit this page View source of this page

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, a VS Code extension, or as an embeddable Go SDK — all inside a sandboxed workspace.

Quick start

# macOS / Linux
curl -fsSL https://pegg.dev/install | bash
# Windows (PowerShell)
irm https://pegg.dev/install.ps1 | iex
pegg login   # add a provider API key
pegg         # launch the TUI

Prefer VS Code?

code --install-extension peggco.pegg-vscode

Open a trusted workspace, run Pegg: Provider Login, and open the Pegg chat. See the VS Code guide.

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, VS Code, 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, VS Code, CLI, Desktop, Adding Context, Sessions
Configuration Tools, Skills, Rules, MCP, LSP, Plugins
Going deeper Subagents, Permissions, Memory, SDK
Getting unstuck Troubleshooting

Resources