@agent-sh/agent-workspace-linux

中文文档
0.6.4发布于 2026/11/07MIT零依赖构建来源已验证近 30 天下载 1704

Background Linux desktops for AI agents: the MCP server binary wrapper.

原始使用文档
文档目录4 节
  1. Installation
  2. Usage
  3. Source and full documentation
  4. License

@agent-sh/agent-workspace-linux

npm distribution wrapper for the agent-workspace-linux MCP server: background Linux desktops for AI agents.

Installation

npm install -g @agent-sh/agent-workspace-linux

The installer automatically downloads the prebuilt binary for your architecture from the matching GitHub Release, then verifies the required <asset>.sha256 sidecar before installing it.

Linux only. x64 (x86_64) and arm64 (aarch64) are supported.

Note — --ignore-scripts: package managers that skip lifecycle scripts (e.g. pnpm with ignore-scripts=true, some CI setups) will not download the binary automatically. Run the postinstall manually to recover:

node $(npm root -g)/@agent-sh/agent-workspace-linux/scripts/postinstall.js

Release downloads accept absolute or relative HTTPS redirect locations, with a maximum of five redirect hops. Malformed URLs and non-HTTPS redirect targets fail the download; redirects do not bypass the required checksum verification.

Each binary or checksum download has a 60-second inactivity timeout while waiting for response headers or body progress. The timer resets whenever bytes arrive, so a slow transfer that is still making progress can continue. A separate 30-minute hard ceiling only bounds pathological transfers. Timeout failures close the active output and remove its partial file before a retry can begin.

Checksum sidecars must contain a valid 64-hex-digit SHA-256 digest and name the expected release asset. Space and tab separators are accepted. A bare digest or an entry naming a different asset is rejected.

The postinstall script applies executable permissions to the verified staging file before replacing an installed binary. If permission preparation fails, it reports failure and leaves the previously installed binary untouched.

Each install uses its own uniquely created staging directory beside the binary. Concurrent installs do not remove or overwrite one another's downloads. Normal completion and errors clean up the attempt's own staging directory; forced termination can leave an abandoned .staging-* directory. A later install removes staging directories older than one hour and leaves newer ones, which may belong to an installer still running.

Usage

Once installed, the command is on your PATH (it stays unscoped). Start the MCP server with:

agent-workspace-linux mcp

It is an MCP server that speaks JSON-RPC over stdio. For Codex for Linux, prefer the dedicated Agent Workspaces feature page so command paths, permission rules, and reconnect/restart control stay out of the generic MCP settings page. If an older Codex install still shows this backend in generic MCP/configuration pages, remove the stale agent-workspace-linux MCP tables before reconnecting through the feature page. For other MCP clients, wire it into the client config, e.g. for Claude Code:

{
  "mcpServers": {
    "agent-workspace-linux": {
      "command": "agent-workspace-linux",
      "args": ["mcp"]
    }
  }
}

The command-line wrapper preserves the native program's exit code and terminating signal. In particular, a child terminated by SIGINT causes the wrapper to terminate by SIGINT too, rather than report exit code zero.

Source and full documentation

All source code, tool documentation, and issue tracking are at: https://github.com/agent-sh/agent-workspace-linux

License

MIT

版本与发布记录

@agent-sh/agent-workspace-linux 共发布 21 个版本,首次发布于 2026/05/27;过去 12 个月发布了 21 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.6.4latest2026/11/073 天前
0.6.32026/10/3110 天前
0.6.22026/10/2912 天前
0.6.12026/10/2812 天前
0.6.02026/10/2714 天前
0.5.12026/10/2615 天前

关于 @agent-sh/agent-workspace-linux 的常见问题

@agent-sh/agent-workspace-linux 是什么?

Background Linux desktops for AI agents: the MCP server binary wrapper.

如何安装 @agent-sh/agent-workspace-linux?

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

@agent-sh/agent-workspace-linux 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/agent-sh__agent-workspace-linux 是否存在。

@agent-sh/agent-workspace-linux 需要什么版本的 Node.js?

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

@agent-sh/agent-workspace-linux 可以商用吗?

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

@agent-sh/agent-workspace-linux 的下载量有多少?

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

@agent-sh/agent-workspace-linux 还在维护吗?

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