AgentRail has two components you might install: the CLI (used for setup, server management, and agent operations) and the SDK (used when you are writing an agent harness or workflow runner in TypeScript or Python). This page covers all three install paths and the environment variables you can set to configure provider connections.Documentation Index
Fetch the complete documentation index at: https://agentrail.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
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
Environment variables
You can configure AgentRail’s provider connections and server behavior through environment variables. These are useful for CI pipelines, non-interactive automation, or Docker-based deployments.| Variable | Description |
|---|---|
GITHUB_TOKEN | Personal access token for GitHub. Enables PR submission and GitHub Actions CI status. |
CIRCLECI_TOKEN | API token for CircleCI. Enables CI status for tasks using CircleCI. |
LINEAR_API_KEY | API key for Linear. Enables issue import and sync. |
AGENTRAIL_BASE_URL | Base URL of the AgentRail API, used by agents and the SDK. Defaults to http://127.0.0.1:3000. |
AGENTRAIL_API_KEY | Agent API key for authenticating requests. Created during agentrail agent create. |
.png?fit=max&auto=format&n=TNCV8lxzL1ij3U4N&q=85&s=7345b71aa1c450c74f35b67c2655fc43)