Authentication
Manage your Runtime authentication and credentials.login
Authenticate with the Runtime API.Options
Examples
Getting an API Key
- Go to app.runtm.com
- Sign in or create an account
- Navigate to API Keys
- Create a new API key
- Copy and paste into
runtm login
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
Auth status shows '✗ Not authenticated'
Auth status shows '✗ Not authenticated'
Run
runtm login to authenticate with your API key.Auth status shows '✗ Token invalid or expired'
Auth status shows '✗ Token invalid or expired'
Your token may have been revoked. Create a new one at app.runtm.com.
Connectivity shows '✗ Could not connect to API'
Connectivity shows '✗ Could not connect to API'
Check your internet connection. If self-hosting, verify the API URL:
Credentials shows permission warning
Credentials shows permission warning
Fix file permissions:
version
Show CLI version.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 setRUNTM_API_KEY to avoid storing credentials: