Skip to main content

Authentication

Manage your Runtime authentication and credentials.

login

Authenticate with the Runtime API.

Options

Examples

Getting an API Key

  1. Go to app.runtm.com
  2. Sign in or create an account
  3. Navigate to API Keys
  4. Create a new API key
  5. Copy and paste into runtm login
API keys are shown only once. Save them securely.

logout

Remove saved API credentials.

Options

Examples

If you’re using RUNTM_API_KEY environment variable, you’ll need to unset it manually:

doctor

Check CLI setup and diagnose issues.

Output

The doctor command shows:
  • CLI version
  • API URL (default or custom)
  • Auth storage (keychain, file, or env)
  • Auth status (authenticated user email)
  • Credentials (file permissions if using file storage)
  • Connectivity (API reachability and latency)

Example Output

Troubleshooting with Doctor

Run runtm login to authenticate with your API key.
Your token may have been revoked. Create a new one at app.runtm.com.
Check your internet connection. If self-hosting, verify the API URL:
Fix file permissions:

version

Show CLI version.
Output:

Token Storage

The CLI stores tokens securely based on your platform:

macOS

Uses the system Keychain. You can view stored credentials in Keychain Access.app under “runtm-api-key”.

Linux

Stores in ~/.runtm/credentials with restricted permissions (mode 600). Only your user can read the file.

Environment Variable

You can set RUNTM_API_KEY to avoid storing credentials:
This takes precedence over stored credentials.

Self-Hosted Authentication

When using a self-hosted Runtime instance:
See Self-Hosting for complete setup instructions.