Instead of running separateDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/outray-tunnel/outray/llms.txt
Use this file to discover all available pages before exploring further.
outray http, outray tcp, or outray udp commands, you can declare all your tunnels in a TOML config file and start them with a single command.
Default location
OutRay looks for a config file atoutray/config.toml relative to your current working directory:
Getting started
Create the config file
Create
outray/config.toml in your project directory. Use the example below as a starting point.Validate the config
Check your config for errors before starting:OutRay will print each tunnel it found and flag any invalid fields.
Full example
This is the completeconfig.toml.example from the OutRay CLI:
[global] section
The [global] section sets defaults that apply to all tunnels.
| Option | Type | Required | Description |
|---|---|---|---|
org | string | No | Default organization slug. Individual tunnels can override this. |
server_url | string | No | Custom OutRay server WebSocket URL (must start with ws:// or wss://). Defaults to wss://api.outray.dev/. |
[tunnel.<name>] sections
Each tunnel is defined as [tunnel.<name>] where <name> is an identifier of your choosing (e.g. web, api, postgres).
| Option | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | Tunnel protocol: http, tcp, or udp. |
local_port | number | Yes | Local port to forward traffic to. Must be between 1 and 65535. |
local_host | string | No | Local hostname to forward to. Defaults to localhost. |
subdomain | string | No | Requested subdomain for HTTP tunnels (e.g. my-app → my-app.tunnel.outray.app). Not valid for TCP/UDP. |
custom_domain | string | No | Custom domain for HTTP tunnels. Must be configured in your OutRay dashboard. Not valid for TCP/UDP. |
remote_port | number | No | Requested remote port for TCP/UDP tunnels. Randomly assigned if omitted. Not valid for HTTP. |
org | string | No | Organization slug for this tunnel. Overrides the [global] org. |
subdomain and custom_domain are only valid for http tunnels. remote_port is only valid for tcp and udp tunnels. OutRay will reject the config if you mix these.Validating the config
Runoutray validate-config at any time to check your config without starting any tunnels:
Stopping all tunnels
PressCtrl+C to stop all tunnels started from the config file. OutRay shuts down each tunnel gracefully.