能力标签
⚙️
Agent工作流

开源AI工作流:Open Gateway Protocol

基于 TypeScript · 无代码搭建完整 AI 自动化流程
英文名:ogp
⭐ 23 Stars 💻 TypeScript 📄 未公布协议 🏷 AI 7.5分
7.5AI 综合评分
workflowtypescript
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,开源AI工作流:Open Gateway Protocol 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

开源AI工作流:Open Gateway Protocol 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

开源AI工作流:Open Gateway Protocol 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 7.5 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

Open Gateway Protocol — federation daemon for AI agent gateways,提供了一个开源的AI工作流,支持AI代理网关的联邦化。

开源AI工作流:Open Gateway Protocol 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 23
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
未公布
AI 综合评分
7.5 分
工具类型
Agent工作流
Forks

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Open Gateway Protocol — federation daemon for AI agent gateways,提供了一个开源的AI工作流,支持AI代理网关的联邦化。

开源AI工作流:Open Gateway Protocol 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:npm 全局安装
npm install -g ogp

# 方式二:npx 直接运行(无需安装)
npx ogp --help

# 方式三:项目依赖安装
npm install ogp

# 方式四:从源码运行
git clone https://github.com/dp-pcs/ogp
cd ogp
npm install
npm start
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
ogp --help

# 基本用法
ogp [options] <input>

# Node.js 代码中使用
const ogp = require('ogp');

const result = await ogp.run(options);
console.log(result);
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# ogp 配置说明
# 查看配置选项
ogp --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export OGP_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 87/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

@dp-pcs/ogp

Open Gateway Protocol (OGP) - Federation for OpenClaw AI Gateways

npm version npm downloads license

🚧 Active build — releasing daily. This is moving fast. Check the changelog or npm show @dp-pcs/ogp version for the latest. If something in the docs doesn't match behavior, the code won the argument — file an issue or ping @lat3ntg3nius on X. 📝 Read the articles behind this build at Trilogy AI Center of Excellence.

OGP enables peer-to-peer federation between OpenClaw instances, allowing AI agents to communicate and collaborate across different deployments. Think of it as email for AI agents - each OpenClaw instance can securely send and receive messages from other instances without any central authority.

Key Features

Core Features

Prerequisites

  • Node.js 18 or higher
  • OpenClaw installed and running - Get it at https://openclaw.ai
  • OpenClaw API token - Generated during OpenClaw setup

Installation

npm install -g @dp-pcs/ogp

Or from GitHub:

npm install -g github:dp-pcs/ogp

After installation, install the OGP skills for Claude Code:

ogp-install-skills

This auto-discovers and installs all OGP skills from the skills/ directory. The installer now replaces each installed skill directory wholesale on upgrade so stale files from older package versions do not survive.

Verify the installed copies after an upgrade:

rg -n '^version:' ~/.openclaw/skills/ogp*/SKILL.md ~/.claude/skills/ogp*/SKILL.md 2>/dev/null

