Virtarix documentation

How to Self-Host Hermes Agent on a VPS

Install Hermes Agent as a customer-operated application, configure only the provider and tools you need, and test its permissions before enabling a persistent messaging workflow.

01 / OUTCOME AND SCOPE

What this workflow covers

This workflow starts with the CLI, then introduces the messaging gateway only after a controlled test. The server runs the local application and tools; provider subscriptions and integration credentials remain your responsibility.

02 / REQUIREMENTS AND COMPATIBILITY

Check the prerequisites first

Confirm compatibility and resources before running a command.

Use a Linux environment supported by the current Hermes installation instructions. Check disk, memory, outbound connectivity and the tools your workflow will enable. Different terminal backends carry different permissions; a local backend should not be mistaken for automatic isolation.

03 / SAFETY AND ACCESS BOUNDARIES

Plan permissions and network exposure

Security first: keep credentials, file access and administrative endpoints restricted.

Use a dedicated, non-root application account and grant only the permissions the workflow needs. Keep model-provider keys, repository credentials, messaging tokens and Virtarix management credentials separate. Do not give the agent unrestricted access to unrelated home directories or production systems.

Keep administrative interfaces private. A prompt, repository file, website or incoming message is untrusted input; it should not become authority to read secrets, widen permissions or perform destructive operations. Review tool permissions and require confirmation for consequential actions.

The VPS is the runtime environment, not an included model service. External provider use may create separate charges. Persistent execution must comply with the Acceptable Use Policy, including sustained CPU-use restrictions.

04 / ENVIRONMENT PREPARATION

Prepare a controlled Linux environment

Start on a non-production Linux VPS and record its image, architecture and resource allocation. An administrator should prepare required system packages and recovery access; run the application itself from its own non-root account. Use the current upstream instructions for dependencies rather than installing a guessed runtime version.

Collect the basic environment information:

Inside the VPSPrepare a controlled Linux environmentUbuntuBash
id
uname -m
cat /etc/os-release
free -h
df -h "$HOME"
command -v curl

Stop when a dependency, supported architecture or resource requirement is not met. Do not continue by disabling a protection or silently choosing a different installation path. Keep a record of the version installed and the date of the check.

05 / INSTALLATION AND COMPATIBILITY RESULT

Install Hermes Agent

Download and inspect the official Linux installer, then run it as the dedicated application user:

Inside the VPSInstall Hermes AgentUbuntuBash
curl --fail --silent --show-error --location https://hermes-agent.nousresearch.com/install.sh --output install-hermes.sh
less install-hermes.sh
bash install-hermes.sh

Open a new shell or follow the installer's shell-reload guidance. Record the installed release and resolve dependency warnings before proceeding.

06 / APPLICATION CONFIGURATION

Configure the application deliberately

Run the setup and inspect the enabled tools:

Inside the VPSConfigure the application deliberatelyUbuntuBash
hermes setup
hermes tools
hermes doctor
hermes

Choose your own provider account, a limited workspace and the tools needed for a harmless first task. Review any configuration that would allow terminal commands or access outside that workspace. Keep messaging integrations disabled until the CLI workflow is understood.

07 / FUNCTIONAL VERIFICATION

Verify function and the permission boundary

Ask the agent to read a test file in its workspace, then approve one bounded change. Inspect the file and logs directly. Test a denied action as well as an allowed action; a successful reply alone does not establish safe permissions.

Check that the provider and external tools use the intended accounts and that no secret is written into shared logs.

08 / PERSISTENCE AND DAY-TO-DAY OPERATION

Plan persistence and restart behaviour

For a native Linux installation using a systemd user service, configure the gateway and use its documented lifecycle:

Inside the VPSPlan persistence and restart behaviourUbuntuBash
hermes gateway setup
hermes gateway install
hermes gateway start
hermes gateway status

An administrator can enable lingering for the application user when the service must survive logout. Keep a single lifecycle owner; do not install competing user and system services for the same gateway. Re-test after logout and a planned reboot.

09 / TROUBLESHOOTING

Troubleshoot without widening the risk

SymptomControlled next check
Installer or runtime errorReview the official installer output and dependencies rather than installing a guessed combination.
Unexpected tool accessStop the task, review enabled tools and backend permissions, and reduce the accessible workspace.
Messaging gateway has no responseVerify the selected integration, authorised participants, credentials and gateway status.
Two gateway processes competeKeep a single intended service installation and verify the actual lifecycle owner.

Stop when the observed result differs materially from the expected state. Collect a redacted error and environment record before choosing a different path.

10 / UPDATES AND RECOVERY

Update and recover with matching state

Before an update, preserve the configuration and application state with a recovery method appropriate to that application. Stop or quiesce writes where consistency requires it. Keep the copy separate from the active server and protect the secrets it may contain.

Record the current binary or package version, runtime dependencies, configuration and service settings. Test the proposed change on a separate environment before changing production. An older executable may not understand a database or state file migrated by a newer version; rollback can require restoring the matching state, not just replacing the binary.

After recovery, repeat the provider, tool, access-control and restart checks. One platform backup and one snapshot are included with the VPS, but independent copies and the application-level restore process remain your responsibility.

11 / RELATED RESOURCES

Related hosting and operating resources

AI Agent VPS · AI self-hosting guides · Infrastructure · Acceptable Use Policy

Hermes Agent questions

Does the local terminal backend isolate tools from the host?

Do not assume isolation. Understand and configure the chosen backend's permissions and boundaries.

Are messaging accounts included?

No. You configure the integration and its credentials under the relevant provider's terms.

Can I enable every tool at once?

Start with the minimum needed for a bounded task. Each tool or credential changes the permission boundary.

Is Hermes managed by Virtarix?

No. You install, secure, update and operate the application.