JSPM

  • Created
  • Published
  • Downloads 2257
  • Score
    100M100P100Q104992F
  • License MIT

AgentLink local agent CLI

Package Exports

  • @agent-link/agent
  • @agent-link/agent/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@agent-link/agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AgentLink Client

npm License: MIT

Local agent CLI for AgentLink — use Claude Code from any browser.

AgentLink lets you run Claude Code on your local machine and access it through a web interface. The client runs on your dev machine, connects to a relay server, and gives you a URL to open in any browser.

Install

npm install -g @agent-link/agent

Quick Start

agentlink-client start

You'll get a URL like https://msclaude.ai/s/abc123 and a QR code — open the URL in any browser to start using Claude Code.

Usage

# Start agent (foreground)
agentlink-client start

# Start agent (background)
agentlink-client start --daemon

# Custom server / working directory / name
agentlink-client start --server ws://your-server:3456 --dir /path/to/project --name MyAgent

# Password-protected session
agentlink-client start --daemon --password mysecret

# Disable auto-update in daemon mode
agentlink-client start --daemon --no-auto-update

# Stop agent
agentlink-client stop

# Check status
agentlink-client status

# Upgrade to latest version
agentlink-client upgrade

# Auto-start on boot
agentlink-client service install
agentlink-client service uninstall

Configuration

# Set default server
agentlink-client config set server ws://your-server:3456

# Set working directory
agentlink-client config set dir /path/to/project

# Set password
agentlink-client config set password mysecret

# View all config
agentlink-client config list

# Get a single value
agentlink-client config get server

Valid keys: server, dir, name, autoUpdate, password. Config is stored in ~/.agentlink/config.json.

How it works

Browser ↔ AgentLink Server ↔ AgentLink Client ↔ Claude Code
  (web)      (relay)            (your machine)     (CLI)

The client spawns Claude Code as a subprocess, streams its output through the relay server to your browser, and sends your messages back. All tool execution happens locally on your machine. Messages are encrypted end-to-end with XSalsa20-Poly1305.

Requirements