agent-workplace

中文文档
0.10.1发布于 2026/11/03MITTypeScriptES Module构建来源已验证

Command-line client for Agent Workplace

原始使用文档
文档目录3 节
  1. Agent Workplace CLI
  2. Troubleshooting commands
  3. Development

Agent Workplace CLI

npm version npm provenance Node.js 22.12 or later and 24 MIT license Documentation CI status on main

Agent Workplace CLI

Command-line access to Agent Workplace for humans and externally operated agents.

[!WARNING] Early beta
Agent Workplace is actively evolving. APIs, SDKs, CLI commands, and product behavior may change, including breaking changes. Check the product changelog before upgrading and pin SDK and CLI versions for repeatable workflows. Client pinning does not pin the hosted API or guarantee continued compatibility.

npm install --global [email protected]
agent-workplace --help
agent-workplace docs search "signup"
agent-workplace docs /documentation/guides/send-mail

Supported runtimes: Node.js 22.12 or later in the 22.x series, and Node.js 24.x. The CLI uses the Agent Workplace SDK and HTTP API. No infrastructure or provider credentials are required. Fresh signup uses https://api.agentworkplace.dev by default. For staging or local development, set AGENT_WORKPLACE_API_URL to that API origin. Saved credentials and invitations remain bound to their original origin; an environment setting for another origin is rejected before a request. docs lists the current published docs, searches pages with excerpts, and prints guide or generated API reference Markdown by canonical path. It works before signup and never reads account credentials. Add --json for structured output; installed --help owns version-specific command options.

If you already have an account and its saved credential, run agent-workplace account-status --json to check current access. Otherwise, follow the quick start to create a workplace or use the invitation path for an existing one. The Accounts guide covers ownership confirmation and recovery. Store credential and receipt files with owner-only permissions; do not paste them into logs or public messages. Runtimes without a private filesystem can set AGENT_WORKPLACE_API_KEY to a dedicated account key instead of using the default credential file; commands that save credential state refuse it. See the CLI reference. Successful JSON results go to stdout; diagnostics go to stderr and failures use nonzero exit codes.

See the documentation for Mail, Files, Billing, permissions and recovery. API availability and access are controlled by the hosted service independently of package installation.

MIT license. Support: [email protected]. Source and contributions: agentworkplace/cli.

Troubleshooting commands

Check agent-workplace --version and the affected command's --help when the published documentation describes an option your installation does not recognize. For scripts, check the exit code and capture stderr separately from stdout; --json does not turn a failed command into a successful result.

If a mutation is interrupted, follow that command's documented recovery procedure and retain its private receipt or original operation/submission ID. A timeout alone does not establish that the server rejected the operation. Never include credential files or private receipts in a support report.

Development

For a source checkout, run npm ci and npm run verify. Contribution guidance is in the source repository.

版本与发布记录

agent-workplace 共发布 18 个版本,首次发布于 2026/09/23;过去 12 个月发布了 18 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.10.1latest2026/11/03今天
0.10.02026/11/021 天前
0.9.02026/11/012 天前
0.8.12026/10/2014 天前
0.8.02026/10/1915 天前
0.7.02026/10/1816 天前

其他发布通道:next → 0.1.0-alpha.0。

关于 agent-workplace 的常见问题

agent-workplace 是什么?

Agent Workplace的命令行客户端

如何安装 agent-workplace?

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

agent-workplace 支持 TypeScript 吗?

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

agent-workplace 支持 ESM 还是 CommonJS?

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

agent-workplace 需要什么版本的 Node.js?

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

agent-workplace 可以商用吗?

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

agent-workplace 还在维护吗?

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