Skip to main content

Installing

Three install paths. Pick whichever fits your machine — all three produce the same declaragent binary on your $PATH.

curl -sSL https://get.declaragent.dev | sh

The installer:

  1. Detects (os, arch) — Linux x64, Linux arm64, macOS x64, macOS arm64.
  2. Downloads the matching tarball + .sha256 from the GitHub release.
  3. Verifies the checksum.
  4. Extracts declaragent into $HOME/.local/bin (overridable via DECLARAGENT_PREFIX).

Environment knobs:

VariableDefaultPurpose
DECLARAGENT_VERSIONlatestPin to a tag. Example: v1.0.2.
DECLARAGENT_PREFIX$HOME/.localInstall prefix. Binary lands at $PREFIX/bin/declaragent.
DECLARAGENT_BASE_URLGitHub releasesRelease mirror. Used by CI smoke tests against staging.
DECLARAGENT_NO_CHECKSUMunsetSkip the SHA-256 verify. Never advised.

The installer source lives at scripts/install.sh in the repo.

Verify

declaragent --version
# declaragent 1.0.0

If the binary is on your $PATH and prints a version, you're done. Next: your first agent.

Troubleshooting

  • If the postinstall failed (npm path), re-run it by hand:
    cd $(npm root -g)/@declaragent/cli
    node bin/postinstall.js
  • If the curl installer bailed with a checksum mismatch, retry — transient CDN corruption is the usual culprit. Don't set DECLARAGENT_NO_CHECKSUM.
  • See Troubleshooting → my install failed for the flowchart.

[placeholder — landing 2026-Q2] Windows-native binary is a post-v1.0 concern. For now, run under WSL2 + the npm-global path.