- An always-on, self-improving AI assistant that answers approved users in Slack and can search the web.
- A scheduled Slack message suited for the Balanced service tier and a proactive research task suited for the Flex service tier.
- With a Sailbox, you pay for the CPU, memory, and disk your assistant actually uses. You don’t have to estimate and provision ahead of time. Never pay for CPU when your agent is idle or waiting, and never pay for memory or disk that your agent isn’t even using.
- With Sail inference, you get abundant frontier open-model intelligence with service tiers specifically designed for agents like Hermes. We recommend DeepSeek V4.1 Flash 1017, which offers Opus- and Sol-level capabilities on agent tasks at roughly 70–140× lower inference cost than Opus 5, depending on the Sail service tier you use.
Copy agent prompt (recommended):
Share this page with your coding agent or paste the prompt below.Manual steps
1. Create a private Sailbox
You’ll need the Sail CLI signed in to your own account, an organization-backed Sail API key eligible for both inference and web search (spend-capped inference keys can’t search), and permission to install a Slack app. If there’s already an assistant in your organization, check the names withsail box list, sail egress-policy list, and sail secret list. Choose unused names for this assistant and its credentials.In a new project directory, save this as create_box.py and run uv run --with sail python create_box.py.sail box shell <sailbox-id>. Save the Hermes v0.23.2 installer as /tmp/install-hermes.sh inside the Sailbox, readable by the hermes user. Install that release as the service user.hermes user, then install Slack support and generate the Slack app manifest:2. Connect Slack and configure Hermes
Create a Slack app from/var/lib/hermes/slack-manifest.json, review the scopes, and install it in your workspace. Enable Socket Mode and generate an app-level token with connections:write. Check that the App Home Messages tab accepts DMs. Invite the bot to a private, internal test channel and record the channel ID and allowed member IDs. See Hermes’s Slack setup.As hermes, create /var/lib/hermes/.env with mode 0600 so only the service user can read it. Enter the Slack tokens there, never in an agent prompt or image.Add this placeholder to the same file. Sail supplies the real API key in step 3.
Install the Sail web search plugin
Install the Sail web search plugin
As
hermes, run mkdir -p /var/lib/hermes/plugins/sail-search. Save these two files in that directory before starting the gateway.plugin.yaml
__init__.py
/var/lib/hermes/config.yaml. The two providers use the same model: Slack gets Default (ASAP), and scheduled jobs get Balanced. If you switch models, choose one that supports tool calls and both tiers in the model catalog.3. Inject one Sail key for inference and search
On your machine, runsail secret set HERMES_INFERENCE and enter the Sail key at the hidden prompt. Save this as policy.json. The first rule authenticates chat, search, and background jobs. The second lets the worker check a background job by ID.allowlist to the policy and include the Sail API, Slack API, and Slack Socket Mode hosts the gateway uses. The gateway still gets its two Slack tokens from its protected .env file.Web search pricing
Failed searches are free.
4. Start the gateway and check it from Slack
Inside the Sailbox, save this as/etc/systemd/system/hermes-assistant.service, then run systemctl daemon-reload and systemctl enable --now hermes-assistant as root.journalctl -u hermes-assistant shows a Socket Mode connection, test from Slack.- From an allowed account, send a DM and mention the bot in the test channel. Check for a reply to each.
- Send a channel message without a mention, then try a mention from an account outside the allowlist. Both should stay unanswered.
- Ask “Can you search the web for Sail’s checkpoint docs and cite the URL?” Check for a matching source in Slack and a successful
sail_web_searchcall with asearch_idin the session. A link alone doesn’t prove the bot searched.
Connect another service (GitHub example)
For a morning digest of issues in a private GitHub repository, give Hermes a tool to list the issues and a Sailbox policy to authenticate that read.- Create a fine-grained GitHub token for just that repository with Issues: read. On your machine, run
sail secret set HERMES_GITHUB_ISSUESand enter the token at the prompt. - Check the attached policy with
sail box egress-policy show <sailbox-id>. Startpolicy-v2.jsonfrom that document, including any allowlist or restrictions you’ve added. Merge the following entry into itsrulesobject alongside the Sail API. ReplaceOWNER/REPOwith your repository. If you use an allowlist, includeapi.github.com.
- Attach the complete policy under a new name and keep the old ID for rollback. The new rules replace the previous policy for connections opened from now on.
- Add a tool to the routine that takes a fixed repository rather than an arbitrary URL. Have it call the list issues endpoint without a token. Test with one issue you recognize and confirm the digest reaches a channel allowed to see it. On a fresh connection, a request for another private repository should get no private data.
Add routines and proactive tasks
Scheduled jobs use Balanced unless you override the provider for a particular job. As
hermes, run this from /home/hermes/hermes-agent to send a one-time test to the Slack home channel.GET /v1/responses/{id} at increasing intervals, with a deadline. Stop on success or failure. Send the result to Slack once, or tell the user why the task didn’t finish.Deployment gotchas
Slack connects, but the bot ignores mentions
Slack connects, but the bot ignores mentions
Check the channel membership and the sender’s member ID. In a private
channel, the app needs the
message.groups event and the groups:history
scope. This starter ignores messages another app posts on a user’s behalf.How do I know a conversation survived live migration?
How do I know a conversation survived live migration?
Start a request in a test channel before the move. Afterward, check for one
final answer in the original thread, a reply to a fresh mention, and
delivery of the next scheduled message. Compare the Hermes session ID before
and after. Restarting the gateway alone doesn’t test a migration.
How do I restore a checkpoint without two bots answering?
How do I restore a checkpoint without two bots answering?
Wait for the final Slack reply and any delegated jobs to finish, then run
systemctl disable --now hermes-assistant on the source. Check each
SQLite database in HERMES_HOME with PRAGMA integrity_check; before
taking a filesystem-only checkpoint. Keep the
checkpoint private: it can contain Slack tokens and conversations.Leave the restored gateway off while you repeat the database checks and
compare memory, sessions, scheduled jobs, delegation records, and any reports
stored elsewhere. Run systemctl enable --now hermes-assistant on the
source after a recovery test, or on the verified copy for a cutover. Never
start both with the same Slack tokens.A child agent finished, but Slack still says the bot is working
A child agent finished, but Slack still says the bot is working
Hermes delivers background results between parent turns. If the parent keeps
polling, its turn never ends and the result stays queued. Use inline
delegation for short jobs. For background work, look for a successful
delegation tool call: a final reply saying “I’ll delegate this” starts
nothing on its own. Once the child starts, end the parent turn so Hermes
can deliver the result in the original thread.
An API call works from the shell but not from Slack
An API call works from the shell but not from Slack
Ask Hermes to search for a public page and cite it, then check that the
Slack turn used
sail_web_search. A working API key doesn’t tell you which
tools the Slack profile has.Why is a Slack reply taking so long?
Why is a Slack reply taking so long?
Check where the turn spent its time: waiting for inference, running a tool,
waiting for a child, or posting to Slack. If inference was slow, record the
request ID, model, and service tier the turn actually used before adjusting
the timeout. A longer inference timeout won’t help a parent that’s still
polling a finished child.
Hermes says a report is ready, but there’s no attachment
Hermes says a report is ready, but there’s no attachment
A path like
/tmp/report.csv points to a file on the Sailbox. Check for a
Slack upload with a file ID and a visible attachment in the intended thread.