~7m57:30
AI Foundations

FULL Hermes Agent Tutorial For Beginners in 2026! (Become a PRO)

Jun 3, 2026

Read: ~7m · You save: 51 min

FULL Hermes Agent Tutorial For Beginners in 2026! (Become a PRO)

Learn to deploy Hermes, a self-improving 24/7 AI agent, on a VPS. Set up OpenRouter, Telegram, and Tavily, then schedule your first automation.

Overview

Hermes Agent is an autonomous AI agent that runs on a server, stores what it learns, and becomes more capable over time. It is a self-improving, 24/7 agent. Its usefulness grows as it learns about the user's setup, preferences, and work methods. Setting it up and expecting full usefulness on the first day leads to poor results.

This guide covers what Hermes Agent does, when to use it, how to deploy it on a virtual private server (VPS), how to connect it to Telegram, how to add tools through API keys, how to build scheduled and on-demand automations, and how to structure multiple agent functions.

Core Architecture

Hermes Agent relies on three layers.

1. Memory

When the user corrects Hermes Agent or it learns a stable fact about the user's setup, automations, or work style, it writes that fact to persistent memory. Stored memory is injected into every future session automatically. This applies to scheduled tasks and to direct conversations.

2. Skills

When Hermes Agent solves a problem it has not encountered before, it records the method as a skill file. When the same situation returns, it loads that skill instead of starting from scratch. Users can read, edit, or add skills. Skills are automation files that Hermes Agent runs using connected tools to complete tasks on the user's behalf.

3. Cron Jobs

Cron jobs are tasks that run on a schedule without manual input. The user describes the job once, sets the time, and Hermes Agent runs it automatically. Examples include a task every morning at 8:00 a.m., a task every 5 minutes, or a task triggered when a new video appears on a chosen YouTube channel.

These three layers, memory, skills, and cron jobs, define what makes Hermes Agent distinct.

The Agentic Loop

The loop works as follows:

  1. Target. The user sets the goal, direction, and purpose of the agent.
  2. Memory and skills. The agent reads its stored memory and skills.
  3. Tools. The agent uses connected tools such as Gmail, GitHub, Google Calendar, HubSpot, Notion, or Airtable.
  4. Result. The output can be a Telegram message, a database field change, a completed action in a tool, or a validation that the action succeeded.
  5. Feedback. The user or analytics data evaluates the result. Feedback can take the form of text, audio, or analytics.
  6. Update. The agent adjusts its memory and skills based on feedback and applies them to the next run.

Example: For YouTube thumbnails, the target might be a 8% click-through rate. A result of 6% signals that the thumbnail did not meet the standard. The agent updates its memory and skills to address the gap.

When to Use Hermes Agent

Hermes Agent suits work that must continue when the user is not present. Tasks that the user would otherwise repeat manually, or tasks that should run in the background, fit this model.

Hermes Agent does not suit one-time, highly specific prompts that do not repeat.

  • For a direct answer, use a chatbot.
  • For software development, use a coding agent such as Claude Code.
  • Do not attempt to build a complex application, such as a $1 million app, overnight through Hermes Agent without direction.

Deployment Options: Local or VPS

FactorLocalVPS
CostFree, using the user's computer for storage and processing5to5 to 10 per month, depending on the plan
UptimeStops when the computer shuts down or the lid closesRuns 24/7 in the cloud
Self-learningActive only while the computer is onRuns continuously
SetupOne-time setupOne-time setup, with a more technical process
FlexibilityLimited. Background processes consume computer resources, and additional agent profiles are harder to createHigh. The server handles all processing, and multiple agent profiles are easy to create

A VPS (virtual private server) runs Hermes Agent on a private server rather than the user's computer. For continuous operation and flexibility, a VPS is the recommended option.

Step 1: Deploy a VPS

  1. Select a VPS provider. This guide uses Hostinger, which provides AI-integrated VPS services with one-click installations.
  2. Select Choose plan and then select a VPS plan for Hermes Agent. The KVM 2 plan is the most common choice and supports multiple agents.
  3. Select a billing period. A 24-month term saves $372 compared with a 12-month term. A 12-month term is also an option.
  4. Apply a coupon code if available. The guide used the code AI Foundations, which provided 10% off, bringing the 12-month price below $100.
  5. Select a server location. The guide used United States.
  6. Select Continue. The provider creates the VPS, which takes about 5 minutes. In the guide, creation finished in about 2 minutes.
  7. Select Manage to open the VPS dashboard.
  8. Select Docker Manager, then open the projects list.

