For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Deploy with Docker
Overview of how to deploy agentgateway with Docker.
To run agentgateway as a Docker container, agentgateway publishes official Docker images at cr.agentgateway.dev/agentgateway.
Docker
To run agentgateway with Docker, you may either mount your configuration file directly, or mount a directory and create the configuration in the UI:
mkdir agentgateway-config
docker run \
--user "$(id -u):$(id -g)" \
-v ./agentgateway-config:/config \
-p 3000:3000 -p 4000:4000 -p 127.0.0.1:15000:15000 \
cr.agentgateway.dev/agentgateway:v1.3.0When run in this mode, a configuration file will automatically be created, setting up logging and exposing the admin UI.
The user is customized to run as the current user to ensure the container can read and write the configuration.
If you want to provide an explicit file, you can also do so. By default, the agentgateway admin UI listens on localhost, which is not exposed outside of the container;
the ADMIN_ADDR is set below to expose it and is optional.
docker run \
--user "$(id -u):$(id -g)" \
-v ./config.yaml:/config.yaml \
-p 3000:3000 -p 4000:4000 -p 127.0.0.1:15000:15000 \
-e ADMIN_ADDR=0.0.0.0:15000 \
cr.agentgateway.dev/agentgateway:v1.3.0 \
-f /config.yamlOpen http://localhost:15000/ui to get started!
Docker Compose
To run agentgateway in Docker Compose, follow the same approach as above. Create a directory for the configuration and start the service.
mkdir agentgateway-config
docker compose upservices:
agentgateway:
container_name: agentgateway
restart: unless-stopped
image: cr.agentgateway.dev/agentgateway:v1.3.0
# Replace with your user and group IDs, such as the output of: id -u && id -g
user: "1000:1000"
ports:
- "3000:3000"
- "4000:4000"
- "127.0.0.1:15000:15000"
volumes:
- ./agentgateway-config:/configOpen http://localhost:15000/ui to get started!