Alan AI工作流引擎 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
基于Rust开发的开源AI智能体运行时框架,采用AI图灵机隐喻架构设计。提供高性能、类型安全的工作流编排能力,适合构建复杂AI任务自动化系统,面向开发者和AI工程师。
Alan AI工作流引擎 是一款基于 Rust 开发的开源工具,专注于 Rust、工作流、AI智能体 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
基于Rust开发的开源AI智能体运行时框架,采用AI图灵机隐喻架构设计。提供高性能、类型安全的工作流编排能力,适合构建复杂AI任务自动化系统,面向开发者和AI工程师。
Alan AI工作流引擎 是一款基于 Rust 开发的开源工具,专注于 Rust、工作流、AI智能体 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:cargo install(推荐) cargo install alan # 方式二:从源码编译 git clone https://github.com/realmorrisliu/alan cd alan cargo build --release # 二进制在 ./target/release/alan
# 查看帮助 alan --help # 基本运行 alan [options] <input> # 详细使用说明请查阅文档 # https://github.com/realmorrisliu/alan
# alan 配置说明 # 查看配置选项 alan --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export ALAN_CONFIG="/path/to/config.yml"
Alan is an agent built to be the next computer.
Alan starts from the premise that the next computer is not just a device people operate through apps, but an agent that can help humans act across the digital world. Here, "computer" does not mean a bare-metal machine. It means the complete end-to-end experience: interface, runtime, files, memory, tools, permissions, sessions, local state, and native clients designed as one closed loop. Alan starts local-first, so the agent can see context, take governed action, remember durable facts, recover work, and collaborate with the human in the same workspace.
At the runtime layer, alan is built around the AI Turing Machine metaphor: a state machine where LLMs drive transitions while the runtime manages tape (context), tooling, governance, and persistence.
⚠️ Project Status: Early Development This project is actively being developed. APIs may change without notice. Governance model note: this README summarizes governance at a high level. The authoritative current implementation contract lives in docs/governance_current_contract.md; target-design material lives in OpenSpec.
---
read_file, write_file, edit_file, bashread_file, grep, glob, list_dirSKILL.md portability, explicit activation, implicit catalog listing, progressive disclosure, and delegated child-agent executionskills/ directories, and public .agents/skills/ installs resolve into one ResolvedCapabilityView; packages can expose portable skills, child-agent roots, and resource directories without requiring package.tomlallow/deny/escalate), and the current execution backend reports its best-effort local guard as execution_backend; see docs/governance_current_contract.md for exact guard behaviorautonomous/conservative presets, overridable via policy.yaml in the resolved agent-root chaininput can interrupt tool batches and reprioritize the next stepalan shell IPC commands expose native shell state, spaces, tabs, panes, attention, routing, and eventsalan ask for non-interactive queries with text/json/quiet output modes---
```bash git clone <repo-url> cd alan cargo build --release
The supported macOS distribution is app-first. The signed Alan.app bundle contains the alan CLI and alan-tui executable under Contents/Resources/bin.
```bash
brew install --cask alan
ALAN_DEVELOPER_ID_APPLICATION="Developer ID Application: Example (TEAMID)" just install
```bash
Route ownership lives in crates/alan/src/daemon/api_contract.rs; the examples below show the stable public paths, while production clients should use the contract helpers or generated TUI helpers.
```bash
The recommended setup path is launching alan chat or alan-tui and using the first-run wizard. The wizard starts with user-facing service presets such as ChatGPT/Codex login, OpenAI API Platform, OpenRouter, Kimi Coding, DeepSeek, Google Gemini via Vertex AI, and Anthropic API. Raw API-family selection is kept behind Advanced / custom setup.
Connection/provider metadata lives in ~/.alan/connections.toml; agent runtime knobs live in ~/.alan/agents/default/agent.toml. An agent config can pin a profile with connection_profile, otherwise alan resolves a workspace pin or the global default_profile.
```toml
[[skill_overrides]] skill = "plan" allow_implicit_invocation = false
[[skill_overrides]] skill = "release-checklist" enabled = false
model_reasoning_effort = "medium" ```
Host-facing daemon/client settings live in ~/.alan/host.toml. You can also set ALAN_CONFIG_PATH to use a custom agent config file location.
Create {workspace}/.alan/agents/default/policy.yaml to override builtin policy profile rules. When present, the file replaces the builtin profile rule set for that session; alan does not implicitly merge policy files with builtin rules.
rules:
- id: deny-prod-delete
tool: bash
match_command: "kubectl delete"
action: deny
reason: protect production cluster
- id: review-prod-deploy
tool: bash
match_command: "deploy --prod"
action: escalate
reason: explicit production boundary
default_action: allow
See docs/governance_current_contract.md for the current implementation contract. HITE target-design material now lives in OpenSpec under openspec/specs/governance-tooling-contract/spec.md.
---
curl "http://localhost:8090/api/v1/sessions/{id}/events/read?after_event_id=e-123&limit=50"
curl http://localhost:8090/api/v1/skills/catalog curl "http://localhost:8090/api/v1/skills/changed?after=<cursor>" curl -X POST http://localhost:8090/api/v1/skills/overrides \ -H "Content-Type: application/json" \ -d '{"skill_id": "memory", "allowImplicitInvocation": false}'
alan skills list alan skills packages alan skills init ./my-skill --name my-skill alan skills validate ./my-skill --strict alan skills eval ./my-skill
alan ask "What does this project do?" alan ask "Explain main.rs" --workspace ./my-project alan ask "Summarize" --output json # NDJSON for automation alan ask "Summarize" --output quiet # text only at end alan ask "Think step by step" --thinking --timeout 60
Alan 被定义为“下一代计算机”。它不仅仅是一个通过 App 进行操作的设备,而是一个能够跨越数字世界协助人类行动的智能 Agent。Alan 并不局限于裸机硬件,它提供的是一种完整的端到端体验,涵盖了交互界面(Interface)、运行时(Runtime)、文件系统、内存管理、工具集(Tools)、权限控制、会话管理(Sessions)以及本地状态(Local State)等核心要素。
Alan 支持多供应商的 LLM,包括 ChatGPT/Codex、OpenAI API、Google Gemini、Anthropic Messages API 以及 OpenRouter 等,并提供支持 Tool Call 的实时 Token 流式响应(Streaming Responses)。此外,它拥有分层工具配置(Layered Tool Profiles),核心层(Core)默认具备 read_file、write_file、edit_file 和 bash 等强大的系统操作能力。
在开始使用 Alan 之前,请确保您的开发环境已安装 Rust 1.85 或更高版本(需使用 2024 edition)。此外,虽然不是强制要求,但强烈建议安装 just 作为任务运行器(task runner),以便更高效地执行项目相关的构建与管理任务。
对于 macOS 用户,推荐使用 App-first 的安装方式,通过 `brew install --cask alan` 直接安装已签名的 Alan.app 捆绑包,其中包含了 alan CLI 和 alan-tui 可执行文件。若需从源码构建,请先通过 git clone 获取仓库,进入目录后执行 `cargo build --release` 进行编译安装。
Alan 提供灵活的使用方式,支持通过 CLI 命令行进行交互。对于开发者而言,可以通过 API 进行集成。请注意,路由所有权定义在 `crates/alan/src/daemon/api_contract.rs` 中,生产环境的客户端建议使用 contract helpers 或生成的 TUI helpers 以确保稳定性。
建议初次使用时通过运行 `alan chat` 或 `alan-tui` 并跟随首次运行向导(First-run wizard)进行配置。向导支持 ChatGPT/Codex、OpenAI API、OpenRouter、Kimi Coding、DeepSeek、Google Gemini (Vertex AI) 及 Anthropic API 等预设服务。对于高级用户,可以通过 Advanced / custom setup 进行原始 API 家族选择,并支持通过配置文件进行 skill 覆盖(skill_overrides)等精细化控制。
Alan 的 API 提供了基于 WebSocket 的实时通信能力,包括用于会话交互的 `websocket_url`、用于事件监听的 `events_url` 以及用于提交任务的 `submit_url`。开发者可以利用这些接口实现与 Alan Agent 的深度集成与实时状态同步。
Alan 提供了完善的技能(Skills)管理工作流。开发者可以使用 `alan skills list` 查看已解析的技能、包及导出项,通过 `alan skills init` ��始化新技能,利用 `alan skills validate` 进行严格的校验,并最终通过 `alan skills eval` 对技能进行评估,实现从开发到部署的全生命周期管理。
Alan 支持单次提问模式(One-shot question),用户可以通过 `alan ask` 命令向 Agent 提问,例如询问项目功能或解释代码逻辑。通过指定 `--workspace` 参数,Agent 可以感知特定工作区;利用 `--output json` 可实现自动化流程中的数据处理,而 `--thinking` 参数则允许 Agent 进行深度思考过程展示。
创新的AI图灵机架构设计,Rust实现保证性能与安全,但项目知名度低,生态不成熟,需时间沉淀。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,Alan AI工作流引擎 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | alan |
| 原始描述 | 开源AI工作流:A Rust-native Agent Runtime built around the AI Turing Machine metaphor — a stat。⭐7 · Rust |
| Topics | Rust工作流AI智能体运行时框架开源 |
| GitHub | https://github.com/realmorrisliu/alan |
| License | Apache-2.0 |
| 语言 | Rust |
收录时间:2026-05-16 · 更新时间:2026-05-24 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。