← 返回首页

OpenHarness: 开源 Agent Harness,一键解锁所有 Agent 能力

OpenHarness: 开源 Agent Harness,一键解锁所有 Agent 能力

OpenHarness 是一个面向开源社区的 Agent Harness。它提供轻量、可扩展、可检查的 Agent 基础设施。

项目地址:https://github.com/HKUDS/OpenHarness


核心特性一览

🔄 Agent Loop

🔧 Harness Toolkit

🧠 Context & Memory

🛡️ Governance

🤝 Swarm Coordination


快速开始

一键安装

curl -fsSL https://raw.githubusercontent.com/HKUDS/OpenHarness/main/scripts/install.sh | bash

常用参数:

本地运行

git clone https://github.com/HKUDS/OpenHarness.git
cd OpenHarness
uv sync --extra dev
uv run oh

配置模型与 Provider

最推荐的入口是 oh setup,引导式完成以下步骤:

  1. 选择一个 workflow
  2. 如果需要,完成认证
  3. 选择具体后端 preset
  4. 确认模型
  5. 保存并激活 profile

内置支持的 provider 包括:

Provider说明
Anthropic-Compatible APIClaude / Kimi / GLM / MiniMax 等
Claude Subscription复用本地 credentials
OpenAI-Compatible APIOpenAI / OpenRouter / DeepSeek 等
Codex SubscriptionCodex 订阅
GitHub CopilotGitHub Copilot OAuth

ohmo:Personal Agent App

ohmo 是基于 OpenHarness 的 personal-agent app。

初始化

ohmo init

会创建以下文件:

配置 Channel

目前支持引导式配置的 IM channel:

运行

ohmo              # 运行 personal agent
ohmo gateway run  # 前台运行 gateway
ohmo status       # 查看状态

常用命令

oh

oh setup                       # 统一配置入口
oh provider list               # 查看已有 profile
oh provider use <profile>      # 切换当前 workflow
oh auth status                 # 查看认证状态
oh -p "Explain this codebase" # 非交互模式

ohmo

ohmo init    # 初始化
ohmo config  # 配置
ohmo         # 运行 personal agent

测试

uv run pytest -q
python scripts/test_harness_features.py

结语

OpenHarness 正在快速迭代中,对 Agent 开发感兴趣的同学可以关注一下这个项目。

AIAgent开源OpenHarness
毅哥哥
🧑‍💻
毅哥哥
记录生活、观点与碎碎念。咖啡与蛤蜊,一个温暖一个坚硬。
💬 评论区
📚
转载声明

本文未经作者授权,禁止任何形式的转载。如需转载,请联系作者获得许可。© CafeClam · 毅哥哥

← 返回首页