本地hermes对接web ui

hermes有一个开源web ui项目,页面精美。本地部署的hermes可以对接web ui。

参考文档:https://hermes-agent.nousresearch.com/docs/zh-Hans/user-guide/messaging/open-webui

 

前言

不管是对接webui还是各种通讯app都需要启动并配置gateway,启动并监听8642端口提供服务。

image

1. 检查gateway是否安装

  hermes gateway status

  或者查看是否有相关进程  ps aux | grep hermes

2. 如果未安装运行命令安装

  hermes gateway install # Install as a user service,mac上运行
  sudo hermes gateway install --system # Linux only: boot-time system service,linux 运行

3. 核心配置

  hermes config set API_SERVER_ENABLED true

 hermes config set API_SERVER_KEY your-secret-key(随便起一个并记住)
   hermes gateway stop && hermes gateway # 停止gateway 并重新启动,这个命令关闭控制台就停掉了,
  
   建议后台运行 cd ~/.hermes && nohup hermes gateway run > hermes.log 2>&1 &
 
4. 下载仓库 git clone https://github.com/nesquena/hermes-webui.git hermes-webui

31a8f730038b934165a871620197a659

 

5. 最后访问 http://localhost:8787/session/f4bbd41dee54

posted @ 2026-05-09 16:12  my日常work  阅读(26)  评论(0)    收藏  举报