Before you can open a tunnel, you need to authenticate the CLI with your OutRay account.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.
Logging in
Run the login command
Authenticate in the browser
Your default browser opens to the OutRay dashboard. Sign in with your account and authorize the CLI. Once you approve, the browser confirms the login and you can close the tab.
Select an organization
After authenticating, the CLI fetches the organizations you belong to and prompts you to select one:The selected organization becomes your active context for all tunnel commands.
Checking your authentication status
To see which account and organization are currently active, run:Switching organizations
To switch to a different organization interactively:Token auto-refresh
OutRay uses a short-lived organization token to authenticate tunnel connections. When the token expires, the CLI silently re-exchanges it using your stored user token — you will not be prompted to log in again:Using an API key instead
For environments without a browser — such as CI/CD pipelines or remote servers — you can bypass the OAuth flow by passing an API key directly with the--key flag:
API keys are scoped to a single organization. They do not require
outray login and do not refresh automatically.