How to Deploy a Hermes Agent on Hostinger VPS (Step-by-Step)
Getting Started with VPS Setup
Choosing Your VPS Plan
- Begin by visiting the provided link to access the setup page for your VPS plan, ensuring you receive the lowest pricing available.
- Select the KVM 2 plan, recommended for running the Hermes agent, which includes 2 virtual CPU cores, 8 GB of RAM, 100 GB of NVMe disk space, and 8 TB of bandwidth.
- Choose your billing period; a 12-month plan is suggested for savings and a free domain for the first year. Daily auto backups can also be toggled on.
Completing Your Order
- Review your order details on the right side of the screen and remember to use the discount link from earlier.
- Enter your email address and create a password to register. Fill out your billing address and payment information before proceeding.
Setting Up Your API Key
Acquiring OpenRouter API Key
- For this video, an OpenRouter API key is used due to its flexibility in accessing over 200 AI models with one key.
- Sign up for an OpenRouter account if it's your first time using it by entering your email and creating a password.
Creating Your API Key
- After verifying your email, create an API key named "Hermes agent" with optional credit limits set according to personal preferences.
- You can choose when to reset this limit (daily, weekly, or monthly), but leaving it off is acceptable for this setup.
Finalizing Billing Setup
Adding Credits
- Copy your newly created API key securely; do not share it as it may become compromised.
- Set up billing by adding credits or linking a payment method. This ensures that new credits load properly into your account.
Confirming Credit Addition
- Once credits are loaded into your account successfully, you can proceed with setting up communication through Hostinger.
Integrating Telegram Bot
Setting Up Telegram Bot Token
- Paste in your copied API key within Hostinger's interface. Next, obtain a Telegram bot token for communication via Telegram apps.
Creating Your Bot
- Search for @BotFather in Telegram to start creating a new bot. Name it appropriately (e.g., Medix Hermes Assistant).
Finalizing Bot Creation
- Ensure that the chosen username ends with "bot" (e.g., Medix Hermes Assistant bot). Copy down the generated token back into Hostinger before deploying.
Deploying Your Project
Monitoring Deployment Process
- After clicking deploy, monitor progress as deployment may take several minutes.
Accessing Project Dashboard
- Once deployed successfully, access server info through the VPS dashboard where all settings are displayed on the left side.
Managing Environment Variables
- Click on manage under Hermes agent deployment to view environment variables including Open Router API key and Telegram bot token entered during setup.