Setting up a VPS with an agent on it.
Getting a VPS #
Hard but free:
- Oracle free tier
- Amazon free tier / new user credits
- Microsoft Azure container with student credits, maybe
Easy but not quite free:
- https://www.interserver.net/ - One slice, $3/month
- https://www.ovhcloud.com/ - Small VPS, $6/month
Initial Install #
- Make sure your VPS will have at least 1GB of RAM. 2GB is better
- Pick a nearby location (e.g. New Jersey, New York, Quebec)
- Pick Debian 13 or Ubuntu 26.04 unless you have a specific preference
- Prefer a SSH key over a root password, but if you are given a root password make sure to save it.
- Once the server is created, you’ll get an IP address (e.g. 37.113.28.99). Save that.
Initial Login #
- The instructions will give you a login user. Typically root or the distro name.
ssh debian@37.113.28.199(your login user, your IP)- Enter password. It won’t echo back.
Set Up non-root Account with passwordless sudo #
- If you aren’t root, get to root:
sudo su - - If you started as root, create a user account:
adduser alice - Set a good password
- Add your new user to the sudoers group
adduser alice sudoers - Edit the sudoers file
visudo
Before:
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
After:
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
Set Up Opencode #
Make sure we’re working as the non-root user with passwordless sudo:
From your machine: ssh alice@37.113.28.199
- Do
sudo apt install curl build-essential git python-is-python3 - https://opencode.ai/
- Terminal, use the curl command
- Log out, log back in, run OpenCode,
/connect, give it an OpenRouter (or other) API key
Set Up Hermes Agent #
Make sure we’re working as the non-root user with passwordless sudo:
From your machine: ssh alice@37.113.28.199
- https://hermes-agent.nousresearch.com/
- Run the Linux install command
- Give it an appropriate LLM provider API key
If you get stuck configuring Hermes:
- Go to the Hermes folder
cd ~/.hermes - Run
opencode - Have OpenCode help fix your hermes config
Set Up Messaging #
- https://hermes-agent.nousresearch.com/docs/user-guide/messaging/
- If you use one of the “popular” platforms, try setting that up.
- If you can’t get anything else working, set up
ntfy. Yes, that includes installing the app on your phone.