Install Argy Code
Install, authenticate, update and uninstall Argy Code on macOS, Linux and Windows using the official install scripts.
Argy Code works on your codebase straight from the terminal. It ships as a single binary, argy, which opens a terminal user interface (TUI) and exposes a scriptable CLI. This page covers installation, first sign-in, updates and removal.
Every model request goes through the Argy LLM Gateway, so there are no provider keys to configure in Argy Code. To see where Argy Code fits in the platform, read the platform overview.
Prerequisites
| System | Architectures | Tools the script needs |
|---|---|---|
| macOS | Intel/AMD 64-bit, ARM 64-bit | curl, unzip |
| Linux | Intel/AMD 64-bit, ARM 64-bit | curl, tar |
| Windows | Intel/AMD 64-bit (ARM falls back to the Intel/AMD binary) | PowerShell |
You also need an Argy account to sign in (see Getting Started).
Install on macOS and Linux
curl -fsSL https://argy.cloud/install | sh
The script:
- detects the OS (
linuxordarwin) and architecture (Intel/AMD or ARM 64-bit); - resolves the latest published version unless
ARGY_VERSIONis set; - downloads the matching archive from the public Argy Code releases and extracts it to a temporary directory;
- on macOS, removes the quarantine attribute and applies an ad hoc signature to the binary;
- atomically replaces the binary at
~/.argy/bin/argy, so a runningargydoes not cause a "Text file busy" error; - adds the install directory to
PATHin~/.zshrcor~/.bashrcwhen it is missing. For other shells, it prints theexport PATH=...line to add yourself.
Open a new terminal (or run source ~/.zshrc) to pick up the new PATH.
Install on Windows
In PowerShell:
irm https://argy.cloud/install.ps1 | iex
The script downloads argy.exe to %LOCALAPPDATA%\argy\bin and adds that folder to the user PATH. If argy.exe is locked because it is running, the swap is scheduled and completed once the process exits. Restart your terminal after the first install.
Install script options
Both scripts read the same environment variables:
| Variable | Type | Default | Description |
|---|---|---|---|
ARGY_VERSION | string | latest release | Version to install, without the v prefix (e.g. 0.1.48). |
ARGY_INSTALL_DIR | path | ~/.argy/bin (macOS/Linux), %LOCALAPPDATA%\argy\bin (Windows) | Destination directory for the binary. |
Pin a version and a custom directory:
curl -fsSL https://argy.cloud/install | ARGY_VERSION=0.1.48 ARGY_INSTALL_DIR="$HOME/bin" sh
$env:ARGY_VERSION = "0.1.48"; irm https://argy.cloud/install.ps1 | iex
Verify the installation
argy --version
argy --help
argy doctor
argy doctor prints a diagnostic of your local environment. Every command is documented in the CLI reference.
Sign in
argy auth login
Sign-in uses a device code by default: Argy Code prints a code and a verification URL and offers to open your browser. To use a personal access token (PAT) instead:
argy auth login --pat
Then check your sign-in state, credits and quota:
argy auth status
Inside the TUI, /connect (alias /login) starts the same flow (see TUI slash commands).
Non-interactive environments
In CI or containers, provide the PAT through the ARGY_PAT environment variable and never hard-code it in a script:
# ARGY_PAT is injected into the environment by your secrets manager
argy run "Summarize the changes on the current branch"
PATs are managed in Argy Portal (see Settings and identity); the authentication model is covered in IAM and authentication. Scripted usage is described in Automation.
Credential storage
Credentials are kept encrypted, with a key that lives in the operating system's native secret store; files are written with owner-only permissions. See Permissions and security.
Update
argy upgrade # latest version
argy upgrade 0.1.48 # specific version ("0.1.48" or "v0.1.48")
Argy Code detects how it was installed. If detection fails, pass --method (-m); accepted values are curl, npm, pnpm, bun, brew, scoop and winget. For installs made with the scripts on this page, use curl.
Automatic updates are controlled by the autoupdate key in argy.json: true, false or "notify" (shows a banner when a new version is available without installing it). See Configuration.
Uninstall
argy uninstall --dry-run # show what would be removed
argy uninstall
| Option | Type | Default | Description |
|---|---|---|---|
-c, --keep-config | boolean | false | Keep configuration files. |
-d, --keep-data | boolean | false | Keep session data and snapshots. |
--dry-run | boolean | false | Show what would be removed without removing it. |
-f, --force | boolean | false | Skip confirmation prompts. |
Common errors
| Message | Cause | Fix |
|---|---|---|
need 'curl' (command not found) | A tool required by the script is missing. | Install curl (plus tar on Linux, unzip on macOS). |
unsupported OS / unsupported architecture | Platform not covered by the script. | Use macOS, Linux or Windows on 64-bit hardware. |
download failed - check that v... exists | ARGY_VERSION does not match a release. | Unset ARGY_VERSION or fix the version. |
argy: command not found after install | The current terminal has not reloaded PATH. | Open a new terminal or add the install directory to PATH. |