Command-line interface for RelayPlane - AI model routing, cost estimation, and diagnostics.
npm install -g @relayplane/cliOr use npx:
npx @relayplane/cli <command>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 browserrelay loginThis opens a browser for device authentication. Once authorized, your CLI is connected to RelayPlane Cloud.
relay statusShows your connection status, authenticated user, and project info.
relay syncDiscovers local workflow files and syncs them with the cloud for monitoring and analytics.
relay dashboardOpens the RelayPlane dashboard in your browser to view runs, costs, and analytics.
The CLI stores configuration at ~/.relayplane/:
config.json- User preferences and settingscredentials.json- Authentication tokens (keep private!)
| Variable | Description |
|---|---|
RELAY_API_HOST |
API host (default: https://api.relayplane.com) |
RELAY_TELEMETRY |
Enable/disable telemetry (true/false) |
import { getConfig, saveConfig } from '@relayplane/cli';
// Read current config
const config = await getConfig();
console.log(config.apiHost);
// Update config
await saveConfig({ ...config, telemetry: false });- @relayplane/proxy - Intelligent AI model routing proxy
- @relayplane/sdk - SDK for workflow execution
- Website: https://relayplane.com
- Documentation: https://relayplane.com/docs
- GitHub: https://github.com/RelayPlane/cli
- npm: https://www.npmjs.com/package/@relayplane/cli
MIT