Quickstart
Have a model API key or an account with Codex access ready. See supported accounts and APIs for access requirements.
1. Install
Section titled “1. Install”Homebrew (macOS and Linux)
Section titled “Homebrew (macOS and Linux)”With Homebrew installed, run:
brew install keakon/tap/chordHomebrew 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 updatebrew upgrade chordInstall with a script (Linux and macOS)
Section titled “Install with a script (Linux and macOS)”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 | bashThe 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 | bashDownload a binary
Section titled “Download a binary”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.
Install with Go
Section titled “Install with Go”With Go 1.27.0 or newer:
go install github.com/keakon/chord/cmd/chord@latestgo 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/chordVerify the installation
Section titled “Verify the installation”After installing with any of these methods, run:
chord --versionIf macOS blocks the downloaded binary
Section titled “If macOS blocks the downloaded binary”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/chordchmod +x /path/to/chord/path/to/chord --versionIf macOS still blocks it, add a local ad-hoc signature:
codesign --force --sign - /path/to/chordReplace /path/to/chord with the actual installed path, such as /usr/local/bin/chord.
2. First run
Section titled “2. First run”Open your project in an interactive terminal and start Chord:
cd my-projectchordIf 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.
3. Send your first task
Section titled “3. Send your first task”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 --continueThis resumes your most recent session. See Sessions to choose another session or import external history.
If requests fail
Section titled “If requests fail”If an API-key configuration cannot reach the model, exit Chord and run:
chord doctor modelsResolve authentication or connection errors before running chord again. See Troubleshooting for help.
More configuration options
Section titled “More configuration options”Configure a model from the catalog
Section titled “Configure a model from the catalog”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-solchordThe 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.
Choose your next step
Section titled “Choose your next step”- 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.