校对:soup
设立和管理Alfe AI代理的CLI.
安装
pnpm install
pnpm build
使用量
# 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
配置
配置存储于 ~/.alfe/config.toml数字 :
api_key = "your-api-key-here"
gateway = "https://api.alfe.ai" # optional, derived from token prefix
API 端点自动取自您的符号前缀(alfe_dev_, (中文(简体) ), alfe_test_, (中文(简体) ), alfe_live_) (中文(简体) ). 这个 gateway 字段覆盖此选项.
提示命令需要交互式 stdin 。 无头登录使用
alfe login --token <key> (或 --method browser --no-browser; 无头
删除通行证 alfe remove --yes。 。 。 .
发展
# Run in dev mode
pnpm dev
# Type check
pnpm typecheck
# Build
pnpm build