← 首页
v1.2.0 CLI install · your domain · no fluff

Astray CLI

仅完整 Astray CLI(Rust)。OAuth、REPL、YOLO、skills、MCP。

one-liner · theastraydev.online
curl -fsSL https://theastraydev.online/install.sh | bash

curl / iwr 走 theastraydev.online — 自己的安装脚本与二进制。

步骤 1

选择你的系统

自动检测;可随时切换。下方安装说明会更新。

步骤 2

正确安装 Astray CLI

推荐:从 theastraydev.online 运行 one-liner。自动识别系统/架构并放入 PATH。

01复制 one-liner
02在终端执行
03检查:astray --version · astray --doctor

环境要求

  • Linux x86_64 或 aarch64
  • curl(或 wget)与 bash
  • 可写 ~/.local/bin(或 --prefix)

快速安装(经域名)

bash · curl via theastraydev.online
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

手动安装

bash · manual
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

install.sh 后运行 astray --version 与 astray doctor。PATH 未生效则重开 shell。

步骤 3

使用 Astray CLI

完整原生 astray。详见 astray --help。

01 help / version

帮助与版本。不熟悉命令时从这里开始。

shell
astray --help
astray --version

02 login

OAuth 登录 xAI/Grok(浏览器 + code)。

shell
astray --login
# or paste code / token
astray --login-code
astray --login-token

03 REPL

交互 REPL。-y YOLO,-m 模型,--ask 单次。

shell
astray
astray -y                 # YOLO agent
astray -m grok-4.5        # pick model
astray --ask "whoami"     # one-shot

04 doctor · update

环境检查与从 theastraydev.online 自更新原生二进制。

shell
astray --doctor
astray --update
# REPL:
/doctor
/update

05 models / skills / config

模型 / skills / MCP / config / logout。

shell
astray --list-models
astray --list-skills
astray --list-mcp
astray --config
astray --logout

校验

校验安装脚本与二进制

checksum / source
# 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

请只从 theastraydev.online 获取 install.sh 与二进制。需要时可先 less 再 bash。

需要定制 CLI 工作流?发 brief。

Astray CLI 切掉噪音 · 交付二进制
使用