OutRay

Authentication

How to authenticate with the OutRay CLI

Before you can start a tunnel, you need to authenticate with your OutRay account. This ensures that your tunnels are secure and associated with your user profile.

Interactive Login

The easiest way to authenticate is using the interactive login command. Run the following command in your terminal:

outray login

This command will:

  1. Open your default web browser to the OutRay dashboard.
  2. Ask you to authorize the CLI.
  3. Once authorized, the CLI will automatically receive an authentication token and save it locally.

API Key Login

For environments where you cannot use a browser (like a remote server or CI/CD pipeline), you can authenticate using an API key.

  1. Go to your Organization Settings in the dashboard.
  2. Generate a new API Key.
  3. Use the --key flag when running commands:
outray 3000 --key outray_sk_...

Checking Status

To verify that you are logged in and see which user/organization is active, run:

outray whoami

On this page