If Hermes Agent does not appear in the projects list, follow these steps:

  1. Select Compose.
  2. Select One-click deploy or use the catalog.
  3. Search for "Hermes agent." Select the entry named Hermes agent.
  4. On the configuration screen, record the Hermes username and password in a password manager, such as 1Password or Bitwarden. Keep these credentials private.
  5. Select Deploy. This step prepares the environment. It does not install Hermes Agent.

Step 2: Install Hermes Agent

  1. In the project, select Terminal under Access. This opens a web terminal inside the Hermes Agent container.
  2. Type hermes setup and press Enter.
  3. Select the full setup to configure each component manually. The quick setup requires a Nous Portal login.

Configure the Model Provider

The model provider supplies the AI model. Options include Nous Portal, xAI (with a Grok login), Codex (with a Codex subscription), and OpenRouter.

This guide uses OpenRouter, which offers pay-per-use access to many models through one API key.

  1. Create an account at openrouter.ai and load credits. A small amount, such as $5, is sufficient to begin.
  2. Create an API key in the OpenRouter dashboard.
  3. Set a credit limit on the key. The guide used $30. Always set credit limits to prevent excessive spending if the key is compromised or the agent behaves unexpectedly.
  4. Copy the key.
  5. In the Hermes terminal, select OpenRouter as the provider, then paste the key. The terminal confirms "key saved."
  6. Select a model. The guide selected Kimi K2.6 because it performed well and cost less than Anthropic models. OpenRouter also accepts custom model names.

Configure the Terminal Backend

Select keep current and run on local.

Configure the Communication Platform

Select Telegram. It is the simplest option and works on phones, Windows, and Mac.

  1. Use the arrow keys to move to Telegram. Press the space bar to select it, then press Enter.
  2. Create a bot with BotFather in Telegram:
    1. Open Telegram and search for "BotFather" in the apps section.
    2. Select Create new bot.
    3. Enter a display name, such as "General Assistant."
    4. Enter a unique username that ends in "bot," such as "GeneralAssistantBot." Telegram requires this format.
    5. Optionally add an image and description.
    6. Select Create bot. BotFather returns a token.
  3. Copy the token and paste it into the Hermes terminal. Do not share this token.
  4. Find your Telegram user ID:
    1. In the chats tab, search for a verified user info bot that returns IDs.
    2. Type /start. The bot returns your personal ID.
    3. Copy the ID and paste it into the Hermes terminal.
  5. When the terminal asks whether to use the ID as the home channel, enter Y.

Select Tools

Hermes Agent lists prebuilt tools, instructions, and commands. The default selections are suitable. Some tools require paid subscriptions. Skip any tool that requires payment during setup and configure it later. The guide skipped browser, image, and search provider configuration and kept the Telegram tool selection.

Setup is now complete. Type hermes to open the agent. The guide confirmed the setup by asking the agent what model it used. It responded that it was running Kimi K2.6 through OpenRouter.

Step 3: Connect Telegram to the Agent

  1. In Telegram, open the chats tab and select the verified BotFather contact. Select Start.
  2. Type /mybots. Select the bot created earlier.
  3. Select Open chat to reach the bot's chat thread.
  4. Pin the chat by right-clicking it and selecting Pin. The bot stays at the top of the sidebar.

To start the gateway, which connects the VPS to Telegram:

  1. Open the Hermes terminal and type hermes.
  2. Type /gateway. The output shows a command to start the gateway.
  3. Copy the Python command only.
  4. Exit Hermes. On Mac, press Control + C.
  5. Paste the Python command into the terminal and press Enter. The terminal displays "starting Hermes Gateway."

After the gateway starts, the Docker container is no longer needed for routine use. Send a message in Telegram. A typing indicator in the upper left corner confirms that the agent is online.

To reconnect later, open the VPS project, select the container, open the terminal, and type hermes.

Step 4: Add a Tool Through an API Key

This example uses Tavily, a tool that connects AI agents to web search, extraction, research, and crawling. Tavily offers a free plan. The free researcher plan includes 1,000 API credits per month.

Create the Key

  1. Create a Tavily account.
  2. Create a new API key and name it, such as "Tavily_test."
  3. Set a monthly credit limit. The guide used 300 credits.
  4. Copy the key.

Confirm the Key Name

Ask the Hermes agent for the required key-value format. Hermes responded with the key name TAVILY_API_KEY and the API key as its value.

Save the Key Securely

Never paste API keys into the Telegram chat. Save them in the Hermes configuration through the terminal.

  1. Open the Hermes container terminal and type hermes config to view configuration paths, saved keys, and recommended keys.
  2. Use the command format hermes config set KEY VALUE. No equal sign is needed. Enter the key name, a space, and the value.
    • Example: hermes config set TAVILY_API_KEY <your key>
  3. Confirm the output reads "set Tavily API key in the environment variables." Run hermes config again to verify.

Set scoped, limited keys with credit caps. Do not give the agent unrestricted access to accounts.

Restart the Gateway

Environment variables load when the gateway starts. Restart the gateway after adding a key.

  1. In Telegram, send /restart. The agent restarts the gateway gracefully.
  2. Alternatively, in the terminal, type hermes, then /gateway, copy the Python command, exit Hermes, and run the command.
  3. Type /new to start a new session. A new session resets context and is recommended after adding a key.

Test the Connection

Send a request that names the variable exactly, such as: "Use the shell operator and my key TAVILY_API_KEY to run a web search for AI news this week."

  • Use the $ shell substitution syntax so the agent references the variable without reading the key value.
  • Name the location of the key, such as the configuration of the .env file in the Hermes Docker project.
  • Ask the agent to activate helper tools for the search.

The agent located the key, generated a search query, requested 10 results with advanced search depth, and asked for approval. Approval options include "always," deny, or approve for the current session. The guide approved the session. The agent returned a set of AI news results and confirmed that the Tavily key was valid and the API responded in under 3 seconds.

Each API key differs in setup. Ask Hermes how a specific application requires configuration.

Step 5: Create an Automation

Build a Research Automation

The guide created a research automation to track AI model releases relevant to AI automation for entrepreneurs. The request to the agent described the purpose: track major model updates and show how each update applies to automation workflows.

The agent proposed the following architecture:

  • Strategy: Turn model releases into automation opportunities.
  • Discovery: Run Tavily searches on a schedule.
  • Filtering: Remove low-value content. Keep model and API releases relevant to automation.
  • Packaging: Format results as YouTube content opportunities.
  • Delivery: Send results to Telegram.

Proposed parameters:

  • Schedule: Search every 6 hours. Deliver a summary every morning at 8:00 a.m. in the user's time zone.
  • Search queries: New Claude or Anthropic model releases, new OpenAI GPT models, new Gemini models, new Mistral AI models, AI agent automation frameworks, and new APIs.
  • Output: Links, video angles, and a short summary at the top.

The agent asked four questions. The user answered:

  • Schedule: Search every 6 hours. Send a briefing every morning at 8:00 a.m. Send briefings every 6 hours only when relevant news exists.
  • Delivery: Telegram direct message and a saved file for reference.
  • Tone: Editorial briefing.
  • Start: Start immediately.

The agent built a prototype, then created the cron jobs. It requested approval to execute Python code and received it.

Convert the Script to a Skill

The initial output was a Python script with two cron jobs, which runs silently in the background. A skill file allows on-demand execution by command. The user selected a hybrid setup, which keeps scheduled runs and adds on-demand runs.

After the conversion, the user can issue commands such as "check AI news," "run the news monitor," or "what's new in AI." The agent runs the skill and returns the results.

Verify the Automation

  1. Run the skill on demand. The agent returned current results, including news about company filings, model releases, and pricing changes, with video angle suggestions.
  2. Check system status. The output confirmed that the Tavily key was active, deduplication was working, cron jobs were scheduled, and skill triggers were active.
  3. List cron jobs by sending "List all cron jobs." The output showed:
    • An AI news scanner running every 6 hours.
    • An AI news morning briefing running daily at 1:00 p.m. UTC, which equals 8:00 a.m. Eastern Standard Time.

Note: During filming, the Tavily key expired and was re-entered. The guide restarted the gateway after the update.

Chain Automations

Automations can chain together. For example, after the AI news scanner runs, a script job can produce YouTube video scripts from the news and send them for approval. The user can accept, reject, or revise a script through a text command or a voice note.

Step 6: Organize Agents by Function

Traditional and Agentic Workplaces

A traditional workplace has a CEO, department heads such as a chief marketing officer, operations officer, financial officer, and technical officer, and employees who handle individual tasks.

In an agentic workplace, teams are smaller and management layers are fewer. A solo or small-team operator acts as the CEO. AI agents fill department roles, and workflows replace many employee tasks. AI agents form the layer between a request and the workflows that carry it out.

Routing Structure

The agentic structure works as follows:

Example: A user asks, "What is my most viewed YouTube video this week?" The Hermes agent routes the request to the marketing cluster. The marketing cluster selects a skill that retrieves YouTube videos from the last 30 days and their metrics. The result returns to Hermes as context, and Hermes answers the question.

Structure:

  • One agent: Hermes Agent acts as chief of staff. It does not run workflows directly. It manages skills and skill clusters.
  • Department clusters: Group skills by function, such as marketing, operations, finance, and general.
  • Routing: For each query, the agent selects the cluster that holds the context needed to answer the question.
  • Purpose: Gather information and context to complete tasks or answer questions accurately.

Build the library gradually by connecting tools to each department and creating skills within each cluster. A library of skills linked to real tools increases usefulness.

Summary of the Process

  1. Deploy a VPS with Docker Manager.
  2. Install Hermes Agent through the setup command, with OpenRouter as the model provider and Telegram as the communication platform.
  3. Connect Telegram through BotFather and the gateway command.
  4. Add tools through API keys saved with hermes config set, and restart the gateway after each change.
  5. Create on-demand skills and scheduled cron jobs for each task.
  6. Organize skills into department clusters, with Hermes Agent managing routing.

What Hermes Agent Is and How It Works

Defines Hermes Agent and explains when to use it, when not to, and how its memory, skills, and cron jobs work together.

  • Hermes Agent is described as a self-improving 24/7 autonomous AI agent that lives on a server, remembers what it learns, and improves over time.
  • Three layers: memory (persistent, injected into every session), skills (playbooks written after solving new problems, editable), and cron jobs (scheduled tasks that run without user input).
  • Agentic loop: user sets a target, agent reads memory and skills, uses connected tools (Gmail, GitHub, calendar, CRM like HubSpot, Notion, Airtable), produces a result, then receives feedback that updates memory and skills.
  • Example feedback: a YouTube thumbnail target of 8% click-through rate versus an actual 6% would trigger adjustment.
  • Use Hermes for recurring work that must happen when you are absent; use a chatbot for one-off answers and a coding agent like Claude Code for building software.
  • Not recommended: building a $1 million app idea overnight with Hermes and no direction.

Local vs. VPS Deployment

Compares local installation with a VPS (virtual private server) and justifies choosing a VPS.

  • Local setup is free but uses the user's computer; the agent goes offline when the laptop lid is closed.
  • A VPS costs roughly 5to5 to 10 per month (the speaker also cites 5to5 to 20) and stays online 24/7 in the cloud.
  • Local self-learning only works while the computer is on; on a VPS it runs continuously.
  • Both options require a one-time setup; the VPS has a slightly more technical bridge.
  • Local flexibility is low because background jobs consume machine resources; a VPS makes it easy to run multiple Hermes profiles.
  • Verdict: the VPS is the winner and is the option used in the video.

Deploying Hermes on a Hostinger VPS

Covers choosing a VPS plan, deploying Hermes through Docker Manager, and launching the setup wizard.

  • Hostinger is used as the VPS provider; the speaker discloses it is the sponsor of the video. Sponsored content is excluded from this summary.
  • Recommended plan: KVM 2, described as a popular choice that handles multiple agents; the coupon code mentioned gives 10% off.
  • Server location selected: United States.
  • VPS creation takes about 2 to 5 minutes.
  • Steps: Manage > Docker Manager > Compose > One-click deploy > search 'Hermes agent' > select > save username and password in a password manager > Deploy.
  • Deploy prepares the environment only; Hermes is installed by opening the container's terminal and running 'hermes setup' and then choosing full setup.
  • Save credentials in a password manager such as 1Password or Bitwarden and keep them private.

Connecting the Model Brain via OpenRouter

