> ## Documentation Index
> Fetch the complete documentation index at: https://onehop.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 如何把 OneHop配置到 Hermes

\---感谢用户投稿--

第一步：登录[onehop.ai](oneh.ai)，进行注册登录，进入自己的控制台，在页面左侧—API 密钥—创建 API key

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-28.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=e9515cd03dad09da518158e65ed5f74f" alt="Image" width="1102" height="544" data-path="images/image-28.png" />

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-29.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=efd18cb27df278bc362e3d5c316d0df8" alt="Image" width="1100" height="532" data-path="images/image-29.png" />

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-30.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=9bdf3635ce28c85ed71c29054922a716" alt="Image" width="1098" height="544" data-path="images/image-30.png" />

第二步：点击创建key在弹出的界面修改key名称，我因为是用于hermes，所以直接修改为hermes提醒自己这个key的用途，其余不用改直接点击保存。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-31.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=e5cd2ac212017b9e08ef717175011733" alt="Image" width="1110" height="554" data-path="images/image-31.png" />

第三步：保存之后弹出的界面有两个重要的信息，API key和baseurl，已在图中标红处。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-32.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=84739a38036451d34afddbf4f8a3577d" alt="Image" width="1106" height="542" data-path="images/image-32.png" />

第四步：此时进入hermes-web-ui（这是hermes的第三方web项目，建议新手小白可以装一个，比较方便进行各种配置，安装起来也是比较简单，两步命令就完成了，首先npm install –g hermes-web-ui\@latest，等待hermes-web-ui安装完成。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-33.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=70de8ba40d69665f4c334680a00a405d" alt="Image" width="1098" height="632" data-path="images/image-33.png" />

然后输入命令hermes-web-ui start，启动hermes-web-ui服务，启动成功后会弹出网址链接[<u>http://localhost:8648</u>](http://localhost:8648)

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-34.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=507783b7f57b0cf5836d915ddd70dc0c" alt="Image" width="1092" height="614" data-path="images/image-34.png" />

第五步：再去浏览器登陆这个网址，输入默认账号密码。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-35.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=098c4adbf36580a26d65d72d74e58dbf" alt="Image" width="1096" height="760" data-path="images/image-35.png" />

第六步：登陆进去之后点击左下角【设置】，进入设置界面以后点击【模型】，在模型界面，点击右上角添加【Provider】。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-36.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=47270a2dd0ffa1c04ff66cc36fd15789" alt="Image" width="1082" height="820" data-path="images/image-36.png" />

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-37.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=15af0601863514a55b39baf90751d8fd" alt="Image" width="1096" height="822" data-path="images/image-37.png" />

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-38.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=f4f894de34e401c9c7ff87cf8369af6b" alt="Image" width="1096" height="530" data-path="images/image-38.png" />

第七步：在弹出的界面中首先选择上面的自定义，然后填入刚刚在onehop控制台获取的baseurl和apikey，baseurl是通用的，但是apikey是私人的要注意保密（我写完教程就会删掉这个apikey），然后点击获取就会自动抓取网站可用的模型，最后点击添加就完成了模型配置了。接下来我们试用一下这个模型，创建一个新对话。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-39.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=b3a7914f248a38d202c6f998fe457f61" alt="Image" width="1098" height="538" data-path="images/image-39.png" />

第八步：在弹出的界面中首先选择刚刚自定义的onehop模型提供方，然后在模型列表下拉框中选择自己想用的模型，我这边就以为gpt-5.6-terra为例（日常对话，编程要求不高的情况下terra足够用了），最后点击创建。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-40.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=ba7fac926539316bd5a84812b37c9fd2" alt="Image" width="1094" height="530" data-path="images/image-40.png" />

第九步：然后在新建的对话框里输入你的问题，我首先提问了你是用的什么模型，回答我是openai/gpt-5.6-terra，确实跟我选的模型一样，说明应该是没有掺别的模型混用的，我们再提问他能帮我们做什么工作。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-41.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=4276fd65adc64f1fb603d8d841a0a74f" alt="Image" width="992" height="1332" data-path="images/image-41.png" />

我因为已经用了很长时间了，hermes已经记住了我的日常工作内容，所以能够按照我的喜好告诉我它能够帮我做什么。

第十步：又让它给我分析了一下万华化学的基本面和技术面指标，洋洋洒洒写了一大堆，还是比较全面的。基本上到这一步就已经学会如何使用了，下面我们看一下控制台模型的使用记录。

<img src="https://mintcdn.com/onehop/sdbIQwRUS3pZBl6m/images/image-42.png?fit=max&auto=format&n=sdbIQwRUS3pZBl6m&q=85&s=52368479de03c6833f1dc5d160efe593" alt="Image" width="1018" height="512" data-path="images/image-42.png" />

可以看到这几轮对话总共使用了501.73Ktokens，缓存命中率也是正常的，如果持续对话下去缓存命中率只会更高，平均延迟也是相当的低，当然的最后花费比官方便宜太多了，可以狠狠的蹬起来了。
