Skip to main content
ngrok is developer infrastructure that routes and secures traffic to your apps, APIs, and AI models. It manages connectivity between all of the tools and platforms you use to put your services online, no matter where they’re deployed or what network they’re on. ngrok’s core products are Gateway, AI Gateway, and Share Localhost. Gateway owns the connectivity primitives, and the other products integrate them.

Products

Gateway

An all-in-one cloud networking platform that secures, transforms, and routes traffic to your services. Unlike cloud provider gateways locked to their own networks, ngrok works the same in AWS, Azure, GCP, on-prem, and your customer’s networks.

AI Gateway

Route, secure, and manage traffic to any LLM—cloud or local—through one endpoint. Use OpenAI, Anthropic, and more without signing up for each provider.

Share Localhost

Expose a service running on localhost to the internet, even from behind a NAT or firewall. Skip port forwarding, DNS changes, and firewall rules entirely.

Why ngrok?

Environment independence

ngrok works everywhere, and it works the same everywhere: AWS, GCP, Azure, your on-prem data center, a Raspberry Pi, or your laptop.

Unified ingress

Collapse the reverse proxy, load balancer, API gateway, WAF, and DDoS protection into one platform with unified configuration and observability.

Production-ready sooner

Authentication, attack protection, and traffic acceleration are handled for you, so you can focus on your app instead of networking configuration.

Application-layer abstractions

Stop wrestling with CIDRs, ports, and TLS certificates. Work with application primitives like authentication and request routing instead.

Parity between dev and production

Run ngrok in local development exactly the way you run it in production, eliminating the bugs that come from environment drift.

Pay as you go

Public, predictable pricing that anyone can start with using a credit card. You pay only for what you use.

What can you do with ngrok?

Build and test

Play

Deploy and run

Deliver and connect

Gateway primitives

Gateway owns the primitives that move traffic. AI Gateway and Share Localhost build on them, so what you learn once applies wherever you use ngrok.
  • Endpoints: The URLs traffic arrives on, whether created by an agent or in the cloud.
  • Traffic Policy: Filter, match, manage, and orchestrate traffic to your endpoints.
  • Domains & TLS: Serve traffic on your own hostnames, and manage the certificates that terminate TLS.
  • Traffic observability: Capture and replay requests and responses.
  • Identity and access: Manage credentials for human users and automated processes.

How ngrok works

Each product has its own architecture and request flow.

Gateway

How ngrok’s global cloud service and agent software deliver traffic to your upstream services.

AI Gateway

How ngrok.ai routes requests, validates access keys, and handles failover across model providers.

Share Localhost

How the ngrok agent creates encrypted tunnels that deliver internet traffic to your local machine.

What’s next?