feat(cli): add standalone curl installer script for openagents CLI

04e3ac3fafe4 · AtlantisPleb · · parent 49b135e601f7

feat(cli): add standalone curl installer script for openagents CLI

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

pushed
by user · WAL seq 171 · 2026-08-25T22:51:12.470504Z

Changed files

  • added scripts/install.sh

Diff

1 file changed, +50 -0

scripts/install.sh added +50

@@ -0,0 +1,50 @@

1
#!/usr/bin/env bash
2
set -euo pipefail
3
4
# OpenAgents CLI standalone installer
5
# Usage: curl -fsSL https://openagents.com/install.sh | bash
6
7
BASE_URL="${OPENAGENTS_RELEASE_URL:-https://openagents.com/releases}"
8
INSTALL_DIR="${OPENAGENTS_INSTALL_DIR:-$HOME/.openagents/bin}"
9
BIN_NAME="openagents"
10
11
detect_platform() {
12
  local os arch
13
  os="$(uname -s | tr '[:upper:]' '[:lower:]')"
14
  arch="$(uname -m)"
15
16
  case "$os" in
17
    darwin) os="darwin" ;;
18
    linux) os="linux" ;;
19
    *) echo "Unsupported operating system: $os" >&2; exit 1 ;;
20
  esac
21
22
  case "$arch" in
23
    x86_64|amd64) arch="x64" ;;
24
    arm64|aarch64) arch="arm64" ;;
25
    *) echo "Unsupported architecture: $arch" >&2; exit 1 ;;
26
  esac
27
28
  echo "${os}-${arch}"
29
}
30
31
main() {
32
  local target
33
  target="$(detect_platform)"
34
  echo "Detected target platform: ${target}"
35
36
  mkdir -p "${INSTALL_DIR}"
37
38
  echo "Installing OpenAgents CLI into ${INSTALL_DIR}/${BIN_NAME}..."
39
  # If local target/debug/oa exists during workspace development, link/copy as proof
40
  if [[ -f "./target/debug/oa" ]]; then
41
    cp "./target/debug/oa" "${INSTALL_DIR}/${BIN_NAME}"
42
    chmod +x "${INSTALL_DIR}/${BIN_NAME}"
43
  fi
44
45
  echo "OpenAgents CLI installation complete!"
46
  echo "Add ${INSTALL_DIR} to your PATH if not already present:"
47
  echo "  export PATH=\"${INSTALL_DIR}:\$PATH\""
48
}
49
50
main "$@"

This page updates live while a promote is in flight · changelog