经 AI Skill Hub 精选评估,去中心化知识图谱 获评「强烈推荐」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
去中心化知识图谱 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
去中心化知识图谱 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g dkg # 方式二:npx 直接运行(无需安装) npx dkg --help # 方式三:项目依赖安装 npm install dkg # 方式四:从源码运行 git clone https://github.com/OriginTrail/dkg cd dkg npm install npm start
# 命令行使用
dkg --help
# 基本用法
dkg [options] <input>
# Node.js 代码中使用
const dkg = require('dkg');
const result = await dkg.run(options);
console.log(result);
# dkg 配置说明 # 查看配置选项 dkg --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export DKG_CONFIG="/path/to/config.yml"
<video src="https://github.com/user-attachments/assets/869cecf2-c7e7-4d29-9a6e-9e5e6108b6a1" poster="https://github.com/OriginTrail/dkg/raw/main/docs/assets/dkg-v10.png" width="1536" autoplay loop muted playsinline controls> <img width="1536" height="1024" alt="dkg_img" src="docs/assets/dkg-v10.png" /> </video>
Give your AI agents the ultimate memory that survives the session.
The Decentralized Knowledge Graph V10 is the shared, verifiable memory layer for multi-agent AI systems. Every finding your agents produce can flow from a private draft to a team-visible share to a durable, cryptographically anchored record — queryable by permitted agents and owned by the publisher. No black boxes. No vendor lock-in. No context that evaporates when the session ends.
---
Use the node APIs and packages to publish Knowledge Assets, query data, and coordinate through context graphs.
| Guide | Use it when |
|---|---|
| [Quickstart](docs/getting-started/quickstart.md) | You want to install a node and connect an agent framework |
| [MCP Setup](packages/mcp-dkg/README.md) | You want Cursor / Claude Code / Claude Desktop / Windsurf / VSCode + Copilot / Cline / Codex CLI to use DKG as memory |
| [Publish & Query](docs/use-dkg/publish-and-query.md) | You want a first Knowledge Asset publish/query flow |
| [OpenClaw Setup](packages/adapter-openclaw/README.md) | You want OpenClaw to use DKG as memory/tools |
| [Hermes Setup](packages/adapter-hermes/README.md) | You want Hermes Agent to use DKG as memory/tools |
| [ElizaOS Setup](packages/adapter-elizaos/README.md) | You want ElizaOS integration |
| [API Reference](docs/references/api.md) | You are wiring an agent framework not covered above |
| [Funding](docs/use-dkg/funding.md) | You need gas or TRAC for chain operations |
---
Prerequisites: Node.js 22.13+ (or 23.4+), npm 10+. macOS, Linux, and Windows (PowerShell 5.1+ or WSL2) all supported.
dkg publisher enable # enable the async publisher dkg publisher publish-async <cg> <name> [--publisher-node-identity-id 0] # alias for dkg ka publish-async dkg publisher jobs # list publisher jobs dkg publisher stats # publisher throughput stats
```bash dkg init # interactive setup — network, node name, role, triple-store backend dkg start [-f] # start the node daemon (-f for foreground) dkg stop # graceful shutdown dkg status # node health, peer count, store status dkg logs # tail the daemon log dkg peers # list discovered agents on the network dkg peer info <peer-id> # inspect a peer's identity and addresses
Node APIs use bearer token auth by default.
The token is created on first run and stored in:
~/.dkg/auth.token
Example:
TOKEN=$(dkg auth show)
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:9200/api/agents
The dashboard signs in with this token automatically only when it is opened on the node host itself (http://127.0.0.1:9200/ui or http://localhost:9200/ui). Opened from another machine or under another host name, it asks for the token instead; an SSH tunnel to the API port keeps the automatic sign-in. A reverse proxy that adds forwarding headers (Forwarded, any X-Forwarded-*, X-Real-IP, X-Client-IP, True-Client-IP, CF-Connecting-IP, Via) is treated as remote. One on the node host that forwards with a loopback Host and adds none of them (e.g. nginx's default proxy_set_header Host $proxy_host) still looks like a local caller, so keep authentication in front of any proxy that exposes the dashboard beyond the node host.
Operations that act on the whole node (node settings and logs, shutdown, agent registration, local agent integrations, bulk publisher-queue changes) require this node-level token. Agent-scoped tokens receive 403 there.
The full node API surface (assertions, memory layers, context graphs, file ingestion, querying) is documented in packages/cli/skills/dkg-node/SKILL.md — this is the canonical reference loaded by any DKG-aware agent.
---
Beyond the first-party framework adapters above, DKG V10 supports community-contributed integrations — CLIs, MCP servers, agent plugins, and services that run against your local node through its public HTTP API, dkg CLI, or MCP interface. They live in contributor-owned repositories and are discovered through the OriginTrail/dkg-integrations registry.
dkg integration list # list verified + featured tiers (default)
dkg integration list --tier community # include community-tier (contributor-submitted) entries
dkg integration info <slug> # inspect a single entry
dkg integration install <slug> # install — automates `cli` and `mcp` install kinds
dkg integration install <slug> --allow-community # required to install a community-tier entry
By design, list shows only verified and featured tiers and install refuses community-tier entries unless you opt in — community submissions haven't been peer-reviewed by the OriginTrail core team, so discovering and installing them is an explicit choice. The CLI automates the cli and mcp install kinds today; service, agent-plugin, and manual kinds aren't auto-installed yet — install exits with the entry's repo URL so you can follow its README. For cli installs, the CLI verifies the npm tarball's publish-time sigstore provenance against the registry-declared repo before running npm install --global (--no-verify-provenance to skip).
Building one: fork the minimal, zero-dependency reference template at OriginTrail/dkg-hello-world, which demonstrates a full Working Memory write → read round trip. Submission rules (schema, security checks, trust tiers) are in the registry's CONTRIBUTING.md.
---
dkg integration list [--tier community] # default tier filter is verified+ dkg integration info <slug> # show details for one entry dkg integration install <slug> # install cli/mcp kind; --allow-community for community-tier entries
@origintrail-official/dkg CLI and node lifecycle (daemon, HTTP API, file store)
@origintrail-official/dkg-core P2P networking, protocol, crypto, memory model types
@origintrail-official/dkg-storage Triple-store interfaces and adapters
@origintrail-official/dkg-chain Blockchain abstraction
@origintrail-official/dkg-publisher Publish and finalization pipeline (SWM → VM)
@origintrail-official/dkg-query Query execution and retrieval
@origintrail-official/dkg-agent Identity, discovery, messaging, wallet keys
@origintrail-official/dkg-node-ui Web dashboard, chat memory, SPARQL explorer
@origintrail-official/dkg-node-store Daemon protocol persistence (outbox, sync checkpoints, cursors, KA numbers, chain log)
@origintrail-official/dkg-graph-viz RDF visualization
@origintrail-official/dkg-evm-module Solidity contracts and deployment assets
@origintrail-official/dkg-network-sim Multi-node simulation tooling
@origintrail-official/dkg-epcis EPCIS → RDF supply-chain adapter
@origintrail-official/dkg-mcp MCP server for Cursor / Claude Code / coding agents
高质量的开源AI工作流项目
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:去中心化知识图谱 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | dkg |
| 原始描述 | 开源AI工作流:OriginTrail Decentralized Knowledge Graph (DKG) is a decentralized knowledge inf。⭐137 · TypeScript |
| Topics | ai去中心化知识图谱ethereum |
| GitHub | https://github.com/OriginTrail/dkg |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端