Skip to main content
Give your coding agent one prompt to set up Hermes in a private Sailbox. It’ll work out of the box and can run indefinitely in the cloud, no management required. Once you’re finished, you’ll have:
  • 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.
Why Hermes on Sail?
The Free plan includes $5 in monthly credits once you attach a payment method, enough for about 18 days for a light always-on assistant.
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 with sail 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.
The Hermes gateway listens for messages over an outbound Slack connection (Socket Mode), so you don’t need a public port. This setup leaves autosleep off to keep the gateway available.Open a shell with 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.
Switch to the 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.
Hermes uses a small plugin to call Sail web search. It returns titles, URLs, and excerpts for citations, not the full text of a page. There’s no second API key or search account to set up.
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
Merge the following into /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.
Slack users get the Sail search and memory tools, but no terminal, file access, or tool for sending arbitrary messages. Hermes posts the answer without streaming its reasoning or tool calls into the thread. Use only public information in search queries and treat instructions on retrieved pages as untrusted.On your machine, run sail 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.
Credential injection controls where the key goes. It doesn’t restrict which other hosts the Sailbox can reach. To limit outbound connections too, add an 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.
Once journalctl -u hermes-assistant shows a Socket Mode connection, test from Slack.
  1. From an allowed account, send a DM and mention the bot in the test channel. Check for a reply to each.
  2. Send a channel message without a mention, then try a mention from an account outside the allowlist. Both should stay unanswered.
  3. 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_search call with a search_id in the session. A link alone doesn’t prove the bot searched.
Wait for active work to finish, restart the service, and mention the bot again in the same thread. Compare the saved Hermes session ID before and after. A new session can also read Slack history, so a reply that remembers the thread is insufficient on its own. See Deployment gotchas for live migration and recovery checks.

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.
  1. Create a fine-grained GitHub token for just that repository with Issues: read. On your machine, run sail secret set HERMES_GITHUB_ISSUES and enter the token at the prompt.
  2. Check the attached policy with sail box egress-policy show <sailbox-id>. Start policy-v2.json from that document, including any allowlist or restrictions you’ve added. Merge the following entry into its rules object alongside the Sail API. Replace OWNER/REPO with your repository. If you use an allowlist, include api.github.com.
  1. 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.
  1. 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.
GitHub controls what the token can read. You control who can ask for the digest and where it goes. A read-only token won’t stop Hermes from quoting a private issue in public search, so leave search off for this routine unless you can keep the data separate. See egress policies for destination restrictions and the policy reference for matching other methods and paths.

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.
Verify that “Routine check complete” arrived in the test channel and the request used Balanced. A saved schedule tells you neither. See Hermes scheduled tasks.Flex is for background work. If you want an overnight research task, have a separate worker submit a background Responses request rather than holding a Slack conversation open. To try the request from the Sailbox:
Save the response ID. The worker can use a webhook or check 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

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.
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.
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.
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.
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.
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.
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.