Run an AI Agent on Oracle Cloud Free Tier (Arm64)
Deploy Hermes Agent on Oracle Cloud Arm64 with a persistent Docker volume. Check current free-tier quotas, capacity, network access and recovery.

You have chosen Oracle Cloud's free tier, but the next decisions are less obvious: which Arm shape to select, how to keep an agent's memory outside its container, and what happens if Oracle reclaims an idle VM. This guide takes that deployment path using Hermes Agent, with the current quota and a reproducible Docker configuration.
This is self-hosting on your own Oracle Cloud Infrastructure (OCI) account. It is separate from Hermify's managed hosting. OCI's console steps below follow Oracle's documentation; this article does not claim that a new OCI tenancy or VM was provisioned during its preparation.
Check what is actually free first
As checked on December 5, 2026, Oracle documents 1,500 OCPU-hours and 9,000 GB-hours per month for the Always Free VM.Standard.A1.Flex Arm shape. Oracle describes that as 2 OCPUs and 12 GB of memory for an Always Free tenancy. Older tutorials quoting 4 OCPUs and 24 GB are not the current baseline.
The allocation is shared across eligible instances, not a fresh allowance for every VM. Oracle also lists 200 GB of combined Always Free boot and block storage in the tenancy's home region. Existing resources consume those pools, so inspect your own limits before choosing a shape or increasing a disk.
For this example, a 1-OCPU, 6-GB Ubuntu Arm64 VM leaves part of the documented compute pool unused. That is a configuration choice, not a measured minimum or a promise that capacity is available. Model inference through a paid API, resources outside the eligible pool, and paid image or service choices have separate costs.
Before pressing Create, check:
- You are in the tenancy's home region and the selected resources are eligible for Always Free.
- Your existing A1 instances and volumes leave enough allowance for this VM.
- The image, boot volume and optional services do not introduce an unexpected charge.
- You can tolerate a capacity failure or interruption. Always Free is not an availability guarantee.
If you are still choosing a provider, use the cheap VPS guide first. The rest of this article assumes OCI is already your choice.
Create an Arm64 VM you can reach over SSH
In OCI, create a Compute instance with an eligible Ubuntu image and the VM.Standard.A1.Flex shape. Select your reviewed CPU, memory and boot-volume allocation, then configure the network and SSH public key. An x86 image or a different shape changes the compatibility and pricing assumptions.
Oracle's instance-creation documentation recommends configuring a virtual cloud network and explains public addressing or bastion access. For a public SSH route, allow TCP 22 only from the administrative source addresses you need. The VCN security rules, subnet route and guest firewall all matter; changing one does not automatically configure the others.
Connect with the image's documented username, normally ubuntu for an Ubuntu image:
ssh ubuntu@YOUR_VM_IP
uname -m
On A1, expect aarch64. If you see x86_64, stop and check the instance shape rather than forcing Arm instructions onto a different VM.
Install Docker Engine and its Compose plugin using Docker's Ubuntu instructions. Complete their non-root access instructions if you want to run the following Docker commands without sudo. Verify both tools before continuing:
docker version
docker compose version

