↓Skip to main content
  1. /classes/
  2. Classes, Fall 2026/
  3. CS 2010 Fall 2026: Course Site/

CS 2010 Fall 2026: Setup VPS Agent

·373 words·2 mins·

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:

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

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
#

Nat Tuck
Author
Nat Tuck