The installed skill versions should match the skills bundled with the @dp-pcs/ogp version you have installed (run ogp completion install / ogp-install-skills after upgrading to refresh them). If the reported versions are older than the bundled skills/*/SKILL.md in this package, re-run the skill installer.

1. Setup

Run the interactive setup wizard:

ogp setup

The wizard automatically detects installed frameworks and guides you through configuration. You'll be prompted for: - Framework Selection - Which AI frameworks to enable (OpenClaw, Hermes, or standalone) - Agent ID - Which agent owns each gateway (auto-discovers from framework config) - Daemon port (default: 18790 for OpenClaw, 18793 for Hermes) - Framework URL and API credentials - Your public gateway URL (can update later; rendezvous is optional discovery/invite sugar, not a replacement for reachability) - Rendezvous configuration (optional, v0.2.14+) - Display name and email

Working with Multiple Frameworks:

When multiple frameworks are configured, use the --for flag to specify which framework:

```bash

5. Install as a system service

cloudflared service install

Set identity during setup (auto-prompted)

ogp setup

Register a deployment intent

ogp intent register deployment \ --description "Deployment notifications"

Register deployment intent

ogp intent register deployment \ --session-key "agent:main:main" \ --description "Deployment notifications"

Getting Started

Build from Source

git clone https://github.com/dp-pcs/ogp.git
cd ogp
npm install
npm run build
npm link

Quick Start

Federation Examples

```bash

Project Examples (v0.2.0+)

```bash

Custom Intent Examples (v0.2.0+)

```bash

Agent-Comms Policy Examples (v0.2.0+)

```bash

4. Create config file at ~/.cloudflared/config.yml

cat > ~/.cloudflared/config.yml <<EOF tunnel: <TUNNEL_ID_FROM_STEP_2> credentials-file: ~/.cloudflared/<TUNNEL_ID>.json

ingress: - hostname: ogp.yourdomain.com service: http://localhost:18790 - service: http_status:404 EOF

6. Update your OGP config

ogp stop

Edit ~/.ogp/config.json and set "gatewayUrl": "https://ogp.yourdomain.com"

ogp start --background


Your URL is now `https://ogp.yourdomain.com` and will persist across restarts.

#### Option 2: ngrok (Good — Free tier available)

Good fallback if you don't have a domain on Cloudflare. The free tier gives you a stable subdomain that persists across restarts IF you're logged in with an ngrok account.

**Setup:**
bash

5. Update your OGP config

ogp stop

Edit ~/.ogp/config.json and set "gatewayUrl": "https://abc123.ngrok-free.app"

ogp start --background


Your ngrok URL will be stable as long as you're authenticated. You can also run `ngrok http 18790 --log stdout > ngrok.log 2>&1 &` to keep it running in the background.

#### Option 3: Cloudflare Anonymous Tunnel (Quick but Ephemeral)

Good for testing only. No account needed, but your URL changes every time you restart the tunnel, so peers need a new URL each time.
bash cloudflared tunnel --url http://localhost:18790 ```

Copy the displayed URL and update your gatewayUrl. Not recommended for ongoing federation — use this only for quick tests.

Option 4: Port Forwarding

Forward port 18790 on your router to your machine running OGP. Set gatewayUrl to http://YOUR_PUBLIC_IP:18790.

This works but exposes your home IP address. Most users should prefer the tunnel options above.

Configuration Management

CommandDescription
ogp config listList all configured frameworks
ogp config set-default <framework>Set default framework (no --for needed)
ogp config enable <framework>Enable a framework
ogp config disable <framework>Disable a framework
ogp config show [--for <framework>]Show current configuration
ogp config list-agentsList local personas for the active framework (v0.7.0+)
ogp config show-identityShow current identity + personas

Scope Options (v0.2.0)

When approving or granting scopes: - --intents <list> - Comma-separated intents (e.g., message,agent-comms) - --rate <limit> - Rate limit as requests/seconds (e.g., 100/3600) - --topics <list> - Topics for agent-comms (e.g., memory-management,task-delegation)

Configure global defaults

ogp agent-comms configure --global \ --topics "general,testing" \ --level summary

Configure specific peer

ogp agent-comms configure stan \ --topics "memory-management" \ --level full \ --notes "Trusted collaborator"

Multi-peer configuration

ogp agent-comms configure stan,leo,alice \ --topics "testing,debugging" \ --level full

Rendezvous — Optional Discovery And Invite Layer (v0.2.14+)

Rendezvous is an optional convenience layer for pubkey lookup and short invite codes. It is useful when you want easier onboarding for gateways that are already publicly reachable.

Configuration

Add the rendezvous block to ~/.ogp/config.json:

{
  "daemonPort": 18790,
  "openclawUrl": "http://localhost:18789",
  "openclawToken": "your-token",
  "rendezvous": {
    "enabled": true,
    "url": "https://rendezvous.elelem.expert"
  }
}

Rendezvous is optional. OGP works without it if peers can share public URLs directly.

For cloud/ECS gateways behind load balancers, set the OGP_PUBLIC_URL environment variable to override automatic IP detection:

export OGP_PUBLIC_URL=https://your-gateway.example.com
ogp start

Or add publicUrl to the rendezvous config:

{
  "rendezvous": {
    "enabled": true,
    "url": "https://rendezvous.elelem.expert",
    "publicUrl": "https://your-gateway.example.com"
  }
}

Configure your identity

ogp config set-identity \ --human-name "David Proctor" \ --agent-name "Junior" \ --organization "Trilogy"

Setting or Changing an Alias

```bash

Configure global defaults

ogp agent-comms configure --global --topics "general,testing" --level summary

Configure specific peer(s)

ogp agent-comms configure stan --topics "memory-management" --level full --notes "Trusted" ogp agent-comms configure stan,leo,alice --topics "testing" --level full # Multi-select

Settings

ogp agent-comms default summary # Set default level ogp agent-comms logging on # Enable/disable logging ```

Configuration

Configuration is stored in ~/.ogp/config.json:

{
  "daemonPort": 18790,
  "openclawUrl": "http://localhost:18789",
  "openclawToken": "your-openclaw-api-token",
  "gatewayUrl": "https://your-public-url.com",
  "displayName": "Your Name",
  "email": "you@example.com",
  "stateDir": "~/.ogp",
  "agentId": "main",
  "humanDeliveryTarget": "telegram:123456789",
  "inboundFederationPolicy": {
    "mode": "summarize"
  },
  "notifyTarget": "telegram:123456789",
  "notifyTargets": {
    "main": "telegram:123456789",
    "scribe": "telegram:987654321"
  },
  "rendezvous": {
    "enabled": true,
    "url": "https://rendezvous.elelem.expert",
    "publicUrl": "https://your-gateway.example.com"
  }
}

Environment Variables

  • OGP_PUBLIC_URL (v0.2.17+): Override automatic IP detection for rendezvous registration. Use this for cloud/ECS gateways behind load balancers where the detected IP differs from the public endpoint.
  export OGP_PUBLIC_URL=https://your-gateway.example.com
  ogp start
  

Takes precedence over rendezvous.publicUrl in config.json.

Or specify a custom alias for easier reference

ogp federation request https://peer.example.com --alias apollo

Human Delivery Preferences (v0.4.2+)

OGP has two separate questions to answer for inbound federation traffic:

  1. Where should human-facing followups go?
  2. How should the agent behave when a peer asks it to do something?

Those should not be inferred from the currently active conversation.

Configuration fields: - humanDeliveryTarget: Explicit human-facing destination for OGP-triggered followups. Examples: telegram:123456789 or a raw session key like agent:main:telegram:direct:123456789. - inboundFederationPolicy.mode: Default behavior for how the local agent should handle inbound federated requests.

For OpenClaw specifically, this configuration feeds the /hooks/agent delivery path. In other words: - humanDeliveryTarget tells OGP where human-facing followups should go - inboundFederationPolicy.mode tells the local agent how to treat federated requests once they arrive - OGP should not infer either of those from "whatever session is active right now"

Supported behavior modes: - forward: Tell me everything. Forward inbound federated items to my configured channel. - summarize: Summarize and surface only important, actionable, or uncertain items. - autonomous: Act autonomously when possible, but surface blockers, approvals, or explicit relay requests. - approval-required: Do not act on or reply to federated requests until I explicitly approve.

Example configuration:

{
  "agentId": "main",
  "humanDeliveryTarget": "telegram:123456789",
  "inboundFederationPolicy": {
    "mode": "autonomous"
  }
}

When you run ogp setup, the wizard asks for both: - the primary human delivery target for OGP followups - the default inbound federation handling mode

If the user wants to revisit just this part later, use:

ogp --for openclaw agent-comms interview
ogp --for hermes agent-comms interview

That command re-runs the delegated-authority / human-delivery interview for the active framework without repeating the rest of first-time setup.

What This Package Does

This is a companion daemon that adds federation capabilities to any standard OpenClaw installation. It runs alongside your OpenClaw instance on a separate port and handles:

  • Cryptographically signed peer-to-peer messaging using Ed25519
  • Peer relationship management (request, approve, reject)
  • Identity attribution with separate human and agent names (v0.5.0+)
  • Project collaboration with identity snapshots for historical accuracy (v0.6.0+)
  • Per-contribution signatures — every project contribution is author-signed and verified on receipt, with a stable ULID id (v0.8.0+)
  • Multi-agent personas — multiple local agents per gateway, listable via ogp config list-agents (v0.7.0+)
  • Single-daemon stateDir lock preventing duplicate ogp start write-races (v0.8.0+)
  • Message verification and relay to your OpenClaw agent
  • Public tunnel support (cloudflared/ngrok) for internet accessibility, managed via ogp tunnel
  • Optional macOS LaunchAgent for automatic startup

System Integration (macOS)

CommandDescription
ogp installInstall LaunchAgent for auto-start on login
ogp uninstallRemove LaunchAgent

Peer Aliases vs Public Key IDs

OGP uses two different identifiers for peers:

IdentifierPurposeExample
**Public Key ID**Cryptographic identity used in messagesabc123...def456 (Ed25519 public key)
**Alias**User-friendly name for CLI conveniencealice, big-papa, staging-server
🎯 aiskill88 AI 点评 A 级 2026-06-12

该项目提供了一个开源的AI工作流,支持AI代理网关的联邦化,但需要进一步优化和完善。

⚡ 核心功能

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 未明确开源协议,商用场景需谨慎评估
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

解答
💡 AI Skill Hub 点评

AI Skill Hub 点评:开源AI工作流:Open Gateway Protocol 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⚠️ 该工具未声明开源协议,不提供直接下载。请访问原项目了解使用条款。
📚 深入学习 开源AI工作流:Open Gateway Protocol
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 ogp
Topics workflowtypescript
GitHub https://github.com/dp-pcs/ogp
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/dp-pcs/ogp

收录时间:2026-06-12 · 更新时间:2026-06-12 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。