> ## Documentation Index
> Fetch the complete documentation index at: https://ngrok.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How does ngrok work?

> Explore how each ngrok product works under the hood.

ngrok is made up of several products that route and secure traffic to your apps, APIs, and AI models, wherever they're deployed and whatever network they're on.
Each product has its own architecture and request flow.

## ngrok products

<Columns cols={2}>
  <Card title="Gateway" icon="gears" href="/docs/gateway/how-it-works" horizontal>
    How ngrok's global cloud service and agent software deliver traffic to your upstream services.
  </Card>

  <Card title="AI Gateway" icon="robot" href="/docs/ai-gateway/how-it-works" horizontal>
    How ngrok.ai routes requests, validates access keys, and handles failover across model providers.
  </Card>

  <Card title="Share Localhost" icon="laptop-code" href="/docs/guides/share-localhost/tunnels" horizontal>
    How the ngrok agent creates encrypted tunnels that deliver internet traffic to your local machine.
  </Card>
</Columns>
