{"id":20101,"date":"2026-04-20T16:12:43","date_gmt":"2026-04-20T08:12:43","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=20101"},"modified":"2026-08-18T17:30:28","modified_gmt":"2026-08-18T09:30:28","slug":"20101","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2026\/04\/20\/20101\/","title":{"rendered":"Hermes agent\u90e8\u7f72\u4ee5\u53ca\u5f00\u542fHTTP API\u63a5\u53e3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hermes Agent \u662f\u7531 <strong>Nous Research<\/strong>\u200b \u5f00\u53d1\u7684\u4e00\u6b3e<strong>\u5f00\u6e90\u81ea\u4e3b AI \u667a\u80fd\u4f53\u6846\u67b6<\/strong>\u3002\u5b83\u6700\u5927\u7684\u7279\u70b9\u662f\u5177\u5907<strong>\u201c\u81ea\u6211\u8fdb\u5316\u201d\u80fd\u529b<\/strong>\u2014\u2014\u5b83\u80fd\u5728\u670d\u52a1\u5668\u4e0a 7\u00d724 \u5c0f\u65f6\u8fd0\u884c\uff0c\u901a\u8fc7\u201c\u6267\u884c-\u53cd\u601d-\u6c89\u6dc0\u201d\u7684\u95ed\u73af\uff0c\u5c06\u4f60\u7684\u64cd\u4f5c\u4e60\u60ef\u81ea\u52a8\u56fa\u5316\u4e3a\u53ef\u590d\u7528\u7684\u6280\u80fd\uff0c\u5b9e\u73b0\u201c\u8d8a\u7528\u8d8a\u806a\u660e\u201d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f18\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b66\u4e60\u95ed\u73af\uff08Self-Improving\uff09<\/strong>\uff1a\u8fd9\u662f\u5b83\u6700\u6838\u5fc3\u7684\u5dee\u5f02\u70b9\u3002\u4f20\u7edf AI \u6bcf\u6b21\u5bf9\u8bdd\u90fd\u662f\u201c\u5931\u5fc6\u201d\u7684\uff0c\u800c Hermes \u4f1a\u81ea\u52a8\u5c06\u6210\u529f\u7684\u4efb\u52a1\u6d41\u7a0b\u603b\u7ed3\u6210 <strong>Markdown \u683c\u5f0f\u7684 Skill\uff08\u6280\u80fd\uff09<\/strong>\u3002\u4e0b\u6b21\u9047\u5230\u7c7b\u4f3c\u4efb\u52a1\uff0c\u5b83\u4f1a\u76f4\u63a5\u8c03\u7528\u4f18\u5316\u540e\u7684\u6280\u80fd\uff0c\u4e0d\u518d\u4ece\u96f6\u5f00\u59cb<\/li>\n\n\n\n<li><strong>\u6301\u4e45\u8bb0\u5fc6\uff08Persistent Memory\uff09<\/strong>\uff1a\u57fa\u4e8e SQLite + FTS5 \u5168\u6587\u68c0\u7d22\uff0c\u5b83\u80fd\u8de8\u4f1a\u8bdd\u8bb0\u4f4f\u4f60\u7684\u9879\u76ee\u4e0a\u4e0b\u6587\u3001\u504f\u597d\u548c\u957f\u671f\u7ea6\u675f\uff0c\u4e0d\u518d\u9700\u8981\u4f60\u6bcf\u6b21\u90fd\u91cd\u590d\u80cc\u666f\u4fe1\u606f<\/li>\n\n\n\n<li><strong>\u5de5\u5177\u72c2\u9b54\uff0840+ Tools\uff09<\/strong>\uff1a\u539f\u751f\u652f\u6301\u7ec8\u7aef\u547d\u4ee4\u6267\u884c\u3001\u6587\u4ef6\u64cd\u4f5c\u3001\u7f51\u9875\u6293\u53d6\u3001\u622a\u56fe\u8bc6\u522b\u7b49\uff0c\u5e76\u53ef\u901a\u8fc7 <strong>MCP\uff08Model Context Protocol\uff09<\/strong>\u200b \u65e0\u9650\u6269\u5c55\u5de5\u5177\u94fe\uff08\u5982\u8fde\u63a5\u6570\u636e\u5e93\u3001K8s\uff09<\/li>\n\n\n\n<li><strong>\u591a\u5e73\u53f0\u7f51\u5173<\/strong>\uff1a\u4e00\u4e2a\u540e\u53f0\u53ef\u540c\u65f6\u63a5\u5165 <strong>Telegram\u3001Discord\u3001\u5fae\u4fe1\u3001\u98de\u4e66\u3001\u9489\u9489\u3001CLI<\/strong>\u200b \u7b49 10+ \u4e2a\u5165\u53e3\uff0c\u8ba9\u4f60\u968f\u65f6\u968f\u5730\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u6307\u6325\u5b83\u5e72\u6d3b\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u80fd\u505a\u4ec0\u4e48\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u81ea\u52a8\u5316 DevOps<\/strong>\uff1a\u8ba9\u5b83\u5e2e\u4f60\u5b9a\u65f6\u62c9\u53d6\u4ee3\u7801\u3001\u8fd0\u884c\u6d4b\u8bd5\u3001\u6e05\u7406\u65e5\u5fd7\uff0c\u751a\u81f3\u901a\u8fc7 SSH \u7ba1\u7406\u8fdc\u7a0b\u670d\u52a1\u5668<\/li>\n\n\n\n<li><strong>\u4e2a\u4eba\u6570\u5b57\u52a9\u7406<\/strong>\uff1a\u5728\u5fae\u4fe1\/\u98de\u4e66\u4e2d\u76f4\u63a5\u8ba9\u5b83\u201c\u5e2e\u6211\u67e5\u4e00\u4e0b\u4eca\u5929\u670d\u52a1\u5668\u8d1f\u8f7d\u201d\u6216\u201c\u603b\u7ed3\u8fd9\u5468\u7684 commit \u8bb0\u5f55\u201d<\/li>\n\n\n\n<li><strong>\u4ee3\u7801\u534f\u540c<\/strong>\uff1a\u914d\u5408\u5927\u6a21\u578b\u4f5c\u4e3a\u5927\u8111\uff0cHermes \u4f5c\u4e3a\u624b\u811a\uff0c\u5b9e\u73b0\u201c\u53e3\u8ff0\u9700\u6c42 -&gt; \u81ea\u52a8\u5199\u4ee3\u7801 -&gt; \u81ea\u52a8\u6d4b\u8bd5\u201d\u7684\u5168\u6d41\u7a0b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0eopenclaw\u54ea\u4e2a\u66f4\u5f3a\uff1f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8fd9\u4e24\u4e2a\u6846\u67b6\u6ca1\u6709\u7edd\u5bf9\u7684\u201c\u5f3a\u5f31\u201d\u4e4b\u5206\uff0c\u5b83\u4eec\u7684<strong>\u8bbe\u8ba1\u54f2\u5b66<\/strong>\u548c<strong>\u9002\u7528\u573a\u666f<\/strong>\u622a\u7136\u4e0d\u540c\u3002<strong>Hermes Agent \u662f\u201c\u4f1a\u8fdb\u5316\u7684\u6570\u5b57\u540c\u4e8b\u201d\uff0cOpenClaw \u662f\u201c\u8fde\u63a5\u4e00\u5207\u7684\u8d85\u7ea7\u7f51\u5173\u201d\u3002<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6838\u5fc3\u5bf9\u6bd4\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u7ef4\u5ea6<\/th><th>Hermes Agent<\/th><th>OpenClaw (\u9f99\u867e)<\/th><\/tr><\/thead><tbody><tr><td><strong>\u6838\u5fc3\u6807\u7b7e<\/strong><\/td><td>\u81ea\u6211\u8fdb\u5316 (Self-Improving)<\/td><td>\u6d88\u606f\u7f51\u5173 (Gateway)<\/td><\/tr><tr><td><strong>\u8bbe\u8ba1\u76ee\u6807<\/strong><\/td><td>\u8ba9 AI Agent \u8d8a\u7528\u8d8a\u806a\u660e\uff0c\u6c89\u6dc0\u4e13\u5c5e\u6280\u80fd\u548c\u8bb0\u5fc6<\/td><td>\u8ba9\u4f60\u7528\u4e00\u4e2a Agent \u540c\u65f6\u5bf9\u63a5 20+ \u5e73\u53f0\uff08TG \/ \u5fae\u4fe1 \/ \u7f51\u9875\u7b49\uff09<\/td><\/tr><tr><td><strong>\u6838\u5fc3\u4f18\u52bf<\/strong><\/td><td>\u6df1\u5ea6\u8bb0\u5fc6\u3001\u6280\u80fd\u81ea\u52a8\u751f\u6210\uff0c\u5f3a\u5b66\u4e60\u80fd\u529b<\/td><td>\u751f\u6001\u6781\u4e30\u5bcc\uff0c\u6d88\u606f\u5206\u53d1\u548c\u591a\u5e73\u53f0\u63a5\u5165\u80fd\u529b\u62c9\u6ee1<\/td><\/tr><tr><td><strong>\u5178\u578b\u7528\u6237<\/strong><\/td><td>\u6280\u672f\u73a9\u5bb6\u3001DevOps \/ \u5f00\u53d1\u8005\uff0c\u60f3\u8981\u5b9a\u5236\u5316\u80fd\u529b<\/td><td>\u666e\u901a\u7528\u6237\u3001\u81ea\u52a8\u5316\u7231\u597d\u8005\uff0c\u60f3\u8981\u5feb\u901f\u7528\u8d77\u6765<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u9009\u578b\u51b3\u7b56\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9009 Hermes Agent<\/strong>\uff1a\u5982\u679c\u4f60\u662f<strong>\u5f00\u53d1\u8005<\/strong>\uff0c\u5728\u6df1\u5733\u6709\u670d\u52a1\u5668\uff0c\u9700\u8981 AI <strong>\u5e2e\u4f60\u5199\u4ee3\u7801\u3001\u7ba1\u7406\u670d\u52a1\u5668\u3001\u5e76\u8bb0\u4f4f\u590d\u6742\u7684\u9879\u76ee\u4e0a\u4e0b\u6587<\/strong>\u3002\u5b83\u662f\u201c\u6280\u672f\u6d3e\u201d\u7684\u9996\u9009\u3002<\/li>\n\n\n\n<li><strong>\u9009 OpenClaw<\/strong>\uff1a\u5982\u679c\u4f60\u4e3b\u8981\u7528 <strong>Mac\/Windows \u672c\u5730\u7535\u8111<\/strong>\uff0c\u60f3\u901a\u8fc7<strong>\u624b\u673a\u5fae\u4fe1\/Telegram \u8fdc\u7a0b\u63a7\u5236\u7535\u8111<\/strong>\uff08\u5982\u8ba9 AI \u5e2e\u4f60\u53d1\u90ae\u4ef6\u3001\u6574\u7406\u684c\u9762\u6587\u4ef6\uff09\uff0c\u6216\u8005\u9700\u8981\u5feb\u901f\u63a5\u5165\u5927\u91cf\u73b0\u6210\u63d2\u4ef6<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3<\/strong>\uff1a<strong>\u5199\u4ee3\u7801\u3001\u641e\u8fd0\u7ef4\u3001\u505a\u7814\u7a76\u9009 Hermes\uff1b\u8fde\u5fae\u4fe1\u3001\u73a9\u63d2\u4ef6\u3001\u505a\u52a9\u7406\u9009 OpenClaw<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GitHub\u7684\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/NousResearch\/hermes-agent<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e2d\u6587\u793e\u533a\u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;hermesagent.org.cn\/<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u672c\u5730\u90e8\u7f72(\u63a8\u8350\uff0c\u529f\u80fd\u5168)<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u5b89\u88c5\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">\u666e\u901a\u7528\u6237\u4e0b<\/mark><\/strong>\u6267\u884c\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/raw.githubusercontent.com\/NousResearch\/hermes-agent\/main\/scripts\/install.sh | bash<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6216\u8005\u4e2d\u6587\u793e\u533a\u7684\u5b89\u88c5\u811a\u672c\uff0c\u53ef\u52a0\u901f\u5b89\u88c5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/res1.hermesagent.org.cn\/install.sh | bash<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"616\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5.png\" alt=\"\" class=\"wp-image-20787\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5.png 654w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5-300x283.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5-600x565.png 600w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u5b8c\u6210\u540e\u6309\u7167\u63d0\u793a\u52a0\u8f7d\u73af\u5883\u53d8\u91cf\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u6b63\u5e38\u770b\u5230\u7248\u672c\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source \/root\/.bashrc\nhermes --version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u5982\u679c\u9700\u8981\u5bf9\u63a5\u6d88\u606f\u5e73\u53f0\uff0c\u6bd4\u5982\u98de\u4e66\u3001\u5fae\u4fe1\uff0c\u90a3\u5c31\u9700\u8981\u542f\u7528gatewa<\/mark><\/strong>y\uff0c\u4e0a\u56fe\u4e2d\u5df2\u7ecf\u7ed9\u4e86\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u95ee\u7b54\u76f4\u63a5\u9ed8\u8ba4y\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Start the gateway now after installing the service? &#91;Y\/n]: y\nStart the gateway automatically on login\/boot with systemd? &#91;Y\/n]: y<\/code><\/pre>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\">\u6ce8\uff1a\u5b89\u88c5\u540e\u7684service\u4f4d\u7f6e\u5728~\/.config\/systemd\/users\u76ee\u5f55\u4e0b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u7528\u6237\u670d\u52a1\u542f\u505c\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u91cd\u8f7d\nsystemctl --user daemon-reload\n# \u5f00\u673a\u81ea\u542f\nsystemctl --user enable hermes-gateway\n# \u542f\u52a8\nsystemctl --user start hermes-gateway\n# \u67e5\u770b\u72b6\u6001\nsystemctl --user status hermes-gateway<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"311\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/6.png\" alt=\"\" class=\"wp-image-20788\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/6.png 652w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/6-300x143.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/6-600x286.png 600w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1a\u5982\u679c\u662f\u521b\u5efa\u7684\u5176\u4ed6profile\uff0c\u90a3\u4e48\u5c31\u4f7f\u7528\u5176\u4ed6\u7684profile\u6765\u5b89\u88c5gateway\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes profile create abcd\nabcd gateway install\nsystemctl --user daemon-reload\nsystemctl --user enable hermes-gateway-abcd\nsystemctl --user start hermes-gateway-abcd<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">docker\u90e8\u7f72<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u5148\u521b\u5efa\u6865\u63a5\u7f51\u7edc\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker network create -d bridge hermes-net<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u521b\u5efa\u672c\u5730\u76ee\u5f55\uff0c\u6620\u5c04\u5230\u5bb9\u5668\u4e2d\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/data\/hermes &amp;&amp; chmod 777 \/data\/hermes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u7f16\u8f91docker-compose.yaml\uff0cdashboard\u4e5f\u662f\u5185\u7f6e\u7684\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>services:\n  hermes:\n    image: nousresearch\/hermes-agent:latest\n    container_name: hermes\n    restart: unless-stopped\n    command: gateway run\n    ports:\n      - \"8642:8642\"\n    volumes:\n      - \/data\/hermes:\/opt\/data\n    networks:\n      - hermes-net\n        #    deploy:\n        #      resources:\n        #        limits:\n        #          memory: 4G\n        #          cpus: \"2.0\"\n\n  dashboard:\n    image: nousresearch\/hermes-agent:latest\n    container_name: hermes-dashboard\n    restart: unless-stopped\n    command: dashboard --host 0.0.0.0 --insecure\n    ports:\n      - \"9119:9119\"\n    volumes:\n      - \/data\/hermes:\/opt\/data\n    environment:\n      - GATEWAY_HEALTH_URL=http:\/\/hermes:8642\n    networks:\n      - hermes-net\n    depends_on:\n      - hermes\n        #    deploy:\n        #      resources:\n        #        limits:\n        #          memory: 512M\n        #          cpus: \"0.5\"\n\nnetworks:\n  hermes-net:\n    driver: bridge\n    name: hermes-net<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u6267\u884c\u547d\u4ee4\u542f\u52a8hermes agent \u548cdashboard\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker-compose up -d<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u901a\u8fc7IP:9119\u53ef\u4ee5\u767b\u5f55\u5230dashboard\u9875\u9762\u5148\u5207\u6362\u5230\u4e2d\u6587\u72b6\u6001\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"651\" height=\"250\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/9-2.png\" alt=\"\" class=\"wp-image-20114\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/9-2.png 651w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/9-2-300x115.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/9-2-600x230.png 600w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5\u3001\u914d\u7f6e\u6a21\u578b\uff0c\u6211\u8fd9\u91cc\u6f14\u793a\u7684\u662f\u914d\u7f6e\u82f1\u4f1f\u8fbe\u6a21\u578b\uff0c\u70b9\u51fb\u5bc6\u94a5&#8211;LLM\u63d0\u4f9b\u5546&#8211;\u5176\u4ed6\uff0c\u586b\u5199nvidia\u7684url\u548c\u5bc6\u94a5\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"411\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/11-1.png\" alt=\"\" class=\"wp-image-20118\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/11-1.png 654w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/11-1-300x189.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/11-1-600x377.png 600w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u5728\u914d\u7f6e&#8211;\u901a\u7528-model\u91cc\uff0c\u914d\u7f6e\u6a21\u578b\u540d\uff0c\u7b7e\u540d\u4e0d\u7528\u52a0nvidia\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"268\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/12-1.png\" alt=\"\" class=\"wp-image-20120\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/12-1.png 649w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/12-1-300x124.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/12-1-600x248.png 600w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6\u3001\u6d4b\u8bd5\uff0c\u8fdb\u5165\u5bb9\u5668\u4e2d\uff0c\u6267\u884c\u547d\u4ee4\uff0c\u8fdb\u5165\u5230\u804a\u5929\u754c\u9762\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/hermes\/.venv\/bin\/hermes chat<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"400\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/13-1.png\" alt=\"\" class=\"wp-image-20122\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/13-1.png 645w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/13-1-300x186.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/04\/13-1-600x372.png 600w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u5f00\u542fHTTP API\u63a5\u53e3<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f00\u542fHTTP API\u63a5\u53e3\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b2c\u4e09\u65b9\u5e94\u7528\u8c03\u7528\uff0c\u6bd4\u5982\u901a\u8fc7golang\u8c03\u7528\u63a5\u53e3\uff0c\u5f00\u542f\u65b9\u6cd5<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001API\u5f00\u8d77\u65b9\u5f0f\u53ea\u80fd\u901a\u8fc7.env\u6587\u4ef6\u65b9\u5f0f\uff0c\u5199\u5165\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat >> ~\/.hermes\/.env &lt;&lt;'EOF'\r\nAPI_SERVER_ENABLED=true\r\nAPI_SERVER_PORT=8642\r\nAPI_SERVER_HOST=0.0.0.0\r\nAPI_SERVER_KEY=sk-$(openssl rand -hex 16)\r\nEOF<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>API_SERVER_KEY\uff1a \u7ecf\u8fc7\u5b9e\u9645\u6d4b\u8bd5\uff0c\u8fd9\u4e2a\u6570\u503c\u81f3\u5c11\u898116\u4f4d\uff0c\u5426\u52198642\u6839\u672c\u8d77\u4e0d\u6765<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1a\u5982\u679c\u662f\u521b\u5efa\u4e86profile\uff0c\u90a3\u4e48\u5982\u679c\u60f3\u9488\u5bf9\u8fd9\u4e2aprofile\u914d\u7f6eAPI\uff0c\u90a3\u5c31\u8981\u5728\u8fd9\u4e2aprofile\u4e0b\u7684.env\u6587\u4ef6\u4e2d\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u521b\u5efa\u7684profile\u662fgong\ncat >> ~\/.hermes\/profiles\/gong\/.env &lt;&lt;'EOF'\r\nAPI_SERVER_ENABLED=true\r\nAPI_SERVER_PORT=8642\r\nAPI_SERVER_HOST=127.0.0.1\r\nAPI_SERVER_KEY=gong-$(openssl rand -hex 16)\r\nEOF\n#\u91cd\u542fgateway\nsystemctl --user restart hermes-gateway-gong.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001API\u63a5\u53e3\u4e5f\u662f\u901a\u8fc7gateway\u6765\u7ba1\u7406\uff0c\u5c31\u662f\u5bf9\u63a5\u6d88\u606f\u5e73\u53f0\u7684\u90a3\u4e2a\u7f51\u5173\uff0c\u91cd\u542f\u7f51\u5173\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl --user restart hermes-gateway<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"317\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/4-1.png\" alt=\"\" class=\"wp-image-20861\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/4-1.png 653w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/4-1-300x146.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/4-1-600x291.png 600w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u770b\u670d\u52a1\u72b6\u6001\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"118\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5-1.png\" alt=\"\" class=\"wp-image-20863\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5-1.png 656w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5-1-300x54.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/5-1-600x108.png 600w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Hermes Agent \u662f\u7531 Nous Research\u200b \u5f00\u53d1\u7684\u4e00\u6b3e\u5f00\u6e90\u81ea\u4e3b AI \u667a\u80fd\u4f53\u6846\u67b6\u3002\u5b83\u6700\u5927\u7684\u7279 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":20102,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-20101","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/20101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=20101"}],"version-history":[{"count":26,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/20101\/revisions"}],"predecessor-version":[{"id":20865,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/20101\/revisions\/20865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/20102"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=20101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=20101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=20101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}