Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@cmdop/node

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cmdop/node

CMDOP SDK for Node.js - Server-side agent interaction via gRPC

latest
Source
npmnpm
Version
2026.3.1800
Version published
Weekly downloads
187
-19.74%
Maintainers
1
Weekly downloads
 
Created
Source

@cmdop/node

@cmdop/node

Node.js SDK for CMDOP — terminal streaming, file operations, AI agents over gRPC.

Install

npm install @cmdop/node

Requires: Node.js >= 18.0.0

Quick Start

import { CMDOPClient } from '@cmdop/node';

// Local agent (auto-discover)
const client = CMDOPClient.local();

// Remote via cloud relay
const client = CMDOPClient.remote('cmdop_live_xxx');

// Route to a machine, then use any service
await client.terminal.setMachine('my-server');
await client.terminal.sendInput('ls -la\n');

const { output } = await client.terminal.execute('echo hello');
console.log(output);

Services

ServiceDescription
client.terminalSessions, I/O, streaming, attach (SSH-like)
client.filesRead, write, list, search, archive remote files
client.agentRun AI agents (one-shot, streaming, structured output)
client.extractStructured data extraction via LLM
client.skillsList, show, run installed skills
client.downloadDownload remote files or URLs to local disk

Attach with Password

const attach = client.terminal.attach(sessionId, { password: 'secret' });
attach.on((event) => {
  if (event.type === 'output') process.stdout.write(event.data);
});
await attach.connect();

Password can also be set via CMDOP_AGENT_PASSWORD env var.

SSH Connect

import { CMDOPClient, sshConnect } from '@cmdop/node';

const client = CMDOPClient.remote('cmdop_live_xxx');
await sshConnect({ client, hostname: 'my-server' });

Documentation

See docs/ for detailed guides:

  • Terminal — sessions, I/O, streaming, attach, password auth
  • Files — file operations
  • Agent — AI agent execution
  • Extract — structured data extraction
  • Skills — skill management
  • Download — file downloads
  • Transport — local/remote transports, config, env vars
  • Errors — error types and handling

License

MIT

Keywords

cmdop

FAQs

Package last updated on 18 Mar 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