In short.
This guide helps developers run Hermes Agent in an E2B sandbox, but its saved state lasts only while that sandbox is retained. E2B supplies a template with the Hermes CLI and bundled skills installed. The page explains interactive and scripted use, creating and reusing skills, and continuing conversations. Its examples inject an OpenRouter credential outside the sandbox while Hermes receives a placeholder. Automatic tool approval permits filesystem changes and outbound requests, and internet access is enabled by default. Prices, exact template versions, licensing terms and successful runtime behavior are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Scope is the complete selected page at [https://docs.e2b.dev/agents/hermes.md], including its code examples and notices about credentials, outbound networking, automatic tool approval and state deletion. The linked documentation index, repository, console, CLI instructions, secrets pages and network pages are excluded. No commands or examples were executed. Runtime success, performance, security effectiveness and generated-skill quality remain unassessed.
The overview
Identity
The resource is E2B's Hermes Agent integration guide at [https://docs.e2b.dev/agents/hermes.md]. It describes running Hermes inside an E2B sandbox using the prebuilt hermes template.
The page identifies Hermes as an open-source agent supporting multiple model providers and links to its project at [https://github.com/NousResearch/hermes-agent]. The guide provides setup instructions; the linked repository's contents are outside the supplied evidence.
Assessment
The guide is useful for developers who want an agent to work with terminal commands and files in a separate environment, while retaining context across conversations. Its practical value is the combination of a prepared template, scripted invocation and explicit state-lifetime guidance.
It supplies concrete implementation examples, but no execution results, reliability measurements or security audit. Successful setup, task accuracy and the quality of generated skills remain unassessed.
Users
The main audience is developers building agent automation or experimenting with repeatable terminal and file tasks. JavaScript, TypeScript and Python examples support integration into existing scripts, while the interactive CLI provides a simpler starting point.
Beginners need some familiarity with terminal commands, API credentials and remote environments. Teams requiring durable records should account for the fact that killing a sandbox deletes the files holding sessions, skills and memory.
Capabilities
Hermes provides terminal and file tools, persistent memory, resumable conversations and reusable skills it can create and improve. The page also lists browser, memory and skill tools among those enabled without individual approval by --yolo.
For automation, chat -q supplies a single non-interactive turn, and -Q keeps standard output suitable for scripts. The --skills option selects a saved skill; -c continues the most recent conversation, and --resume selects one by ID or title. The guide does not measure whether skill revisions improve task outcomes.
Using it
Requirements
The interactive route requires the E2B CLI and access to the hermes template. The scripted routes use the E2B SDK in JavaScript, TypeScript or Python, an E2B API key, and credentials for a supported model provider.
The examples use OpenRouter. They require an E2B secret labelled openrouter-api-key in the same project as the E2B API key. Secret support requires E2B SDK 2.43.0 or later. The page does not specify minimum CPU, memory, host operating system or a complete dependency matrix.
Mechanism
Hermes runs inside E2B, so its terminal commands and file operations act on sandbox processes and storage. E2B manages isolation, lifecycle, resource limits and network policy. This arrangement requires no separate Hermes terminal-backend integration.
In the OpenRouter examples, Hermes receives OPENROUTER_API_KEY with an sk-or-v1-formatted placeholder. A network rule uses Secret.fill to insert the real credential into the Authorization header of requests to openrouter.ai outside the sandbox. This configuration is intended to keep the real key out of Hermes's environment; its runtime behavior has not been assessed.
Setup
For interactive use, the documented sequence is e2b sbx create hermes, followed inside the sandbox by hermes model to configure a provider and hermes to start the agent.
For scripted use, create a sandbox from the hermes template, configure the credential placeholder and secret-injection rule, then invoke Hermes through sandbox.commands.run. The examples select OpenRouter and anthropic/claude-sonnet-4.6 with --provider and --model, print the returned standard output and kill the sandbox. The model identifier is an example, with current availability unknown.
The single-turn examples configure a 600-second sandbox timeout; the skill examples use 900 seconds. These are configured limits, not measured completion times.
Example
The main worked example writes a checkout incident runbook and synthetic incident data into the sandbox. It asks Hermes to apply the runbook and create a reusable skill named incident-triage. A second invocation in the same sandbox loads that skill with --skills incident-triage to examine another incident.
The example illustrates carrying a procedure between conversations through saved files. It supplies no resulting investigation, generated skill or verified diagnosis. The incident figures are illustrative inputs and provide no evidence of operational performance.
Assessment & evidence
Limitations
Persistence is tied to the sandbox. User-created skills live under ~/.hermes/skills/, and curated memory lives under ~/.hermes/memories/. Pausing and resuming the same sandbox preserves filesystem state; killing it removes that state. The page provides no durable backup or migration procedure.
--yolo allows tool calls without approval, including filesystem changes and outbound requests. Sandboxes can reach the open internet by default. Host files and credentials become accessible if explicitly copied or passed into the sandbox. Hostname network rules cover HTTP(S); other protocols require CIDR rules.
The credential-injection examples do not establish that every other outbound destination is blocked. Secret retention, data handling by providers and resistance to malicious task inputs are not assessed.
Why it may fit
The described architecture makes this a plausible fit for repeated tasks that need a working directory, conversation history and reusable procedures. Keeping one sandbox allows a later conversation to use earlier skills and files without rebuilding that context.
This suitability follows from the documented storage and execution model. It does not establish better accuracy, lower cost or stronger security than other approaches. Work requiring durable retention needs a storage plan beyond the lifecycle described here.
Alternatives
The page offers interactive CLI use and scripted SDK use within the same E2B setup. Interactive use suits direct exploration; the headless examples show how to call the agent from an application or script.
Hermes supports other providers through --provider and --model, but this page demonstrates only OpenRouter. It supplies no comparison with competing agents or sandbox services, so relative cost, capability and security are unknown.
Evidence
The supporting source is the complete E2B Hermes Agent documentation page at [https://docs.e2b.dev/agents/hermes.md]. It includes shell commands, JavaScript and TypeScript examples, Python examples, and explanations of credentials, networking and state retention.
The evidence contains no execution logs, benchmark results, generated-skill outputs or independent security findings. Linked documentation and repository contents are not included, so they cannot establish additional capabilities or guarantees.
Access & freshness
Costs
Total cost is unknown. The page provides no E2B prices, model-provider rates, free allowances, billing units or measured task costs.
The setup depends on E2B sandbox access and a model provider, so both services' applicable pricing needs confirmation. The configured timeouts do not establish actual usage or charges.
Rights
The page describes Hermes as open source, but it does not include a licence name or licence text. Commercial-use, modification and redistribution conditions are therefore not established by this evidence.
The supplied page also does not establish reuse rights for the documentation, prebuilt template or bundled skills. Those materials may have separate terms that require inspection before redistribution.
Freshness
The supplied page was captured on 24 November 2026. It gives no publication or last-update date and does not pin the Hermes release or hermes template version.
E2B SDK 2.43.0 is the stated minimum for secrets support. Current template contents, provider compatibility and availability of the example model are unknown.
Practical next steps
Before adopting this setup, confirm E2B access, model-provider access, applicable pricing and licence terms. Use the documented SDK minimum when relying on secret injection, and confirm the version of the template you intend to use.
Choose whether automatic tool approval is appropriate for the task, restrict outbound access to necessary destinations, and pass only the files and credentials the task needs. Decide how required records will survive sandbox deletion.
An initial trial should check a small task, credential injection, skill reuse and session continuation before expanding the workload. No such trial or execution was performed for this report.
