Skip to content

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

SystemArchitecturesTools the script needs
macOSIntel/AMD 64-bit, ARM 64-bitcurl, unzip
LinuxIntel/AMD 64-bit, ARM 64-bitcurl, tar
WindowsIntel/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:

  1. detects the OS (linux or darwin) and architecture (Intel/AMD or ARM 64-bit);
  2. resolves the latest published version unless ARGY_VERSION is set;
  3. downloads the matching archive from the public Argy Code releases and extracts it to a temporary directory;
  4. on macOS, removes the quarantine attribute and applies an ad hoc signature to the binary;
  5. atomically replaces the binary at ~/.argy/bin/argy, so a running argy does not cause a "Text file busy" error;
  6. adds the install directory to PATH in ~/.zshrc or ~/.bashrc when it is missing. For other shells, it prints the export 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:

VariableTypeDefaultDescription
ARGY_VERSIONstringlatest releaseVersion to install, without the v prefix (e.g. 0.1.48).
ARGY_INSTALL_DIRpath~/.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
OptionTypeDefaultDescription
-c, --keep-configbooleanfalseKeep configuration files.
-d, --keep-databooleanfalseKeep session data and snapshots.
--dry-runbooleanfalseShow what would be removed without removing it.
-f, --forcebooleanfalseSkip confirmation prompts.

Common errors

MessageCauseFix
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 architecturePlatform not covered by the script.Use macOS, Linux or Windows on 64-bit hardware.
download failed - check that v... existsARGY_VERSION does not match a release.Unset ARGY_VERSION or fix the version.
argy: command not found after installThe current terminal has not reloaded PATH.Open a new terminal or add the install directory to PATH.

See also