经 AI Skill Hub 精选评估,开源AI工作流:Open Gateway Protocol 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
Open Gateway Protocol — federation daemon for AI agent gateways,提供了一个开源的AI工作流,支持AI代理网关的联邦化。
开源AI工作流:Open Gateway Protocol 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Open Gateway Protocol — federation daemon for AI agent gateways,提供了一个开源的AI工作流,支持AI代理网关的联邦化。
开源AI工作流:Open Gateway Protocol 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一: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
# 命令行使用
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"
Open Gateway Protocol (OGP) - Federation for OpenClaw AI Gateways
🚧 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.
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.
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
cloudflared service install
ogp setup
ogp intent register deployment \ --description "Deployment notifications"
ogp intent register deployment \ --session-key "agent:main:main" \ --description "Deployment notifications"
git clone https://github.com/dp-pcs/ogp.git
cd ogp
npm install
npm run build
npm link
```bash
```bash
```bash
```bash
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
ogp stop
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
ogp stop
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.
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.
| Command | Description |
|---|---|
ogp config list | List 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-agents | List local personas for the active framework (v0.7.0+) |
ogp config show-identity | Show current identity + personas |
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)
ogp agent-comms configure --global \ --topics "general,testing" \ --level summary
ogp agent-comms configure stan \ --topics "memory-management" \ --level full \ --notes "Trusted collaborator"
ogp agent-comms configure stan,leo,alice \ --topics "testing,debugging" \ --level full
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.
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"
}
}
ogp config set-identity \ --human-name "David Proctor" \ --agent-name "Junior" \ --organization "Trilogy"
```bash
ogp agent-comms configure --global --topics "general,testing" --level summary
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
ogp agent-comms default summary # Set default level ogp agent-comms logging on # Enable/disable logging ```
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"
}
}
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.
ogp federation request https://peer.example.com --alias apollo
OGP has two separate questions to answer for inbound federation traffic:
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.
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:
ogp config list-agents (v0.7.0+)ogp start write-races (v0.8.0+)ogp tunnel| Command | Description |
|---|---|
ogp install | Install LaunchAgent for auto-start on login |
ogp uninstall | Remove LaunchAgent |
OGP uses two different identifiers for peers:
| Identifier | Purpose | Example |
|---|---|---|
| **Public Key ID** | Cryptographic identity used in messages | abc123...def456 (Ed25519 public key) |
| **Alias** | User-friendly name for CLI convenience | alice, big-papa, staging-server |
该项目提供了一个开源的AI工作流,支持AI代理网关的联邦化,但需要进一步优化和完善。
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
AI Skill Hub 点评:开源AI工作流:Open Gateway Protocol 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | ogp |
| Topics | workflowtypescript |
| GitHub | https://github.com/dp-pcs/ogp |
| 语言 | TypeScript |
收录时间:2026-06-12 · 更新时间:2026-06-12 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端