Prerequisites
- Node.js 24 or newer — required for the CLI and the server runtime. Run
node --versionto confirm. Node.js 18 or newer is sufficient if you are using the SDK only (without the CLI or local server). - npm — comes with Node.js.
CLI installation
Global install (recommended)
Installing globally lets you runagentrail commands directly from any directory:
npx (no global install)
If you prefer not to install globally or you are running in CI, prefix any command withnpx @agentrail-core/cli:
Docker
For a server-only run without CLI-managed config, use Docker Compose:http://127.0.0.1:3000 by default.
Docker starts the AgentRail API server, but it does not run the interactive CLI setup. For a useful local setup with agent credentials, routing state, and provider connections, use the CLI-assisted path described in the quickstart instead.
SDK installation
The SDK is a client library for a running AgentRail API. Install it separately in your agent harness or application — it does not start the server or manage local config.- TypeScript
- Python
.png?fit=max&auto=format&n=TNCV8lxzL1ij3U4N&q=85&s=7345b71aa1c450c74f35b67c2655fc43)