@alfe.ai/cli

中文文档
0.10.0发布于 2026/11/05UNLICENSEDTypeScriptES Module近 30 天下载 2125

CLI for setting up and managing Alfe AI agents

原始使用文档
文档目录5 节
  1. Installation
  2. Usage
  3. Configuration
  4. Development
  5. Links

@alfe.ai/cli

CLI for setting up and managing Alfe AI agents.

Installation

pnpm install
pnpm build

Usage

# Authenticate with the Alfe API
alfe login

# Run the setup wizard
alfe setup

# Diagnose environment and connectivity issues
alfe doctor

# Manage the local gateway daemon
alfe gateway start|stop|restart|status|install|uninstall|logs

# Manage integrations
alfe integration list|install|remove|configure|status|search

# Manage locally hosted MCP servers
alfe mcp list|add|remove|test

# Connect personal Claude Code to Alfe tools and memory
alfe claude connect

# Remove Alfe-managed integration artifacts (keeps runtimes and user files)
alfe remove

Configuration

Config is stored at ~/.alfe/config.toml:

api_key = "your-api-key-here"
gateway = "https://api.alfe.ai"  # optional, derived from token prefix

The API endpoint is derived automatically from your token prefix (alfe_dev_, alfe_test_, alfe_live_). The gateway field overrides this.

Prompting commands require an interactive stdin. For headless login use alfe login --token <key> (or --method browser --no-browser); for headless removal pass alfe remove --yes.

Development

# Run in dev mode
pnpm dev

# Type check
pnpm typecheck

# Build
pnpm build

版本与发布记录

@alfe.ai/cli 共发布 123 个版本,首次发布于 2026/03/27;过去 12 个月发布了 123 个版本。

版本发布日期距今
0.10.0latest2026/11/052 天前
0.9.22026/10/299 天前
0.9.12026/10/2810 天前
0.9.02026/10/2810 天前
0.8.62026/10/2810 天前
0.8.52026/10/2810 天前

关于 @alfe.ai/cli 的常见问题

@alfe.ai/cli 是什么?

CLI for setting up and managing Alfe AI agents

如何安装 @alfe.ai/cli?

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

@alfe.ai/cli 支持 TypeScript 吗?

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

@alfe.ai/cli 支持 ESM 还是 CommonJS?

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

@alfe.ai/cli 需要什么版本的 Node.js?

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

@alfe.ai/cli 可以商用吗?

@alfe.ai/cli 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@alfe.ai/cli 的下载量有多少?

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

@alfe.ai/cli 还在维护吗?

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