Skip to main content

Port Reference

AISIX AI Gateway listener ports are configured in startup configuration. The Quickstart and self-hosted examples use the ports below so the proxy, admin API, and etcd endpoints do not overlap.

PortUsed ByPurposeExposure
3000Proxy listenerReceives caller-facing AI API requests, such as /v1/chat/completions and /v1/models.Expose only to intended callers or the ingress tier in front of the gateway.
3001Admin listenerReceives self-hosted admin API requests that create and update dynamic resources. It can also serve health, metrics, and OpenAPI routes.Keep on loopback, a private subnet, or an admin-only network.
9090Dedicated metrics listenerOptional Prometheus scrape listener configured with observability.metrics.prometheus.addr. Managed gateway images bind this port by default.Keep private to Prometheus or your monitoring network.
2379etcd client listenerStores dynamic gateway configuration for self-hosted deployments.Keep private to AISIX and the systems that manage gateway configuration.

Configure Listener Ports

Set the proxy listener with proxy.addr:

proxy:
addr: "0.0.0.0:3000"

Set the self-hosted admin listener with admin.addr:

admin:
addr: "127.0.0.1:3001"

The proxy listener address is required in startup configuration. The admin listener defaults to 127.0.0.1:0, so self-hosted deployments must set admin.addr when they need the Admin API.

Set observability.metrics.prometheus.addr only when Prometheus should scrape metrics from a listener separate from the admin API:

observability:
metrics:
prometheus:
enabled: true
path: "/metrics"
addr: "0.0.0.0:9090"
API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2026. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation