OutRay works well in CI/CD pipelines and other automated environments. Instead of browser-based login, you authenticate with an API token that you store as a secret in your CI provider.Documentation 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.
Get an API token
Create a new token
Click New Token, give it a descriptive name (e.g.,
github-actions-staging), and confirm. The token value is shown only once — copy it immediately.Authenticate with a token
Using the environment variable
SetOUTRAY_API_KEY in the environment before running the CLI. OutRay picks it up automatically:
Using the --key flag
Pass the token directly on the command line:
Example: GitHub Actions
The following workflow snippet installs OutRay, starts a tunnel in the background, and runs tests against the public URL:Using --no-logs in CI
By default, OutRay prints a log line for every request. In CI this adds noise to your build output. Suppress it with --no-logs:
Using config.toml in CI
For consistent tunnel configuration across local development and CI, commit anoutray/config.toml file to your repository and use the --key flag for individual tunnel commands. For example:
outray start requires stored credentials from outray login. For fully automated CI environments, use individual tunnel commands (outray http, outray tcp, etc.) with the --key flag or OUTRAY_API_KEY environment variable instead.Cleaning up
Tunnels are automatically closed when the OutRay process exits. In most CI environments the process terminates naturally when the job completes, so no explicit cleanup step is needed. If you need to stop the tunnel early, sendSIGTERM or SIGINT to the process.