跳到正文
发现
DotCraft:可嵌入的 Agent 运行时
桌面应用开发者工具

DotCraft:可嵌入的 Agent 运行时

开源、可自托管的 .NET Agent 运行时,提供桌面应用、CLI、移动端与 SDK,支持嵌入和插件扩展。

admin
发布于 2026-11-24 · 更新于 2026-11-27
浏览
3
访问
0
下载
0
Stars
403
版本
v0.14.4
平台
Windows、macOS、Linux
该作品还没有经过官方审核。访问演示、下载或复制命令前,请自行确认来源可信。

详细介绍

项目简介

DotCraft 是一个开源、可自托管的 Agent 运行时,运行在你自己的机器上。它提供桌面应用、CLI、移动端和 SDK,让同一个 Agent 在多个入口共享工作区;同时可以用 .NET 嵌入到自己的应用中,并通过插件扩展能力。

主要功能

  • 多入口共享工作区:Desktop、CLI、IDE、手机和聊天机器人共享同一个工作区,任务可以在不同入口之间接续。
  • Desktop 工作台:支持 Plan 先规划步骤、Subagents 拆分任务并行处理、内置浏览器检查结果、Computer Use 操作允许的 Windows 应用、Agent Builder 创建可复用 Agent,以及 Automations、Goals、Dreams 和 Dynamic Workflows。
  • 移动端:在手机上查看 Agent 运行状态、处理审批和问题、添加消息、停止聊天,并在任意项目中开始新聊天。
  • CLI:用一条命令在终端、服务器或 CI 中运行任务,例如 dotcraft exec "Which colors in src/components are still hard-coded?"。
  • 嵌入与扩展:通过 DotCraft.Harness 把完整 Agent 运行时放进 .NET 应用;通过 TypeScript 或 .NET SDK 连接工作区、启动线程并运行回合。
  • 模型与部署:支持任意兼容 OpenAI 或 Anthropic 的模型提供商,也支持使用 ChatGPT 订阅登录;可自托管,并让团队共用一台机器上的密钥和登录状态。
  • 更多能力:Satellite 让 Agent 在另一台 Windows PC 上工作;Oratorio 把本地任务与 GitHub/GitLab issue、PR 汇总到项目板;聊天机器人支持飞书、QQ、Telegram、企业微信和微信;Avatar 提供 React 角色组件。

安装与使用

Desktop

  1. 从 Releases 下载 Windows、macOS 或 Linux 安装包。
  2. 打开一个项目文件夹作为工作区。
  3. 连接模型:填写兼容 OpenAI 或 Anthropic 的提供商 API Key,或使用 ChatGPT 订阅登录。

CLI

macOS / Linux:

curl -fsSL https://www.dotcraft.net/install.sh | bash

Windows PowerShell:

irm https://www.dotcraft.net/install.ps1 | iex

运行任务:

dotcraft exec "Which colors in src/components are still hard-coded?"

嵌入 .NET 应用

dotnet add package DotCraft.Harness
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddDotCraftHarness(appConfig, options =>
    options.WorkspacePath = workspacePath);

using var host = builder.Build();
await host.StartAsync();

使用 SDK

npm install @dotcraft/sdk
# 或
dotnet add package DotCraft.Sdk
import { DotCraft } from "@dotcraft/sdk";

const dotcraft = await DotCraft.local({ workspacePath: "/path/to/workspace" });
const thread = await dotcraft.threads.start({ userId: "me" });
const result = await thread.run("Check contrast in dark mode.");
console.log(result.text);

移动端

下载 Android 应用,然后在 Desktop 中打开 Settings → Connections → Phones,扫描显示的二维码进行连接。

注意事项

  • v0.14.1 起不再支持外部 CLI subagents(Codex CLI、Cursor CLI 和自定义 CLI profiles),但仍可在 LLM Service 设置中为 DotCraft subagents 选择模型。
  • 需要准备兼容模型提供商的 API Key,或使用 ChatGPT 订阅登录。
  • Desktop 安装包需从 Releases 页面获取;CLI 安装脚本来自官网。
  • 项目使用 Apache-2.0 许可证。

本作品整理自 GitHub 开源项目 DotHarness/dotcraft,原作者 @DotHarness,许可证 Apache-2.0。中文介绍由 AI 根据项目 README 整理,以原仓库为准。

更新记录

  1. v0.14.4当前版本

    # DotCraft v0.14.4

  2. v0.14.3

    # DotCraft v0.14.3

  3. v0.14.2

    # DotCraft v0.14.2

评论