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

# tunnel

> Expose a local server to the internet through an Alpic tunnel

Open a tunnel from your local machine so your MCP server is reachable at a public `https` URL. The tunnel stays open until you press Ctrl+C.

## Usage

```bash theme={null}
alpic tunnel --port 3000
```

Requests to the assigned URL (e.g. `https://superb-marmot-fondue-420.alpic.dev`) are forwarded to `http://localhost:3000` on your machine. Your subdomain is stable and unique to your account — you'll get the same URL every time.

## Playground

Test your local MCP server *in situ* using the [playground](https://docs.alpic.ai/testing/playground.md) — a real LLM chat interface. Access it at `/try` on your tunnel URL (e.g. `https://superb-marmot-fondue-420.alpic.dev/try`).

## Options

| Flag | Description |
| - | - |
| `--port` | Local port to tunnel |

> [!NOTE]
>
> Team API keys are not supported for this command. User OAuth authentication is required.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.