01 help / version
Help and version. Start here when a flag is unfamiliar.
astray --help
astray --version
Full Astray CLI only (Rust). OAuth login, REPL, YOLO agent, skills and MCP. One-liner from your domain.
curl -fsSL https://theastraydev.online/install.sh | bash
curl / iwr go through theastraydev.online — your installer, native binary, not a shell stub.
step 1
Auto-detected; switch any time. Install blocks update below.
step 2
Preferred path: one-liner from theastraydev.online. Detects OS/arch and drops astray on PATH.
curl -fsSL https://theastraydev.online/install.sh | bash
# custom prefix
curl -fsSL https://theastraydev.online/install.sh | bash -s -- --prefix "$HOME/.local"
# force reinstall
curl -fsSL https://theastraydev.online/install.sh | bash -s -- --force
mkdir -p ~/.local/bin
curl -fsSL https://theastraydev.online/downloads/cli/latest/astray-linux-x86_64 \
-o ~/.local/bin/astray
chmod +x ~/.local/bin/astray
# PATH (once)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
astray --version
astray --doctor
astray --login
After install.sh: astray --version and astray --login. Restart the shell if PATH did not pick up.
# native macOS builds ship soon — build release from source:
# (need Rust: https://rustup.rs)
git clone https://github.com/yourusername/astray-cli.git
cd astray-cli
cargo build --release
mkdir -p ~/.local/bin
cp target/release/astray ~/.local/bin/astray
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
astray --version
astray --doctor
astray --login
# Prebuilt macOS binaries are not on the CDN yet.
# Use cargo build --release (above) or run Linux binary via Lima/UTM/Docker.
Prebuilt macOS not on CDN yet. cargo build --release or wait for aarch64/x86_64 builds.
iwr -useb https://theastraydev.online/install.ps1 | iex
$dir = "$env:LOCALAPPDATA\Astray\bin"
New-Item -ItemType Directory -Force -Path $dir | Out-Null
Invoke-WebRequest -Uri "https://theastraydev.online/downloads/cli/latest/astray-windows-x86_64.exe" `
-OutFile "$dir\astray.exe" -UseBasicParsing
# add $dir to User PATH, open a new terminal
astray --version
astray --doctor
astray --login
# inside WSL (Linux binary)
curl -fsSL https://theastraydev.online/install.sh | bashastray --version
astray --doctor
astray --login
PowerShell: iwr … | iex installs astray.exe. Open a new terminal for PATH.
step 3
Full native astray binary. Flags live in astray --help.
Help and version. Start here when a flag is unfamiliar.
astray --help
astray --version
OAuth sign-in to xAI/Grok (browser + code). Or --login-code / --login-token.
astray --login
# or paste code / token
astray --login-code
astray --login-token
Interactive REPL. -y enables YOLO agent, -m picks model, --ask is one-shot.
astray
astray -y # YOLO agent
astray -m grok-4.5 # pick model
astray --ask "whoami" # one-shot
Health-check your install and self-update the native binary from theastraydev.online.
astray --doctor
astray --update
# REPL:
/doctor
/update
List models, skills, MCP; config path; logout.
astray --list-models
astray --list-skills
astray --list-mcp
astray --config
astray --logout
verify
# installer (always via your domain)
curl -fsSL https://theastraydev.online/install.sh | less
# native linux binary
curl -fsSL https://theastraydev.online/downloads/cli/latest/astray-linux-x86_64 -o astray
chmod +x astray && ./astray --version
# version pin
curl -fsSL https://theastraydev.online/downloads/cli/latest/VERSION
Always fetch install.sh and binaries only from theastraydev.online. Pipe to less before bash if you want. ELF/PE, not a bash stub.
Need a custom workflow packaged as CLI? Send a brief.