{"id":52607,"date":"2026-04-30T16:57:16","date_gmt":"2026-04-30T08:57:16","guid":{"rendered":"https:\/\/www.1ai.net\/?p=52607"},"modified":"2026-04-30T16:57:16","modified_gmt":"2026-04-30T08:57:16","slug":"hermes%e6%95%99%e7%a8%8b%ef%bc%9a%e6%8a%8ahermes%e6%89%93%e9%80%a0%e6%88%907x24%e5%b0%8f%e6%97%b6%e5%9c%a8%e7%ba%bf%e7%9a%84ai%e6%99%ba%e8%83%bd%e4%bd%93","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/52607.html","title":{"rendered":"Hermes: Turn Hermes into a 7x24-hour online AI smart body"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52612\" title=\"f073ad12j00teatxz0037000iw007kp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2026\/04\/f073ad12j00teatxz0037d000iw007kp.jpg\" alt=\"f073ad12j00teatxz0037000iw007kp\" width=\"680\" height=\"272\" \/><\/p>\n<p>I put it on the PC <a href=\"https:\/\/www.1ai.net\/en\/tag\/hermes\" title=\"_Other Organiser\" target=\"_blank\" >Hermes<\/a> After that, it did work very well, but soon a real problem was discovered:<\/p>\n<p>As soon as the computer was shut down, Hermes went off duty<\/p>\n<p>As Hermes' \"boss,\" who doesn't want to sleep or go out to play, has 24 hours to stand by and help me on time, monitor information and process work<\/p>\n<p>NO. 24 HOURS RUNNING A COMPUTER AND WASTING POWER? THE MOST IMMEDIATE WAY IS TO DEPLOY TO THE VPS<\/p>\n<p>But this brings with it new security risks:<\/p>\n<p>Hermes and OpenClaw have very large AI Agent privileges to operate almost any file on the server. If the VPS contains SSH private keys, wallet keys, important documents who dares to let it access<\/p>\n<p>Of course, if you want to buy an empty VPS just run Hermes, you can ignore this. People usually have only one VPS. What do we do<\/p>\n<p>My solution is: VPS + Docker + Non root users run Hermes<\/p>\n<p>Docker can completely isolate Hermes in a container so it doesn't touch other important host files<\/p>\n<p>It created a general user-run container, which further reduced access and significantly improved safety<\/p>\n<p>I'm going to teach you how to securely deploy Hermes on VPS<\/p>\n<p><strong>ABOUT VPS<\/strong><\/p>\n<p>It's recommended that we buy a VPS overseas so we don't worry about the internal walling problem<\/p>\n<p>Hermes Agent (especially Docker deployment) is very light in itself, mainly from the Python process + SQLite memory database + Gateway, without GPU<\/p>\n<p>You can refer to this form<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52610\" title=\"cfe2fe0bj00teatwf0020d000iw005kp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2026\/04\/cfe2fe0bj00teatwf0020d000iw005kp.jpg\" alt=\"cfe2fe0bj00teatwf0020d000iw005kp\" width=\"680\" height=\"200\" \/><\/p>\n<p>1. create a dedicated user (user name: hermes)<\/p>\n<pre><code class=\"language-bash\">if you can't do it, you can't do it.\nSudo usermod - aG sudo hermes # join the sudo group\nSet password for sudo passwd hermes #\nsu - hermes # switch to hermes user<\/code><\/pre>\n<p>2. Install Docker (Ubuntu\/ Debian example)<\/p>\n<p>install docker-ce +docker-compose-plugin with an official one-key script or apt<\/p>\n<p>3. Cloning and activation of Docker<\/p>\n<pre><code class=\"language-bash\">i'm not sure I'm going to be able to do that, right?\n\nI'd like to ask you a few questions.\n\nHERMES_UID=$(id-u) HERMES_GID=$(id-g)docker company up-d<\/code><\/pre>\n<p>note that these are operated under hermes, and now docker copose ps can see two containers running:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52609\" title=\"55f17e0cp00teatwp001ud000v9003fp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2026\/04\/55f17e0cp00teatwp001ud000v9003fp.png\" alt=\"55f17e0cp00teatwp001ud000v9003fp\" width=\"1125\" height=\"123\" \/><\/p>\n<p>gateway and dashboard<\/p>\n<p>4. Initialization Settings<\/p>\n<pre><code class=\"language-bash\">..evenv\/bin\/activate &amp; hermes setup.\"<\/code><\/pre>\n<p>Here's the Hermes setup, big model according to your preferences, Telegram, Wisdom<\/p>\n<p>Note that large models need to open browser links when selecting Nos Portal because the VPS is not graphical and only has to be certified in another computer's browser (desktop or laptop)<\/p>\n<p>5. Resolution of questions of competence<\/p>\n<p>You think this is the end of it<\/p>\n<p>Sending messages to Hermes via Telegram or Twitter reveals an authentication error:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52611\" title=\"f3b2f95ej00teatwx0027d000iw08ap\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2026\/04\/f3b2f95ej00teatwx0027d000iw008ap.jpg\" alt=\"f3b2f95ej00teatwx0027d000iw08ap\" width=\"680\" height=\"298\" \/><\/p>\n<p>use the following command to get into the docker to start hermes and find a large model to work<\/p>\n<pre><code class=\"language-bash\">i'm not going to do that, but i'm not going to do that.\nsource \/opt\/hermes\/.venv\/bin\/activate &amp; hermes<\/code><\/pre>\n<p>it's a question of authority<\/p>\n<p>...drewx-- 18 10000 10000 4.0K Apr 27 15:31<\/p>\n<p>the other files are user names and group names<\/p>\n<p>Restore user and group names first<\/p>\n<pre><code class=\"language-bash\">i don't know what to do.\nChmod-R755 ~.hermes<\/code><\/pre>\n<p>execute the following commands and save the results: userid, groupid<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52608\" title=\"87b5e7e2p00teatx7010d000iw003up\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2026\/04\/87b5e7e2p00teatx70010d000iw003up.png\" alt=\"87b5e7e2p00teatx7010d000iw003up\" width=\"680\" height=\"138\" \/><\/p>\n<p>edit ~\/hermes-agent\/.env add at the bottom:<\/p>\n<p>For HERMES_UID=1001 # read just acquired \"id-u hermes\"<\/p>\n<p>edit ~\/hermes-atent\/docker-compose.yml<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52613\" title=\"19ce96a7j00teatxm00cwd000iw00inp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2026\/04\/19ce96a7j00teatxm00cwd000iw00inp.jpg\" alt=\"19ce96a7j00teatxm00cwd000iw00inp\" width=\"680\" height=\"671\" \/><\/p>\n<p>Most should be like mine<\/p>\n<p>restart now docker<\/p>\n<pre><code class=\"language-bash\">docker company down\ndocker copose up-d<\/code><\/pre>\n<p>Now try to communicate with Telegram and Wireless<\/p>\n<p>congratulations to you<\/p>\n<p>now you can call hermes wherever you want<\/p>\n<p>Appendix<\/p>\n<p>some commonly used docker commands<\/p>\n<pre><code class=\"language-bash\">docker mirror down #\n\nDocker copose up-d # start mirror\n\nDocker command up-d-build # force recreate mirror + start\n\nDocker contact exit-it gateway bash # restart gateway\n\nDocker company restart gateway # enter docker\n\nDocker logs gateway displays last 30 pages of the Gateway Log\n\n..evenv\/bin\/activate &amp; hermes status\"\n\n..evenv\/bin\/activate &amp; hermes model\"<\/code><\/pre>\n<p>update hermes<\/p>\n<pre><code class=\"language-bash\">cd ~\/hermes-agent\n\nlet's get this over with.\n\nokay, let's go.\n\ndocker copose up-d-build<\/code><\/pre>\n<p>Official documentation:<\/p>\n<p>https:\/\/hermes-agent.nousresearch.com\/docs\/user-guide\/docker<\/p>","protected":false},"excerpt":{"rendered":"<p>When I put Hermes on the personal computer, it did work very well, but soon I found a real problem: once the computer was shut down and shut down, Hermes followed \"off from work\" as Hermes' \"boss,\" who didn't want to sleep and go out, and it could still be on 24 hours' standby to help me with timing, surveillance information, and work planned? No. 24 hours running a computer and wasting power? The most immediate way to do this is to deploy to VPS, but this brings with it new security risks: Hermes and OpenClaw, such as AI Agent, have very large access to almost any file on the server. If the VPS contains SSH private key, wallet key, important<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[786,8462,8480],"collection":[],"class_list":["post-52607","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-ai","tag-hermes"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/52607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=52607"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/52607\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=52607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=52607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=52607"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=52607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}