@agent-link/agent

中文文档
0.1.347发布于 2026/11/03MITTypeScriptES Module近 30 天下载 4264

AgentLink local agent CLI

原始使用文档
文档目录7 节
  1. Install
  2. Quick Start
  3. Usage
  4. Configuration
  5. How it works
  6. Requirements
  7. Related

msclaude Client

npm License: MIT

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

msclaude 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

# Stop agent
agentlink-client stop

# Check status
agentlink-client status

# Upgrade to latest version
agentlink-client upgrade

# Upgrade to the dogfood beta channel
agentlink-client upgrade --dogfood

# 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, password. Config is stored in ~/.agentlink/config.json.

How it works

Browser ↔ msclaude Server ↔ msclaude 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

版本与发布记录

@agent-link/agent 共发布 341 个版本,首次发布于 2026/02/28;过去 12 个月发布了 341 个版本。

版本发布日期距今
0.1.347latest2026/11/034 天前
0.1.3462026/10/299 天前
0.1.3452026/10/299 天前
0.1.3442026/10/2612 天前
0.1.3432026/10/2018 天前
0.1.3422026/10/2018 天前

其他发布通道:beta → 0.1.308。

关于 @agent-link/agent 的常见问题

@agent-link/agent 是什么?

AgentLink local agent CLI

如何安装 @agent-link/agent?

在项目目录运行 npm install @agent-link/agent,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 agentlink-client,可以用 npx agentlink-client 直接运行。

@agent-link/agent 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@agent-link/agent 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agent-link/agent 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@agent-link/agent 可以商用吗?

@agent-link/agent 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@agent-link/agent 的下载量有多少?

根据 npm 官方下载统计,@agent-link/agent 在 2026/10/05 – 2026/11/03 这 30 天内被下载 4,264 次,日均约 142 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agent-link/agent 还在维护吗?

最新版本 0.1.347 发布于 2026/11/03(4 天前);至今共发布 341 个版本,其中过去 12 个月发布了 341 个;首次发布于 2026/02/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。