Installation

Poly Code CLI runs on macOS, Linux, and Windows (via WSL). It requires the Bun runtime, which the installer handles automatically.

One-Line Install

Terminal
bash
curl -fsSL https://poly.inc/code.sh | bash

The installer detects your platform, installs Bun if needed, downloads the latest binary, and adds it to your PATH.

Verify Installation

Terminal
bash
codecli --version
# codecli 0.9.0

Platform Requirements

PlatformRequirementsNotes
macOSmacOS 12+ (Monterey)Apple Silicon and Intel
Linuxglibc 2.31+ or musl 1.2+Ubuntu 20.04+, Debian 11+, Fedora 35+
WindowsWSL 2 with UbuntuDoes not run natively on Windows
iNote
Bun is automatically installed to ~/.bun/bin/bun. No manual installation required.

Manual Install

Manual install
bash
# Install Bun if not present
curl -fsSL https://bun.sh/install | bash
# Install from npm
bun install -g @poly/codecli
# Or from source
git clone https://github.com/polysystems/codecli.git
cd codecli && bun install && bun run build && bun link

First-Run Setup

1
  • Run codecli to start the TUI
  • 2
  • Select an AI provider (Anthropic, OpenAI, Google, etc.)
  • 3
  • Enter your API key or authenticate via OAuth
  • 4
  • Choose your default model
  • 5
  • Start coding
  • Updating

    Terminal
    bash
    codecli upgrade

    Set "autoupdate": true in config to check for updates automatically.

    Uninstalling

    Terminal
    bash
    codecli uninstall
    PreviousAboutNextQuick Start