NodePilot README

项目的 README,来自 github.com/Sev7eNup/NodePilot。合并为一个 markdown 文件:README.md。

NodePilot logo

NodePilot

Open-source Windows and PowerShell workflow automation. Self-hosted, agentless execution over WinRM, with an import path for System Center Orchestrator runbooks.

Multi-step automation is designed, scheduled, debugged and observed in the browser. PowerShell, file, registry and service operations, REST calls, SQL and further activities are executed across a Windows estate over WinRM, without agents on the targets.

CI .NET 10 React 19 TypeScript PostgreSQL Windows Latest release License

🌐 Website · ▶️ Live demo · 📚 Documentation · ⬇️ Download · 🚀 Install


Live demo

Open the live demo to try the actual web UI with sample data. It runs entirely in the browser, requires no installation and sends no data anywhere. Each visitor has a private copy, which resets on reload. Workflows can be built, published and run, while the canvas updates live.

It is the product's own frontend on an in-memory backend, so anything that genuinely needs a server (PowerShell on a host, a WinRM test, mail, a restore) reports that limitation instead of pretending.

Product tour

Watch the NodePilot product tour, Workflow Designer with a health-check workflow: parallel checks, an LLM summary and a decision

Watch product video

Browse screenshots
🎨 Workflow Designer

Workflow Designer, parallel fan-out/fan-in, decision branches, live properties panel, seven-cluster toolbar

📊 Dashboard

Dashboard, run status, execution-duration percentiles, most common errors, quick actions

🛰️ Live-Ops Mission Control

Live-Ops Mission Control, what's running right now, what just finished, what starts next

🧾 Support Log, live tail

Support log, live tail plus structured support events


Table of Contents


Why NodePilot

NodePilot is agentless workflow orchestration for Windows, built in the browser and running PowerShell on remote machines over WinRM. It is meant for sysadmins automating Windows estates, for organizations looking for a modern alternative to SCOrch, as well as for private users who rely heavily on PowerShell.

Highlights


Install, pick one of three paths

NodePilot runs in three supported shapes. Each one leads to a working login on its own.

1 · Desktop app 2 · Windows service 3 · From source
For one person, one machine a team, a real server contributors, evaluation
You need Windows 11 x64, local admin Windows Server 2022/2025, a TLS certificate, a prepared database .NET 10 SDK, Node, a local PostgreSQL
You get installer .exe with bundled PostgreSQL and .NET runtime, opens a native window setup .exe (or the signed .zip + PowerShell installer), Windows service under a gMSA, Kestrel HTTPS dotnet run + Vite dev server on your own machine
Database bundled, loopback-only you provide it you provide it
Offline yes, fully yes no (package restore)
Guide below · details below · step-by-step below

NodePilot is Windows-only by design, because the engine drives PowerShell remoting over WinRM and protects credentials with DPAPI.

On every path the first login creates the Admin account with a one-time setup token. Where the token comes from is noted per path.


Path 1: Desktop app

A local application for Windows 11 x64. One .exe bundles the app, the .NET 10 runtime and a local PostgreSQL, installs them as background services and opens a native window. It works fully offline.

NodePilot-Desktop-Setup-<version>.exe is downloaded from the latest release and run with local admin rights. The installer hands the setup token straight to the login screen. Since the backend runs as a service, scheduled and webhook triggers keep firing while the window is closed. Help with problems is in docs/desktop-troubleshooting.md, and all log files are listed under Logs & diagnostics.

Building the installer yourself

The build requires the .NET 10 SDK, Node, Inno Setup 6 and the pgsql folder of the PostgreSQL 16 binaries.

deploy\desktop\Build-DesktopInstaller.ps1 -PgBinariesPath 'C:\Packages\pgsql' -Version 1.2.0
# -> deploy\desktop\out\NodePilot-Desktop-Setup-1.2.0.exe