Keep the agent's data outside the image
Hermes stores its configuration, credentials, sessions, skills and memory in the data directory mounted at /opt/data in the official container. A persistent mount is the important boundary: replacing a container must not replace the only copy of that directory.
Create a dedicated directory on the VM:
mkdir -p ~/hermes-oci/data
cd ~/hermes-oci
chmod 700 data
Save this as compose.yaml:
services:
hermes:
image: nousresearch/hermes-agent:v0.23.6@sha256:0baca7f8fc79c3cac0b06d3537e8d2e98b5ee1283f2d7d73a763d42cabfa579b
restart: unless-stopped
volumes:
- ./data:/opt/data
command: ["gateway", "run"]
The pin is the official stable image manifest checked for this article. Its registry manifest includes linux/arm64 and linux/amd64; Docker selects the matching platform on the A1 host. The version and digest make this example reproducible rather than silently following a moving latest tag.
There is deliberately no published port in this configuration. Messaging-platform use does not require making the agent's API publicly reachable. If you also need an API or browser workspace, configure its authentication separately and use the private remote-access guide rather than opening an unauthenticated service to the internet.
Configure a provider, then start the gateway
Pull the pinned image and check the Compose file:
docker compose config --quiet
docker compose pull
Run the upstream setup wizard against the same persistent directory:
docker compose run --rm hermes setup
Choose a model provider and configure the messaging platform you intend to use. For example, a Telegram setup needs a bot token and the upstream access controls. The wizard writes configuration into the mounted data directory, so the subsequent gateway uses that same state.
Free infrastructure does not make the chosen model API free. Check the provider's current billing and usage limits before leaving an agent running. Keep credentials in the agent's local configuration; the Compose file above contains no API key.
Start the service and inspect its state:
docker compose up -d hermes
docker compose ps
docker compose logs --tail=50 hermes
A running container establishes process state, not a successful conversation. From your own account, test the configured messaging channel and check that access controls reject unintended users. No customer-hosted runtime is needed to validate your self-hosted installation.
The official image supervises gateway mode. Its API health endpoint is a separate capability: publishing port 8642 alone does not enable the API, which requires the documented API_SERVER_ENABLED configuration. Do not diagnose this messaging-only example by expecting an API endpoint that was never enabled.
Prove persistence and prepare recovery
Before relying on the agent, verify the mounted path:
docker inspect "$(docker compose ps -q hermes)" \
--format '{{range .Mounts}}{{println .Source "->" .Destination}}{{end}}'
Confirm that your intended host directory maps to /opt/data. Then, on this new operator-owned installation, recreate the container with the same Compose file and check that its configuration and a harmless test file remain:
printf 'persistence-check\n' > data/persistence-check.txt
docker compose exec hermes cat /opt/data/persistence-check.txt
docker compose up -d --force-recreate hermes
docker compose exec hermes cat /opt/data/persistence-check.txt
Both container-side reads should print persistence-check. This checks that the container sees the same mounted file before and after recreation; it does not prove that every memory provider, optional dependency or restore procedure works. For a fuller container explanation, see the Hermes Docker guide.

Keep a separate backup of the data directory and Compose file outside this VM. For a simple consistent file backup, stop this new service briefly, copy the directory with its permissions, then restart it. Encrypt backups containing credentials and test restoration into another operator-owned environment before treating them as recovery evidence.
A mount protects state from container replacement; it does not protect against a lost VM, a deleted disk or account-level problems. Oracle documents possible reclamation of idle Always Free instances based on CPU, network and, for A1, memory utilization across a seven-day period. A quiet personal agent can be affected, so do not equate restart: unless-stopped with protection from cloud-provider reclamation.
When setup does not work
Out of host capacity: Oracle describes this as a temporary lack of the eligible shape in your home region. Check another eligible availability domain or try later. Moving to a paid shape changes the cost decision; it is not an equivalent free-tier fix.
SSH times out: check the instance's public or bastion route, VCN rules, source IP and guest firewall. Do not expose additional agent ports to repair SSH connectivity.
The image will not start: confirm aarch64, the image reference and docker compose config --quiet. Read the actual container logs before changing configuration. A missing messaging token, an unsupported optional component and a network failure require different fixes.
Settings disappear after replacement: inspect the mount and working directory first. Running a second Compose project from another directory can create a different ./data path and look like lost memory.
Decide who should operate the server
OCI can be useful when you want to learn or already maintain your own cloud resources. You still own updates, security, backups, provider costs and recovery when free capacity is unavailable.
If that operational work is the part you want to remove, Hermify provides a managed Hermes Agent instead of requiring you to maintain this OCI deployment. Get started with Hermify if that tradeoff fits your needs. Keep the self-hosted route when controlling the infrastructure is itself part of the goal.
Sources
Documentation and image metadata reviewed on December 5, 2026. OCI provisioning and real messaging/model calls are operator-performed steps, not claimed end-to-end cloud tests in this article.
Run Your Own Hermes Agent
Bring your API key, connect Telegram, and get a self-improving AI agent live in 60 seconds.
Get Started