> ## Documentation Index
> Fetch the complete documentation index at: https://docs.staging.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](/testing/playground) — 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.</Note>
