Skip to content

Quickstart

Have a model API key or an account with Codex access ready. See supported accounts and APIs for access requirements.

With Homebrew installed, run:

brew install keakon/tap/chord

Homebrew automatically adds the Chord tap and installs the release binary for macOS or Linux on ARM64 or x86_64. It verifies the package’s SHA256 and installs Bash, Zsh, and Fish completions. Go is not required; the formula does not fall back to compiling from source.

To upgrade:

brew update
brew upgrade chord

This downloads the latest release binary, verifies it against the release checksums, and installs it into /usr/local/bin:

curl -fsSL https://github.com/keakon/chord/releases/latest/download/install.sh | bash

The script asks for sudo when it must write to the install directory, and it never edits your shell profile. Pin a release or choose another directory with flags:

curl -fsSL https://github.com/keakon/chord/releases/latest/download/install.sh | bash -s -- --version v0.8.3 --install-dir "$HOME/.local/bin"

If that URL returns 404, the latest release does not ship the installer yet; fetch it from the repository instead:

curl -fsSL https://raw.githubusercontent.com/keakon/chord/main/scripts/install.sh | bash

Download the archive for your OS and architecture from GitHub Releases, extract it, and put chord on your PATH. These binaries do not require Go.

With Go 1.27.0 or newer:

go install github.com/keakon/chord/cmd/chord@latest

go install writes the binary to $(go env GOPATH)/bin (usually ~/go/bin) unless GOBIN is set. That directory must be on your PATH, otherwise the shell reports chord: command not found:

export PATH="$PATH:$(go env GOPATH)/bin"

Add that export to your shell profile (~/.bashrc for Bash, ~/.zshrc for Zsh) so it survives new sessions. To place the binary in a directory that is already on PATH everywhere, copy it after the build:

sudo install -m 0755 "$(go env GOPATH)/bin/chord" /usr/local/bin/chord

After installing with any of these methods, run:

chord --version

On macOS, a binary downloaded manually from GitHub Releases may be blocked on first run because it came from the internet and is not notarized. If that happens, run:

xattr -dr com.apple.quarantine /path/to/chord
chmod +x /path/to/chord
/path/to/chord --version

If macOS still blocks it, add a local ad-hoc signature:

codesign --force --sign - /path/to/chord

Replace /path/to/chord with the actual installed path, such as /usr/local/bin/chord.

Open your project in an interactive terminal and start Chord:

cd my-project
chord

If config.yaml is missing, the setup wizard offers two ways to connect:

  • API key: enter your provider’s full API URL, model name, and key. You can also enter a proxy URL if needed.
  • Codex OAuth: follow the sign-in prompts without entering an API key manually.

On terminals that report bracketed-paste support, single-character choices submit without Enter. A pasted choice is consumed in full before it submits; only its first non-whitespace character selects an option. On other terminals, enter a choice and press Enter. Input received before paste mode is enabled also uses this Enter-confirmed fallback.

The wizard creates a minimal config.yaml and, when needed, auth.yaml, then shows where it saved them. It reuses matching credentials when possible. Chord also creates the project’s .chord/ directory as needed.

See More configuration options for API URL formats, manual setup, and setup without an interactive terminal.

Describe what you want and press Enter. For example, have it read through your project first:

Explain this project's main modules and how to run its tests. Do not change any files yet.

Read its answer. With the default configuration, Chord edits files and runs commands directly. File deletions through delete and deletions or moves through apply_patch require confirmation. When a confirmation appears, inspect the pending action before deciding whether to allow it. To require approval for more actions, see Permissions & Safety. Once you are comfortable, give Chord a specific change: it edits code and runs tests, and you review the diff in the terminal.

To quit, press Esc to enter Normal mode, then press q twice within 2 seconds; alternatively, press Ctrl+C twice within 2 seconds. Next time, run this from your project directory:

chord --continue

This resumes your most recent session. See Sessions to choose another session or import external history.

If an API-key configuration cannot reach the model, exit Chord and run:

chord doctor models

Resolve authentication or connection errors before running chord again. See Troubleshooting for help.

If you have an API key, you can skip the setup wizard:

export OPENAI_API_KEY="your-api-key"
chord config add openai/gpt-6.2-sol
chord

The add command creates your config and fills the documented API connection. For another model, run chord config add without arguments and pick from the verified catalog. It tells you which API key variable to set. Existing providers keep their endpoint and credentials.

Use chord doctor config to check the configuration and the catalog snapshot in effect. See model configuration for custom gateways and other connection options.

Manual configuration and setup requirements

Section titled “Manual configuration and setup requirements”

The wizard accepts API URLs ending in /responses, /messages, or /chat/completions, or a Gemini version root such as /v1beta/. It recommends starter provider/model defaults from that suffix. See Configuration & Auth for endpoint formats, credentials, and model pools. To write configuration yourself, start with an example.

Setup needs a controlling terminal: redirected stdin alone does not disable the wizard as long as Chord can still open the controlling TTY, and without one Chord exits with an initialization error instead of waiting for input. For setup without an interactive terminal, see Troubleshooting.

  • Permissions & Safety: choose which actions need approval.
  • Usage: everyday controls and session recovery.
  • Model pools: configure multiple models so Chord can automatically try another model when a request fails.
  • Worktrees: work on parallel tasks in separate working directories.
  • Customization: configure multiple agents, skills, and external tools.