Configures the model provider (OpenRouter), selects a model, and sets a spending limit on the API key.

  • Model providers can be New Portal, XAI (Grok login), Codex subscription, or pay-per-use API keys; the speaker prefers pay-per-use via OpenRouter.
  • OpenRouter gives access to many models (Anthropic, OpenAI, Google, XAI, Mistral, Nvidia, IBM, and others) with one API key; about $5 of credits is enough to start.
  • Create an API key in OpenRouter, name it (example: Hermes), and set a credit limit; the speaker sets $30 and says always set limits.
  • Paste the key into the Hostinger terminal when prompted; it shows 'key saved'.
  • Model chosen in the video: Kimi K2.6, described as cheaper than Anthropic models.
  • Terminal backend: keep current, run locally on the container.

Setting Up Telegram as the Communication Channel

Creates a Telegram bot with BotFather, links it to Hermes, and identifies the allowed user ID.

  • Open BotFather in Telegram by searching in the apps tab, then select 'create new bot'.
  • Bot names must be unique and end in 'bot' (example used: General Drake bot).
  • BotFather returns a token; paste it into the Hermes setup terminal and keep it secret.
  • Find your Telegram user ID by using a verified 'user info' bot and sending /start; paste the ID as allowed user.
  • When asked 'Use your ID as the home channel?', answer Y.
  • Tool selection: most defaults are kept; browser, image, and search providers are skipped or configured later because some require subscriptions.

Starting the Telegram Gateway

Shows how to start the Telegram gateway so the VPS agent can receive messages from the phone or desktop app.

  • Run /gateway inside Hermes to get a start command; copy that Python command exactly.
  • Exit Hermes with Ctrl+C on Mac (not Cmd+C), then paste and run the command in the terminal.
  • Output 'starting Hermes Gateway' confirms the messaging platform is running.
  • Test by messaging the bot; a typing indicator confirms it is online.
  • To reconnect later: Docker Manager > container > terminal > type hermes.

Connecting Tools and Securing API Keys (Tavily)

Explains the harness concept (brain, communication method, tools) and how to securely add an API key using the Tavily search tool as an example.

  • Hermes is described as a harness: pre-filled instructions and tools that let an AI model work autonomously.
  • Three required parts: the brain (OpenRouter), a communication method (Telegram), and tools.
  • Tavily provides web search, extraction, research, and crawling; the free researcher plan gives 1,000 API credits per month.
  • Create a Tavily API key with a monthly credit limit (about 300 in the video).
  • Naming convention: TAVILY_API_KEY.
  • Add the key in the Hostinger terminal with 'hermes config set KEY value' (no equals sign).
  • Never paste API keys into the Telegram chat; set them through the terminal and always set credit limits and scope keys narrowly.
  • Restart the gateway with /restart in Telegram, then start a new session with /new so the environment variable loads.

Building Your First Scheduled Automation

Tests the Tavily connection and then builds a scheduled AI news monitor cron job and a hybrid on-demand skill.

  • Test prompt asks the agent to use the shell operator with the TAVILY_API_KEY variable to search for AI news this week; the agent returned 10 results with advanced search depth.
  • Approve tool requests as 'once', 'session', or 'always'; the speaker approves for the session.
  • The agent proposed a plan: Tavily searches every 6 hours, filters for model and API releases relevant to automation, packages them as YouTube content ideas, and delivers to Telegram.
  • Search queries included Claude new model releases, OpenAI GPT, Gemini, Mistral, AI agent automation frameworks, and new APIs.
  • The user chose a 6-hour scan saved to a file, plus a daily morning briefing at 8:00 a.m. Eastern (1:00 p.m. UTC), in an editorial briefing tone.
  • Cron jobs run silently in the background; skills can be triggered on demand. The user chose the hybrid option (script, cron jobs, and skill).
  • Scheduled jobs were listed with the 'cron job list' command: AI news scanner (every 6 hours) and AI news morning briefing (daily).
  • The Tavily key expired during filming and was re-entered through the config.

The Agentic Workplace and Scaling with a Chief of Staff

Explains the agentic workplace model and the Chief of Staff routing architecture for scaling Hermes into departments.

  • Traditional workplace: CEO, C-suite department heads (CMO, operations, CFO, CTO), then employees.
  • Agentic workplace: small human teams (the speaker and his brother) with AI agents in the middle layer, deployed through workflows.
  • One Hermes instance acts as Chief of Staff: it routes each query to a bucket of skills (marketing, operations, financial, general).
  • Example: 'What is my most viewed video this week?' is routed to a marketing cluster and a skill that pulls the last 30 days of YouTube metrics.
  • Scale by building department skill clusters and connecting tools within each department.
  • Hermes should gather context and assist rather than fully replace people.