Skip to main content
Agentgateway is a single binary written in Rust. Choose the installation method that fits your environment.
Building from source gives you the latest code and the ability to customize the build.

Requirements

DependencyMinimum version
Rust + Cargo1.86+
npm10+
makeAny recent version
Install Rust via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install Node.js and npm via nodejs.org or your system package manager.

Clone the repository

git clone https://github.com/agentgateway/agentgateway.git
cd agentgateway

Build the UI

Agentgateway ships with a built-in admin UI. Build it first so it can be embedded into the binary:
cd ui
npm install
npm run build
cd ..

Build the binary

export CARGO_NET_GIT_FETCH_WITH_CLI=true
make build
The compiled binary is placed at:
./target/release/agentgateway
For faster incremental builds during development, use the quick-release profile:
cargo build --profile quick-release
This trades some optimization for faster compile times — suitable for development but not production.

Verify the installation

./target/release/agentgateway --version

Running Agentgateway

Once installed, start the gateway by pointing it at a config file:
./target/release/agentgateway -f config.yaml
With no config file provided, Agentgateway starts with an empty configuration and exposes only the admin interface.

Admin UI

Agentgateway includes a built-in admin UI available at:
http://localhost:15000/ui
The UI lets you inspect the running configuration, browse connected backends, and view active listeners and routes — without restarting the process.
The admin interface listens on port 15000 by default. This is separate from your proxy listener port (e.g., 3000 in the basic example). Do not expose port 15000 publicly in production.

Environment variables

VariableDescription
CARGO_NET_GIT_FETCH_WITH_CLISet to true when building from source to use the system git for fetching dependencies. Required in some restricted network environments.
RUST_LOGControls log verbosity. Example: RUST_LOG=info agentgateway -f config.yaml. Accepts error, warn, info, debug, trace.
VERSIONEmbedded at build time to set the version string reported by --version.
GIT_REVISIONEmbedded at build time alongside VERSION for traceability.

Next steps

Quickstart

Run the basic MCP proxy example end-to-end.

MCP Proxy Guide

Configure authentication, authorization, and observability for MCP.

Docker deployment

Production Docker deployment patterns and best practices.

Kubernetes deployment

Deploy Agentgateway on Kubernetes using the Gateway API.

Build docs developers (and LLMs) love