Getting Started

Requirements

Install

macOS / Linux:

curl -fsSL https://aa-blinov.github.io/cast/install | bash

Windows (PowerShell):

irm https://aa-blinov.github.io/cast/install.ps1 | iex

Self-contained bundle — no npm packages needed at runtime.

Pin a version:

CAST_VERSION=0.1.0 curl -fsSL https://aa-blinov.github.io/cast/install | bash

Upgrade later:

cast upgrade

Quick Start

# Launch — prompts for provider URL + API key on first run, remembers after
cast

# One-shot prompt
cast "explain what this project does"

# Specific model + reasoning
cast -m qwen/qwen3-235b-a22b -r high "refactor this function"

# Resume last session
cast -c

Provider Setup

On first run, cast asks for your provider URL and API key, then saves both to ~/.cast/settings.json. No .env file needed.

Supported environment variables (provider credentials are not read from env — use the settings file or /provider):

VariableDescription
CAST_CWDOverride working directory
CAST_BASHPath to the bash executable for the bash tool (Windows: non-standard Git Bash / msys2)
CAST_VERSIONPin install version (installer only)

Works with anything that speaks the OpenAI API:

What Happens on First Run

When you launch cast without a saved configuration, an interactive onboarding flow walks you through setup:

  1. Persona selection — choose the agent's role (coding, senior dev, QA, etc.). This sets the system prompt but not the tools. Defaults to coding.

  2. Provider connection — enter your API endpoint URL and API key. cast validates both by hitting /v1/models. Saved to ~/.cast/settings.json.

  3. Model selection — cast fetches the model list from your provider and lets you pick one. The selection is validated with a test prompt.

  4. Reasoning level — if the model supports reasoning (detected from OpenRouter metadata), choose a level: off, low, medium, high, or max. Binary-toggle models offer on/off instead.

  5. Session — a new session starts automatically. Every conversation auto-saves.

After the first run, all choices are remembered. Subsequent launches go straight to the TUI.

Default Configuration

These defaults apply unless overridden:

SettingDefaultDescription
Context window128,000 tokensUpdated from provider metadata when available
Max response tokens8,192Maximum tokens per assistant response
Compaction threshold75%Triggers context compaction when usage exceeds this
Bash timeout180 secondsDefault timeout for shell commands
Reasoning leveloffUnless the model's metadata suggests otherwise
Web toolsDisabledEnable with /web (persists to settings)

Next Steps