This script does not sign. A signed installer comes from the release build (deploy\Build-Artifact.ps1 -IncludeDesktopInstaller), see deploy/desktop/README.md.


Path 2: Windows service

NodePilot runs as a Windows service under a gMSA, with HTTPS directly in Kestrel and in-place upgrades that can roll back.

Prerequisites, all checked by the installer's pre-flight:

With the wizard. NodePilot-Server-Setup-<version>.exe from the latest release checks every prerequisite before changing anything and can install the runtimes, create the database or issue a lab certificate. It also runs unattended: Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /ANSWERFILE=answers.json. Details are in deploy/server/README.md.

With the scripts, which the wizard uses as well. The signed NodePilot-<version>.zip is downloaded with its manifest files, verified against NodePilot-<version>.SHA256SUMS.txt and installed:

.\deploy\Install-NodePilot.ps1 `
    -ArtifactPath 'C:\Packages\NodePilot-1.2.0.zip' `
    -TrustedArtifactSignerThumbprint '<publisher thumbprint from the release notes>' `
    -CertThumbprint '<your TLS cert thumbprint>' `
    -ServiceAccount 'CONTOSO\svc-nodepilot$' `
    -PublicHostname 'nodepilot.corp.example.com'

The installer refuses unsigned or tampered artifacts. The pinned thumbprint is the trust decision, so no certificate has to be imported beforehand.

Further reading: the Windows Server deployment walkthrough, verification and troubleshooting in docs/deployment-guide.md, and every parameter in deploy/README.md.


Path 3: From source

For contributors and for evaluation on a workstation.

Prerequisites

1. Create the database

winget install PostgreSQL.PostgreSQL
$psql = "C:\Program Files\PostgreSQL\16\bin\psql.exe"
& $psql -U postgres -c "CREATE ROLE nodepilot WITH LOGIN PASSWORD 'ChangeMe!';"
& $psql -U postgres -c "CREATE DATABASE nodepilot OWNER nodepilot;"

2. Start the backend (port 5000)

The password is passed through the environment, so that it never lands in a tracked file:

$env:ConnectionStrings__Postgres = "Host=127.0.0.1;Port=5432;Database=nodepilot;Username=nodepilot;Password=ChangeMe!;SSL Mode=Disable"
cd src\NodePilot.Api
dotnet run

On first start the setup token is written to src\NodePilot.Api\admin-setup.token. The login screen asks for it on the first attempt and then creates the Admin account.

3. Start the frontend (port 5173)

cd src\nodepilot-ui
npm install
npm run dev

http://localhost:5173 serves the app and proxies /api, /healthz and /hubs to port 5000.

4. (optional) Bring up Grafana

cd grafana
Copy-Item .env.example .env     # then set NODEPILOT_GRAFANA_ADMIN_PASSWORD
docker compose up -d
# Grafana    -> http://localhost:3000   (user "admin", the password you just set)
# Prometheus -> http://localhost:9090

Startup requires a unique NODEPILOT_GRAFANA_ADMIN_PASSWORD. Compose fails closed while the password is missing. On the API side, these three variables enable the Prometheus endpoint:

$env:OpenTelemetry__Enabled = "true"
$env:OpenTelemetry__Exporters__PrometheusScrape = "true"
$env:OpenTelemetry__Exporters__PrometheusScrapeAllowAnonymous = "true"

More in grafana/README.md and in the installation guide on the documentation site, in English and German.


Example workflow

scripts/readme-showcase-workflow.json is a nightly health check of the NodePilot host that runs three probes in parallel, gathers them at a junction and then either sends an alert or logs that all is well. A fault or a probe without evidence always takes the alert path; to check another host, give the probes a targetMachineId. It is imported on the Workflows page via Import or through POST /api/workflows/import.


Coming from System Center Orchestrator

SCOrch is not going anywhere. System Center 2025 Orchestrator is supported until 2035, so an existing installation is not on a deadline. The exception is System Center 2016 Orchestrator, whose extended support ends on January 11, 2027. The options side by side are on the SCOrch alternative page.

What has not moved is authoring. Runbooks are still built in the desktop Runbook Designer, without version history, diff or rollback. NodePilot keeps the agentless model and moves the editor, the debugger and the version history into the browser.

Existing runbooks come across. NodePilot reads SCOrch's .ois_export XML (2012, 2016 and 2019) and turns runbooks into workflows:

np workflow import-scorch --file .\runbooks.ois_export

Import also runs from the UI and from POST /api/workflows/import-scorch. The result is a draft to be reviewed: imported workflows arrive disabled, and credentials are not reconstructed because SCOrch encrypts them. Details are in the import documentation.

How the two compare

System Center Orchestrator NodePilot
Support lifecycle mainstream to 2030, extended to 2035 rolling releases, no vendor behind it
Agents on targets none none, same WinRM model
Authoring desktop Runbook Designer browser, live canvas
Debugging Runbook Tester breakpoints in the real engine, variable overrides, replay
Versioning none snapshots, diff, rollback
Automation API web API for jobs full REST API, np CLI, MCP server
Observability job history OpenTelemetry, Prometheus, Grafana dashboards
Database SQL Server PostgreSQL or SQL Server
Licence commercial, per managed host Apache-2.0
Support vendor community, single maintainer

NodePilot provides the source and no support contract, and it is to be judged on that basis.


Documentation

Everything below the surface lives on the documentation site, 45 pages in English and German, with search and deep links. This README deliberately stops at "installed and logged in".

Start here Introduction · Installation · Architecture
Building workflows Workflows & activities · Data bus & variables · Edge conditions · Sub-workflows
The designer Overview · Canvas, nodes & edges · Properties, modes & shortcuts
Reference All 29 activities · Triggers · API endpoints · np CLI · MCP server
Running it Windows Server · Desktop app · Antivirus exclusions · Logs & diagnostics · Configuration
Security Security model · Hardening flags · Audit log
Enterprise High availability · Secret providers · AD SSO Preview · Folder RBAC

The API also documents itself. The OpenAPI spec is served at GET /openapi/v1.json, with Swagger UI at GET /swagger, in Development by default.

Production deployment

A real server rollout follows Windows Server deployment on the documentation site, a lab-validated walkthrough covering service identity, both database providers, certificates and the first admin account. The installer runs NodePilot as a Windows service under a gMSA with direct Kestrel HTTPS, splits install and data directories, and upgrades in place with automatic rollback.

Two companions belong to it. docs/deployment-guide.md covers what happens before installation (verifying the download against its checksums and publisher, and building the artifact in-house) and carries the troubleshooting table. deploy/README.md is the parameter reference, and states what the installer deliberately does not do.

Before a deployment into an environment with endpoint protection, docs/av-exclusions.md is to be handed to whoever owns it. NodePilot runs PowerShell by design, and that trips heuristics.


Project Structure

src/
  NodePilot.Core/         Domain models, interfaces, enums (zero dependencies)
  NodePilot.Ai/           LLM stack: ILlmClient/OpenAI transport + SSRF guard, prompt catalog, script/workflow gen + chat assistant (Core-only; used by Api and Engine)
  NodePilot.Data/         EF Core DbContext, CredentialStore (DPAPI), provider-agnostic migrations
  NodePilot.Remote/       WinRM session factory + PowerShell SDK session
  NodePilot.Engine/       WorkflowEngine, 29 activities, RetryPolicy, DebugCoordinator
  NodePilot.Scheduler/    TriggerOrchestrator (Quartz.NET), 4 background trigger sources + retention/cluster services
  NodePilot.Telemetry/    OpenTelemetry setup, Prometheus client, metric constants
  NodePilot.Api/          ASP.NET Core host, controllers, SignalR hub, security middleware
  NodePilot.Cli/          `np`: operations CLI (Spectre.Console.Cli), shipped in both installers under tools\np
  NodePilot.Mcp/          `nodepilot-mcp`: MCP server for AI agents (ModelContextProtocol), shipped under tools\mcp
  NodePilot.Switcher/     WPF utility for exclusive local NodePilot/SCOrch service control
  nodepilot-ui/           React 19 SPA (Vite 8 + Tailwind CSS 4 + React Flow 12)
  nodepilot-docs-ui/      Documentation website (Vite + React SPA): its OWN curated markdown corpus under content/{de,en}/, maintained alongside docs/ (not a 1:1 render)
  nodepilot-desktop/      Electron shell for the desktop app: thin hardened viewer, no business logic

tests/
  NodePilot.Engine.Tests/   xUnit: engine + every activity executor
  NodePilot.Ai.Tests/       xUnit: LLM client factory, endpoint guard, prompt catalog, gen/chat services
  NodePilot.Data.Tests/     xUnit: EF context + migrations
  NodePilot.Api.Tests/      xUnit: controllers, auth, telemetry, validation
  NodePilot.Cli.Tests/      xUnit + WireMock.Net: CLI ApiClient + DPAPI TokenStore
  NodePilot.Mcp.Tests/      xUnit + WireMock.Net: MCP tools + stdio-process smoke test
  NodePilot.LoadTests/      Standalone load harness (Console EXE, NBomber)
  NodePilot.Switcher.Tests/ xUnit - discovery, state machine, fail-closed switching
  NodePilot.TestCommons/    Shared test infrastructure (TestDbFactory, FakeLlmClient, fixtures)

grafana/                  Docker-compose stack: Prometheus + Grafana + 10 dashboards
deploy/                   Production install / update / uninstall PowerShell scripts
docs/                     Feature docs (AI, styleguide, perf, security, deployment)
samples/                  Example workflows for the importer

Dependency graph: Api → Ai, Engine, Scheduler, Data, Remote, Core, Telemetry Engine → Ai, Data, Remote, Core, Telemetry Scheduler → Engine, Data, Core · Ai → Core · Data → Core · Remote → Core · Telemetry → Core Cli → Core · Mcp → Core (HTTP-only, no backend project references)


Testing

Six CI jobs gate every pull request and every push to main: backend build and tests with an enforced 85 % line / 70 % branch coverage gate, database-provider integration tests, frontend lint/build/vitest, docs-site lint/tests/build, desktop-shell typecheck and tests, as well as hermetic Playwright E2E.

Tests are mandatory. Every behaviour change ships with tests in the same change. Which tests you run locally is scoped to what you touched. The full suite is CI's responsibility, not yours. Commands, the scoping rules and the guard-test mapping are documented in CONTRIBUTING.md and CLAUDE.md.

Two conventions are worth knowing beforehand: the WinRM remote layer is always mocked, and backend database tests run on in-memory SQLite, a test backend only, never a supported production provider.


Contributing

Contributions are welcome. CONTRIBUTING.md has the full setup: prerequisites, how to obtain a local PostgreSQL and a first admin account, the build and test commands, as well as the conventions that CI enforces.

The short version:

  1. Open an issue first for anything non-trivial, it saves a round of "we already explored that" review comments.
  2. Tests ship with the change, not after it. CI fails without them.
  3. No backwards-compat shims. NodePilot is greenfield, replace cleanly rather than keeping the old path alive behind a flag.
  4. Hand-built workflow JSON requires docs/workflow-styleguide.md first, layout rules, edge-label conventions, and engine gotchas.

A security problem does not belong in a public issue. SECURITY.md has the private reporting path. Everyone taking part is expected to follow the Code of Conduct.

CLAUDE.md is working notes for AI coding agents, not contributor documentation. It is checked in deliberately: NodePilot is built with agentic engineering, so the context an agent needs to work on this codebase belongs in the repository rather than in someone's private setup. What that does not change is the bar every change has to clear, behaviour changes ship with tests, and CI enforces the coverage gate on every pull request. CONTRIBUTING.md is the file written for people.


License

NodePilot is licensed under the Apache License 2.0. Use, modification and distribution are permitted, including commercially, provided that the copyright and license notices are retained. See LICENSE for the full text.


Acknowledgments


Further Reading

NodePilot (Sev7eNup/NodePilot)

正在搜索数据库…

这是什么?NodePilot 是一个用于构建和运行 Windows/PowerShell 自动化工作流的开源自托管平台,定位为 Microsoft System Center Orchestrator 的现代化无代理替代品。
它是 System Center Orchestrator 的替代品,还是只能导入其 runbook 的东西?两者都是:它是一个完整的独立编排产品,拥有自己的设计器、引擎、CLI 和 API,同时还能直接导入 SCOrch 2012/2016/2019 的原生 .oisexport XML,让现有 runbook 可以直接迁移进来而无需从零重建。
怎么把 NodePilot 跑起来?你可以通过纯浏览器的在线演示立即试用(无需安装),也可以通过 Docker Compose 或开箱即用的 PowerShell 安装程序正式部署——后者会把它设置为一个在 gMSA 下运行的 Windows 服务。
需要能以 WinRM 访问目标机器吗?AI 功能需要 API 密钥吗?远程步骤通过 WinRM 在目标 Windows 环境上执行(localhost 在进程内运行,无需 WinRM);AI 脚本/工作流生成是可选的,可使用 OpenAI,也可使用完全本地的 Ollama、LM Studio 或 vLLM 来实现零外发的部署。
导入的 System Center Orchestrator 工作流能立刻运行吗?不能——导入的工作流默认处于禁用状态,SCOrch 的凭据无法还原(因为 SCOrch 对其加密),导入报告还会标记有损转换(悬空引用、被丢弃的运行身份账户、无条件链接),这些都需要人工审查后才能启用。
需要在被自动化的 Windows 机器上安装代理吗?不需要——执行通过 WinRM 以无代理方式进行,与 SCOrch 使用的模式相同,因此目标机器只需启用 WinRM,无需安装任何 NodePilot 软件。
AI 聊天助手会把我的工作流数据发送到别处吗?聊天是只读的,且按知识源逐项选择启用(文档、限定文件夹的运维数据、源代码、只读 SQL);它从不执行或发布任何东西,而且在线演示本身完全在客户端运行,不向任何地方发送数据。
np CLI 是做什么用的?np 是一个功能齐全的运维客户端,用于登录、运行和监视工作流、审计、锁定/发布以及导入导出,以一个可加入 PATH 的自包含文件夹形式提供。
Claude 这类 AI 代理能直接控制 NodePilot 吗?可以,一个可选启用的 MCP 服务器(nodepilot-mcp)通过 HTTP 基于同一套 REST API 暴露 10 个组共 102 个工具,可在 Claude Code、Claude Desktop 或任何 MCP 客户端中使用,破坏性操作设有门控。
NodePilot 开箱支持哪些可观测性工具?可选启用的 OpenTelemetry/Prometheus 导出器,外加一套加固的、仅绑定环回地址的 Grafana 堆栈,预置了 10 个覆盖 Mission Control、Workflows、WinRM、Security 等的仪表盘;如果未设置 Grafana 管理员密码,它会直接拒绝启动。
Active Directory 单点登录功能适合生产使用吗?不适合,它被标记为预览(Preview)版:加固的 LDAP/Kerberos、OIDC 和 SCIM 以及基于目录的 RBAC 均已实现,但要达到生产状态还需通过真实 AD/Kerberos/LDAPS 环境的验证门槛。
作者
Sev7eNup
大小
62.9 MB
星标
205
时长
4个月
提交 · 90 天