-
Notifications
You must be signed in to change notification settings - Fork 0
Installation zh
andershsueh edited this page Feb 10, 2026
·
1 revision
本指南将帮助您在系统上安装 ALICE。
前往 Releases 页面 并下载适合您的版本:
| 平台 | 文件 | 说明 |
|---|---|---|
| Windows x64 | alice-win-x64.zip |
用于 64 位 Windows |
| macOS Intel | alice-macos-x64.tar.gz |
用于 Intel 芯片的 Mac |
| macOS Apple Silicon | alice-macos-arm64.tar.gz |
用于 M1/M2/M3 芯片的 Mac |
| Linux x64 | alice-linux-x64.tar.gz |
用于 64 位 Linux |
# Extract the zip file
# Double-click alice.exe or run from PowerShell:
.\alice.exe# Extract
tar -xzf alice-*.tar.gz
# Add execute permission
chmod +x alice-*
# Optional: Move to system path
sudo mv alice-* /usr/local/bin/alice
# Run
alicegit clone https://github.com/AndersHsueh/Alice.git
cd Alicenpm install这将安装所有必需的包,包括:
-
ink- CLI 界面框架 -
axios- 用于 LLM API 的 HTTP 客户端 -
ajv- 工具的 JSON Schema 验证 -
glob- 文件搜索 -
simple-git- Git 操作
npm run build这会将 TypeScript 编译到 dist/ 目录中的 JavaScript。
# Development mode (supports live editing)
npm run dev
# Production mode
npm start
# Or run directly
node dist/index.jsnpm install -g alice-cli
alice
⚠️ 注意:npm 包发布计划在未来版本中推出。
- 下载 LM Studio 从 https://lmstudio.ai/
- 安装并启动 LM Studio
-
下载模型:
- 点击 "Search" 标签
- 搜索模型(例如:"qwen"、"llama"、"mistral")
- 下载您喜欢的模型
-
启动本地服务器:
- 点击 "Local Server" 标签
- 加载您的模型
- 点击 "Start Server"
- 默认地址:
http://127.0.0.1:1234/v1
- 安装 Ollama 从 https://ollama.ai/
-
拉取模型:
ollama pull qwen2.5:7b
-
启动 Ollama(通常会自动运行)
- 默认地址:
http://localhost:11434/v1
- 默认地址:
- 获取 API Key 从 https://platform.openai.com/
-
设置环境变量:
# macOS / Linux export OPENAI_API_KEY="sk-xxxxx" # Windows set OPENAI_API_KEY=sk-xxxxx
使用 --help 参数运行 ALICE:
alice --help如果看到帮助信息,说明安装成功!
首次运行时,ALICE 将:
- 显示欢迎横幅(使用
--no-banner跳过) - 在
~/.alice/创建配置目录 - 生成默认的
settings.jsonc
# First run
alice
# Or skip banner
alice --no-banner确保您首先运行了 npm install。
您的 LLM 后端未运行。启动 LM Studio 或 Ollama。
运行 chmod +x alice 添加执行权限。
更多问题,请查看 故障排除。