AI Skill Hub 强烈推荐:开源AI交易 是一款优质的Agent工作流。已获得 4.9k 颗 GitHub Star,AI 综合评分 8.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
开源AI交易 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
开源AI交易 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g openalice # 方式二:npx 直接运行(无需安装) npx openalice --help # 方式三:项目依赖安装 npm install openalice # 方式四:从源码运行 git clone https://github.com/TraderAlice/OpenAlice cd OpenAlice npm install npm start
# 命令行使用
openalice --help
# 基本用法
openalice [options] <input>
# Node.js 代码中使用
const openalice = require('openalice');
const result = await openalice.run(options);
console.log(result);
# openalice 配置说明 # 查看配置选项 openalice --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export OPENALICE_CONFIG="/path/to/config.yml"
<p align="center"> <img src="docs/images/alice-full.png" alt="OpenAlice" width="140"> </p>
<p align="center"> <strong>Your one-person Wall Street.</strong><br> An AI trading agent covering equities, crypto, commodities, forex, and macro — from research through position entry, ongoing management, to exit. </p>
<p align="center"> <a href="https://openalice.ai"><img src="https://img.shields.io/badge/Website-blue" alt="Website"></a> · <a href="https://openalice.ai/docs"><img src="https://img.shields.io/badge/Docs-green" alt="Docs"></a> · <a href="https://x.com/OpenAliceAI"><img src="https://img.shields.io/badge/X-000000?logo=x&logoColor=white" alt="X (Twitter)"></a> · <a href="https://discord.gg/zf4STmrQd8"><img src="https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white" alt="Discord"></a> · <a href="https://qm.qq.com/q/iSg6O4FmrC"><img src="https://img.shields.io/badge/QQ-12B7F5" alt="QQ"></a> </p>
<p align="center"> <img src="docs/images/preview.png" alt="OpenAlice Preview" width="720"> </p>
Alice runs on your own machine, because trading involves private keys and real money — that trust can't be outsourced.
[!CAUTION] OpenAlice is experimental software in active development. Many features and interfaces are incomplete and subject to breaking changes. Do not use this software for live trading with real funds unless you fully understand and accept the risks involved. The authors provide no guarantees of correctness, reliability, or profitability, and accept no liability for financial losses.
git clone https://github.com/TraderAlice/OpenAlice.git
cd OpenAlice
pnpm install
First-time pnpm install pulls the full monorepo + native deps (notably node-pty for terminal sessions). On a normal connection allow ~1 minute.
pnpm may print "Ignored build scripts: ccxt, esbuild, protobufjs" — this is fine, those are optional native optimizations and OpenAlice doesn't need them. You can run pnpm approve-builds later if you want to opt in.
For self-hosting on a VPS or always-on box. The image bundles claude and codex CLIs — no host install needed.
git clone https://github.com/TraderAlice/OpenAlice.git
cd OpenAlice
docker compose up -d --build
First-time auth (one-shot — credentials persist in the data volume so the container can be rebuilt without losing them):
docker exec -it openalice claude # OAuth: paste URL into any browser
docker exec -it openalice codex login # same dance for codex
Then open http://<your-server>:47331 in a browser. You'll hit the admin-token login screen — see Authentication above for how to retrieve the first-run token from docker logs.
Notes
- All state — config, workspaces, claude/codex credentials, logs — lives in the openalice-data named volume. docker compose down -v is the factory reset. - Already have claude/codex auth on the host? Skip the docker exec step by uncommenting the bind-mount lines in docker-compose.yml to reuse your local ~/.claude and ~/.codex. - The MCP server (port 47332) is intentionally not exposed externally; it's consumed by the CLIs running inside the container only. - The base image is node:22-trixie-slim (Debian 13) because several native deps (notably longbridge) ship glibc 2.39 binaries that older Debians don't have, and workspace bootstrap scripts need bash + POSIX utils. Alpine doesn't qualify on either count (musl libc, no bash).
Heads up: there's no native installer yet. To try OpenAlice today you clone the repo and run it from source — this section is the contributor / early-adopter path. A DMG (macOS) + Windows installer are in flight; once they ship, the steps below collapse to "download, open, done."
All config lives in data/config/ as JSON files with Zod validation. Missing files fall back to sensible defaults. You can edit these files directly or use the Web UI.
AI Provider — The default provider is Claude (Agent SDK), which uses your local Claude Code login — no API key needed. To use the Vercel AI SDK instead (Anthropic, OpenAI, Google, etc.), switch ai-provider.json to vercel-ai-sdk and add your API key. Both can be switched at runtime via the Web UI.
Trading — Unified Trading Account (UTA) architecture. Each account in accounts.json becomes a UTA with its own broker connection, git history, and guard config. Broker-specific settings live in the brokerConfig field — each broker type declares its own schema and validates it internally.
| File | Purpose |
|---|---|
engine.json | Trading pairs, tick interval, timeframe |
agent.json | Max agent steps, evolution mode toggle, Claude Code tool permissions |
ai-provider.json | Active AI provider (agent-sdk or vercel-ai-sdk), login method, switchable at runtime |
accounts.json | Trading accounts with type, enabled, guards, and brokerConfig (broker-specific settings) |
connectors.json | Web/MCP server ports |
web-subchannels.json | Web UI sub-channel definitions with per-channel AI provider overrides |
tools.json | Tool enable/disable configuration |
market-data.json | Data backend (typebb-sdk / openbb-api), per-asset-class providers, provider API keys, embedded HTTP server config |
news.json | RSS feeds, fetch interval, retention period |
snapshot.json | Account snapshot interval and retention |
compaction.json | Context window limits, auto-compaction thresholds |
heartbeat.json | Heartbeat enable/disable, interval, active hours |
Persona and heartbeat prompts use a default + user override pattern:
| Default (git-tracked) | User override (gitignored) |
|---|---|
default/persona.default.md | data/brain/persona.md |
default/heartbeat.default.md | data/brain/heartbeat.md |
On first run, defaults are auto-copied to the user override path. Edit the user files to customize without touching version control.
claude / codex / shell) with OpenAlice's MCP tools plumbed in. The recommended path for any non-trivial AI work — native prompt cache, native rendering, no protocol shiminbox_push from inside a workspace to surface a document (rendered live) plus a markdown comment in a dedicated tab; click the reply bar to jump back into the workspace and continue该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
总体来看,开源AI交易 是一款质量优秀的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | OpenAlice |
| Topics | AI交易TypeScript |
| GitHub | https://github.com/TraderAlice/OpenAlice |
| License | AGPL-3.0 |
| 语言 | TypeScript |
收录时间:2026-06-05 · 更新时间:2026-06-05 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端