🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

cli-remote-runner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-remote-runner

Remote terminal runner for Cli Remote project

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
3
-70%
Maintainers
1
Weekly downloads
 
Created
Source

Cli Remote Runner

Remote terminal runner for Cli Remote project. This package provides:

  • A CLI (runner)
  • A programmatic npm API (Runner, createRunner, clients/utilities)

Installation

npm install -g cli-remote-runner

Local Installation

npm install cli-remote-runner

Usage

Quick Start

runner --url https://your-broker.com --id my-runner --secret your-secret

Programmatic Usage

import { createRunner } from 'cli-remote-runner';

const runner = createRunner();
runner.start();

process.on('SIGINT', () => {
  runner.stop();
  process.exit(0);
});

Command Line Options

runner [options]

Options:
  --url <url>        Broker server URL (default: http://localhost:3000)
  --id <id>          Runner ID (default: runner-1)
  --secret <secret>  Runner secret for authentication
  --help, -h         Show help message

Configuration

You can configure the runner using:

  • Command line arguments (highest priority)
  • Environment variables
  • Configuration file

Environment Variables

Create a .env file in your project directory or .runner.env in your home directory:

BROKER_URL=https://your-broker.com
RUNNER_ID=my-runner
RUNNER_SECRET=your-secret

Configuration File Priority

  • .env in current directory
  • .runner.env in home directory

Examples

Using environment variables

export BROKER_URL=https://broker.example.com
export RUNNER_ID=my-runner
export RUNNER_SECRET=my-secret
runner

Using configuration file

Create .runner.env in your home directory:

BROKER_URL=https://broker.example.com
RUNNER_ID=my-runner
RUNNER_SECRET=my-secret

Then simply run:

runner

Override with command line

runner --url https://another-broker.com --id another-runner

Requirements

  • Node.js >= 16.0.0
  • A running broker server

Exports

Package root exports:

  • Runner, createRunner
  • loadConfig, SocketClient, RunnerClient
  • PtyManager, PairingCodeGenerator
  • logger, Logger, LogLevel

License

MIT

Keywords

claude

FAQs

Package last updated on 25 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts