Pegg Installation¶
Pegg ships as a single static binary with no runtime dependencies. Release builds
are produced for Linux, macOS, and Windows on both amd64 and arm64.
Requirements¶
| Runtime | None — the binary is self-contained (CGO_ENABLED=0) |
| Build from source | Go 1.26.5 or newer |
| Windows installer | Windows PowerShell 5.1+ or PowerShell 7+ |
| Terminal | Any modern terminal. The TUI uses 24-bit color and mouse/paste support when available |
| VS Code extension | VS Code 1.90+ with a trusted workspace |
Install¶
Downloads the latest release binary for your platform and installs it to
/usr/local/bin when that directory is writable, and to ~/.local/bin
otherwise. When the install directory is not already on your PATH, the
installer appends an export to your login shell's profile (~/.zshrc,
~/.bash_profile on macOS, ~/.bashrc on Linux, or a
fish/conf.d/pegg.fish snippet), so pegg resolves in new shells.
Pick the directory with PREFIX, pin a release with VERSION, or skip the
PATH update with PEGG_NO_PATH:
From cmd.exe:
Installs pegg.exe to %LOCALAPPDATA%\Programs\pegg and adds that directory
to your user PATH. Override the location with PREFIX:
Pin a release with VERSION, or skip the PATH update with PEGG_NO_PATH:
Or install Pegg from the Extensions view. The extension can download and
verify the matching pegg binary automatically, so a separate CLI install is
optional. See the VS Code guide.
Installs the pegg binary globally via npm.
- Pin a version:
PEGG_VERSION=v0.1.5 npm i -g @peggco/pegg - Skipped install scripts (
--ignore-scripts, or pnpm blocking build scripts) leave no binary; reinstall without them, or for pnpm runpnpm approve-builds. - npm 11+ may block scripts until approved:
npm i -g --allow-scripts=@peggco/pegg.
Download the archive for your platform from the GitHub releases page:
| Platform | Archive |
|---|---|
| Linux | pegg_linux_amd64.tar.gz, pegg_linux_arm64.tar.gz |
| macOS | pegg_darwin_amd64.tar.gz, pegg_darwin_arm64.tar.gz |
| Windows | pegg_windows_amd64.zip, pegg_windows_arm64.zip |
Each release also publishes checksums.txt so you can verify your download:
Desktop releases publish a separate pegg-desktop_checksums.txt covering
the pegg-desktop_* archives, installers, and packages:
The binary is placed in $(go env GOPATH)/bin. Make sure that directory is on
your PATH.
Verify¶
First run¶
The first launch creates the global config directory and a default config file, and
creates a project-local .pegg/ directory in the current working directory.
The login command opens an interactive provider picker, then asks for an API key
(masked). Keys are stored in ~/.peggco/pegg.json. You can skip the interactive
prompt:
Once at least one provider is configured, start the TUI:
Or open the Pegg extension in VS Code and run Pegg: Provider Login from the command palette. See the VS Code guide.
Or run a one-shot headless prompt:
See CLI usage for every command.
Update¶
Pegg can update itself in place from GitHub releases:
pegg doctor also checks for updates after testing provider connectivity and
offers to install a newer version when one is available.
File locations¶
Run pegg files to print the resolved paths and whether each exists.
| Purpose | Path |
|---|---|
| Global config | ~/.peggco/pegg.json |
| Logs | ~/.pegg/logs.db (SQLite driver) |
| Model cache | ~/.pegg/cache.db (SQLite driver) |
| Sessions | ~/.pegg/sessions.db (SQLite driver) |
| Permission approvals | ~/.pegg/permissions.json |
| Global skills | ~/.pegg/skills/ |
| Global rules | ~/.pegg/rules/ |
| Downloaded LSP binaries | ~/.pegg/lsps/ |
| Read-hash snapshots | ~/.pegg/vfs/ (one file per workspace) |
| Project data | <project>/.pegg/ |
| Project MCP config | <project>/.mcp.json |
| Project LSP config | <project>/.lsp.json |
On Windows, ~ resolves to %USERPROFILE%.
Uninstall¶
Remove-Item "$env:LOCALAPPDATA\Programs\pegg" -Recurse -Force
Remove-Item "$env:USERPROFILE\.pegg" -Recurse -Force
Remove-Item "$env:USERPROFILE\.peggco" -Recurse -Force # provider credentials
If you used a custom PREFIX, remove that directory instead. You can also
remove the install directory from your user PATH.
Project-local data lives in each project's .pegg/ directory and can be removed
individually.