@corespeed/cs

中文文档
0.15.0发布于 2026/11/13Apache-2.0ES Module零依赖近 30 天下载 2130

The CoreSpeed CLI — sign in, create API keys, configure agents, manage connectors, tie this machine, call CoreSpeed tools from your terminal, and move files in and out of your Drive.

原始使用文档
文档目录5 节
  1. Install
  2. Quick start
  3. Environment
  4. Learn more
  5. License

cs — CoreSpeed CLI

The command-line tool for CoreSpeed: sign in through the browser, create API keys, write agent configuration, manage connectors and your organization's own MCP servers, call tools from a terminal, and move files in and out of your organization's Drive.

Install

# One-off, no install (ideal for agents / CI)
npx @corespeed/cs@latest --help

# Global install
npm install -g @corespeed/cs
cs --help

# Bun equivalents
bunx @corespeed/cs --help
bun install -g @corespeed/cs

npm installs a native cs for macOS (Apple silicon and Intel), Linux (x64 and arm64) and Windows (x64); its launcher needs Node.js >= 20 (or Bun). Other systems, such as Windows on Arm, are not supported yet. Do not install with --omit=optional.

In Windows PowerShell, type npx.cmd and cs.cmd: a plain npx or cs runs npm's .ps1 script, which Windows refuses by default ("running scripts is disabled on this system").

npx.cmd @corespeed/cs@latest --help
cs.cmd --help

Quick start

cs login                 # browser PKCE login; pick an org; stores tokens under ~/.config/cs
cs whoami                # show the current user, org, permissions and key ceiling
cs switch                # change the active org without signing in again
cs keys create my-key    # mint an sk-cs-* API key (shown once); --permission <slug> to give it one you hold
cs mcp-config            # emit MCP client config JSON for the unified /mcp surface
cs drive put ./q3.pdf reports/q3.pdf   # a local file into your Drive; get / ls / mv / rm / share too
cs tie                   # tie this machine: sign in, pick a folder to share, check it end to end

Run cs --help for the full command list (logout, keys, connectors, remote, mcp, drive, tie, untie, usage, …).

Environment

VariableDefaultPurpose
CS_CONFIG_DIR~/.config/csWhere the session is stored, and tie.json with it
CS_API_KEYunsetAn API key cs tie acts with instead of a session: its principal — an agent, or you — owns the machine, and nothing signs in
CS_LOGIN_PORTrandomFixed loopback port for the sign-in callback (signing in over SSH)
DO_NOT_TRACKunsetSet to 1 to send a bare cs user agent instead of the product/version string

Learn more

Every command, flag and exit code: corespeed.io/docs/cli.

For Claude Code and Codex, the CoreSpeed plugin wires up the MCP server with a browser sign-in and bundles skills for this CLI: github.com/corespeed-io/cs.

License

Apache-2.0 © CoreSpeed, Inc.

版本与发布记录

@corespeed/cs 共发布 24 个版本,首次发布于 2026/07/24;过去 12 个月发布了 24 个版本。

版本发布日期距今
0.15.0latest2026/11/131 天前
0.14.02026/11/077 天前
0.13.02026/11/068 天前
0.12.02026/11/059 天前
0.11.12026/10/2916 天前
0.10.02026/10/2619 天前

关于 @corespeed/cs 的常见问题

@corespeed/cs 是什么?

The CoreSpeed CLI — sign in, create API keys, configure agents, manage connectors, tie this machine, call CoreSpeed tools from your terminal, and move files in and out of your Drive.

如何安装 @corespeed/cs?

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

@corespeed/cs 支持 TypeScript 吗?

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

@corespeed/cs 支持 ESM 还是 CommonJS?

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

@corespeed/cs 需要什么版本的 Node.js?

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

@corespeed/cs 可以商用吗?

@corespeed/cs 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@corespeed/cs 的下载量有多少?

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

@corespeed/cs 还在维护吗?

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