Public command-line client for APIMux capabilities, plus the paired skill docs used by agents.
Install the latest release:
curl -fsSL https://github.com/reorc/apimux-cli/releases/latest/download/install.sh | shInstall a specific version:
curl -fsSL https://github.com/reorc/apimux-cli/releases/latest/download/install.sh | \
APIMUX_VERSION=v1.0.0 shThe installer:
- detects
darwin/linuxandamd64/arm64 - downloads the matching
.tar.gz - verifies SHA-256 checksums
- installs
apimuxto~/.local/bin/apimux - runs
apimux versionafter install
If you publish release artifacts somewhere else, override:
APIMUX_RELEASE_BASE_URL=https://github.com/reorc/apimux-cli/releases/download \
APIMUX_RELEASE_MANIFEST_URL=https://github.com/reorc/apimux-cli/releases/latest/download/latest.json \
curl -fsSL https://github.com/reorc/apimux-cli/releases/latest/download/install.sh | shAuthorize the CLI:
apimux auth loginThe CLI defaults to the production APIMux service at https://apimux.io/api/core.
On SSH/headless servers, print the authorization URL instead of opening a browser:
apimux auth login --no-browserauth login also auto-detects common headless environments such as SSH, CI, NO_BROWSER=1, and Linux without $DISPLAY.
For CI or manual API key setup, use apimux config set --api-key .... Override the service URL only for local development or private deployments:
APIMUX_BASE_URL=http://127.0.0.1:8081 apimux schema capabilities
apimux --base-url http://127.0.0.1:8081 schema capabilities
apimux config set --base-url http://127.0.0.1:8081Run a capability:
apimux amazon get_product --asin B0CM5JV26D --market US
apimux google_trends get_interest_over_time --q "AI" --geo USDiscover available capabilities:
apimux schema capabilities
apimux schema show amazon.get_product
apimux schema listCheck for updates or upgrade direct binary installs:
apimux upgrade --check
apimux upgradeIf your apimux executable is managed by a package manager or is installed as a symlink, use that package manager or rerun the install script instead.
Useful flags:
--debug: print the sanitized response envelope--output compact: default compact agent-facing body--output pretty: compact body with indented JSON--output data: rawdatapayload without projection--output data-pretty: rawdatapayload with indented JSON
Shell completion:
# bash
apimux completion bash > ~/.local/share/bash-completion/completions/apimux
# zsh
apimux completion zsh > "${fpath[1]}/_apimux"
# fish
apimux completion fish > ~/.config/fish/completions/apimux.fish
# PowerShell
apimux completion powershell | Out-String | Invoke-Expressioncmd/apimux: entrypointinternal/: CLI internals, projection layer, config, update checksskills/apimux-*: paired capability docs for agent usagescripts/build-apimux-cli.sh: release artifact builderscripts/install.sh: binary installerdocs/: install, release, and development notes
Branch model:
develop: integration branch for day-to-day workmain: release branch; keep it aligned with the latest stable tag- release tags: create only from commits already contained in
main
Build a local binary:
make build
./dist/apimux versionRun tests:
make testBuild snapshot release archives and checksums:
make release-buildVersion metadata is injected via git tags and commit info. The current stable release line starts at v1.0.0.
The skills/apimux-* directories ship alongside the CLI because both surfaces are versioned together. If you update a capability contract, update the corresponding skill doc in the same change.