@forgeailab/smith

中文文档
0.8.1发布于 2026/10/28(MIT OR Apache-2.0)零依赖构建来源已验证近 30 天下载 2093

NPX bootstrapper for the Smith terminal-first coding agent

原始使用文档

Smith npm bootstrapper

Run Smith from npm without installing a platform binary first:

npx @forgeailab/smith

The package downloads the matching Smith GitHub release archive for macOS or Linux, verifies it against SHA256SUMS when available, caches it under ~/.smith/npx, and starts the smith binary. Linux always uses Smith's fully static musl archive, so the same package works on glibc and musl hosts. Explicitly named smith-<arch>-linux-gnu.tar.gz archives remain available for users who prefer an Ubuntu 22.04-baseline GNU build.

Useful commands:

npx @forgeailab/smith -p "explain this repo"   # one headless turn
npx @forgeailab/smith setup                     # guided provider/model setup
npx @forgeailab/smith --help

Installing a permanent smith command

--install copies the downloaded binary onto your PATH so later runs skip npm entirely. It writes to a user-owned directory, so it never needs sudo:

npx @forgeailab/smith --install                      # -> ~/.local/bin/smith
npx @forgeailab/smith --install --install-dir ~/bin  # somewhere else
SMITH_INSTALL_DIR=~/bin npx @forgeailab/smith --install
npx @forgeailab/smith --uninstall                    # remove it again

If the install directory is not on your PATH, the command prints the export PATH=... line to add to your shell profile.

By default, the wrapper downloads the GitHub release tag that matches the npm package version. For testing a different release:

npx @forgeailab/smith --release latest
SMITH_NPX_TAG=v0.1.0 npx @forgeailab/smith

版本与发布记录

@forgeailab/smith 共发布 46 个版本,首次发布于 2026/08/07;过去 12 个月发布了 46 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.8.1latest2026/10/2818 天前
0.8.02026/10/2521 天前
0.7.132026/10/2323 天前
0.7.122026/10/2323 天前
0.7.112026/10/2323 天前
0.7.72026/10/2026 天前

其他发布通道:next → 0.0.1-rc.3。

关于 @forgeailab/smith 的常见问题

@forgeailab/smith 是什么?

NPX bootstrapper for the Smith terminal-first coding agent

如何安装 @forgeailab/smith?

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

@forgeailab/smith 支持 TypeScript 吗?

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

@forgeailab/smith 需要什么版本的 Node.js?

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

@forgeailab/smith 可以商用吗?

@forgeailab/smith 使用 (MIT OR Apache-2.0) 许可。可在 MIT、Apache-2.0 中任选其一遵守。选择 MIT 时,宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@forgeailab/smith 的下载量有多少?

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

@forgeailab/smith 还在维护吗?

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