{"id":20800,"date":"2026-08-13T16:27:39","date_gmt":"2026-08-13T08:27:39","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=20800"},"modified":"2026-08-18T16:36:09","modified_gmt":"2026-08-18T08:36:09","slug":"20800","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2026\/08\/13\/20800\/","title":{"rendered":"hermes-agent\u7684profile"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hermes \u91cc\u7684 <strong>profile\uff08\u914d\u7f6e\u6587\u4ef6\/\u914d\u7f6e\u6863\uff09<\/strong>\u200b \u4e0d\u662f&#8221;\u7528\u6237\u8d26\u53f7&#8221;\uff0c\u4e5f\u4e0d\u662f\u5355\u7eaf\u6539 SOUL.md \u4eba\u683c\u2014\u2014\u5b83\u672c\u8d28\u662f<strong>\u300c\u4e00\u4efd\u5b8c\u5168\u72ec\u7acb\u7684 Hermes \u8fd0\u884c\u73af\u5883\u300d<\/strong>\uff0c\u5e95\u5c42\u5c31\u662f\u6362\u4e2a <code>HERMES_HOME<\/code> \u76ee\u5f55\uff0c\u628a\u914d\u7f6e\u3001\u5bc6\u94a5\u3001\u8bb0\u5fc6\u3001\u6280\u80fd\u3001\u4f1a\u8bdd\u5168\u90e8\u9694\u79bb\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u603b\u7ed3\uff1a Profile = \u540c\u4e00\u53f0\u673a\u5668\u4e0a&#8221;\u518d\u88c5\u4e00\u4e2a\u5168\u65b0\u7684 Hermes&#8221;\uff0c\u4f46\u5171\u7528\u540c\u4e00\u4e2a CLI \u4e8c\u8fdb\u5236<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bcf\u4e2a profile \u81ea\u5df1\u5e26\u4ec0\u4e48\uff08\u5b8c\u5168\u4e0d\u4e92\u901a\uff09\uff0c\u5728 <code>~\/.hermes\/profiles\/&lt;\u540d\u5b57&gt;\/<\/code> \u4e0b\uff0c\u5404\u6709\u5404\u7684\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>config.yaml \u2014\u2014 \u6a21\u578b\u3001provider\u3001toolsets\u3001context \u957f\u5ea6\u7b49\u6240\u6709\u8fd0\u884c\u914d\u7f6e<\/li>\n\n\n\n<li>.env \u2014\u2014 API Key\u3001Bot Token \u7b49\u5bc6\u94a5<\/li>\n\n\n\n<li>SOUL.md \u2014\u2014 \u8fd9\u4e2a profile \u7684\u4eba\u683c\/\u8bed\u6c14<\/li>\n\n\n\n<li>memories\/ \u2014\u2014 MEMORY.md \/ USER.md\uff0c\u8de8\u4f1a\u8bdd\u8bb0\u5fc6\u9694\u79bb<\/li>\n\n\n\n<li>skills\/ \u2014\u2014 \u88c5\u4e86\u54ea\u4e9b skill \u4e92\u4e0d\u5f71\u54cd<\/li>\n\n\n\n<li>sessions\/ state.db cron\/ logs\/ \u2014\u2014 \u4f1a\u8bdd\u5386\u53f2\u3001\u5b9a\u65f6\u4efb\u52a1\u3001\u65e5\u5fd7\u5168\u9694\u79bb<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf4\u660e\uff1a\u65b0\u5efa\u7684profile\u7684config.yaml\u4e2d\u5185\u5bb9\u975e\u5e38\u5c11\uff0c\u56e0\u6b64\u521b\u5efa\u540e\u53ef\u6309\u7167\u9875\u9762\u63d0\u793a\u8fdb\u884c\u5168\u90e8\u914d\u7f6e\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">\u5426\u5219\u53ef\u80fd\u5361\u6b7b<\/mark><\/strong>\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"310\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/3-2.png\" alt=\"\" class=\"wp-image-20849\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/3-2.png 680w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/3-2-300x137.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/3-2-600x274.png 600w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/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-purple-color\">\u65b0\u5efaprofile<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u7a7a\u767d\u65b0\u5efa\uff08\u5e26\u57fa\u7840 skills \u79cd\u5b50\uff09\ntest@localhost:~$ hermes profile create abcd\n\n# \u4ece\u5f53\u524d profile \u590d\u5236\u914d\u7f6e\/SOUL\/.env\/skills\uff0c\u4f46\u8bb0\u5fc6\u548c\u4f1a\u8bdd\u6e05\u96f6\uff08\u6700\u5e38\u7528\uff09\ntest@localhost:~$ hermes profile create abcd --clone\n\n# \u5b8c\u5168\u514b\u9686\uff08\u8fde\u8bb0\u5fc6\u3001cron\u3001skills \u5168\u62f7\uff0c\u4e0d\u542b sessions \u5927\u6587\u4ef6\uff09\ntest@localhost:~$ hermes profile create abcd --clone-all\n\n#\u65b0\u521b\u5efaprofile\uff0c\u6ca1\u6709\u4efb\u4f55skills\ntest@localhost:~$ hermes profile create abcd --no-skills<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5efa\u5b8c\u4f1a\u81ea\u52a8\u5728 <code>~\/.local\/bin\/<\/code> \u751f\u6210\u540c\u540d\u547d\u4ee4\u522b\u540d\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>test@localhost:~$ abcd chat          # \u7528 coder \u8fd9\u4e2a profile \u8fdb\u5bf9\u8bdd\ntest@localhost:~$ abcd config set model.default MiniCPM5-1B   # \u53ea\u6539 coder \u7684\u6a21\u578b<\/code><\/pre>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\">\u6ce8\u610f\uff1a\u65b0\u5efaprofile \u5982\u679c\u9009\u62e9&#8211;no-skills\uff0c\u90a3\u4e48\u5168\u90e8\u6280\u80fd\u90fd\u4e0d\u52a0\u8f7d\uff0c\u6709\u5229\u4e8e\u63d0\u4f9b\u76f8\u5e94\u901f\u5ea6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540e\u7eed\u7684\u5f88\u591a\u547d\u4ee4\u90fd\u53ef\u4ee5\u5728\u65b0\u5efa\u7684profile\u6267\u884c\uff0c\u56e0\u4e3a\u5b83\u8ddf\u539f\u6765\u7684hermes\u5df2\u7ecf\u662f\u4e24\u5957\u72ec\u7acb\u7684\u73af\u5883\uff0c\u7ec8\u7aef\u6267\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>test@localhost:~$ abcd                      #\u8fdb\u5165cli\u754c\u9762\ntest@localhost:~$ abcd prompt-size          #\u67e5\u770b\u63d0\u793a\u8bcd\u5927\u5c0f\ntest@localhost:~$ abcd model                #\u914d\u7f6e\u6a21\u578b\ntest@localhost:~$ abcd gateway setup        #\u914d\u7f6e\u6d88\u606f\u5e73\u53f0\ntest@localhost:~$ abcd tools                #\u542f\u7528\u5173\u95ed\u5de5\u5177\ntest@localhost:~$ abcd --help               #\u67e5\u770b\u5e2e\u52a9<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">~\/.local\/bin\/abcd \u672c\u8d28\u5c31\u662f\u4e00\u4e2a\u811a\u672c\uff0c\u5b9e\u9645\u8d70\u7684\u547d\u4ee4\u662fhermes -p  abcd\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"112\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/2-1.png\" alt=\"\" class=\"wp-image-20847\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/2-1.png 650w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/2-1-300x52.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/08\/2-1-600x103.png 600w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5907\u6ce8\uff0c\u5982\u679c\u6267\u884cabcd \u6216\u8005 abcd chat\uff0c\u53ef\u80fd\u4f1a\u5f88\u5361\uff0c\u901a\u8fc7\u67e5\u770b\u8fdb\u7a0b\u53ef\u4ee5\u770b\u5230\u53ef\u80fd\u5728\u5b89\u88c5edge-tts\uff0c\u8fd9\u662f\u6587\u5b57\u8f6c\u8bed\u97f3\u7684\u5305(\u7981\u7528\u8fd9\u4e2a\u5de5\u5177\u4e5f\u4f1a\u5b89\u88c5\uff0c\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48)\uff0c\u53ef\u624b\u52a8\u6267\u884c\u547d\u4ee4\u5b89\u88c5\uff0c\u7b49\u7cfb\u7edf\u81ea\u5df1\u5b89\u88c5\u5f88\u6162<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/home\/iyinops\/.hermes\/hermes-agent\/venv\/bin\/python -m pip install edge-tts==7.2.7 -i https:\/\/mirrors.aliyun.com\/pypi\/simple\/ --trusted-host mirrors.aliyun.com<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Hermes \u91cc\u7684 profile\uff08\u914d\u7f6e\u6587\u4ef6\/\u914d\u7f6e\u6863\uff09\u200b \u4e0d\u662f&#8221;\u7528\u6237\u8d26\u53f7&#8221;\uff0c\u4e5f\u4e0d\u662f\u5355\u7eaf [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":20804,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-20800","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\/20800","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=20800"}],"version-history":[{"count":19,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/20800\/revisions"}],"predecessor-version":[{"id":20856,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/20800\/revisions\/20856"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/20804"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=20800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=20800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=20800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}