Skip to content
/ cli Public

RelayPlane CLI - AI model routing, cost estimation, and diagnostics

Notifications You must be signed in to change notification settings

RelayPlane/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@relayplane/cli

Command-line interface for RelayPlane - AI model routing, cost estimation, and diagnostics.

npm version License: MIT

Install

npm install -g @relayplane/cli

Or use npx:

npx @relayplane/cli <command>

Commands

relay login       # Authenticate with RelayPlane Cloud (device OAuth)
relay logout      # Clear credentials and disconnect
relay status      # Show CLI status and cloud connection
relay workflows   # List all workflows in current project
relay sync        # Sync local workflows with RelayPlane Cloud
relay dashboard   # Open the cloud dashboard in browser

Quick Start

1. Login to RelayPlane Cloud

relay login

This opens a browser for device authentication. Once authorized, your CLI is connected to RelayPlane Cloud.

2. Check status

relay status

Shows your connection status, authenticated user, and project info.

3. Sync workflows

relay sync

Discovers local workflow files and syncs them with the cloud for monitoring and analytics.

4. View dashboard

relay dashboard

Opens the RelayPlane dashboard in your browser to view runs, costs, and analytics.

Configuration

The CLI stores configuration at ~/.relayplane/:

  • config.json - User preferences and settings
  • credentials.json - Authentication tokens (keep private!)

Environment Variables

Variable Description
RELAY_API_HOST API host (default: https://api.relayplane.com)
RELAY_TELEMETRY Enable/disable telemetry (true/false)

Programmatic Usage

import { getConfig, saveConfig } from '@relayplane/cli';

// Read current config
const config = await getConfig();
console.log(config.apiHost);

// Update config
await saveConfig({ ...config, telemetry: false });

Related Packages

Links

License

MIT

About

RelayPlane CLI - AI model routing, cost estimation, and diagnostics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors