How to Claw?
A recipe-style guide to getting your own AI agent — from zero to a self-hosted assistant you can reach via email and Telegram.
Ingredients
- An OVH VPS-1 — their smallest tier, a few euros a month
- A domain name registered at OVH — comes with a free Zimbra email account
- An Ollama Cloud account — $20/month for unlimited model hosting
- Hermes or OpenClaw — free, open-source agent frameworks
- A Telegram account — free, install on your phone
- About an hour of your time and a cup of coffee
This guide walks you through every step of setting up a personal AI agent on a cheap VPS. By the end you will have an autonomous agent that reads its own email, chats with you on Telegram, and serves its own website. No prior server experience required — just follow the recipe.
1 Rent a VPS from OVH
Head to OVH and order their smallest tier: VPS-1. It costs a few euros a month and is more than enough for running an AI agent. Pick a data centre close to you and choose Ubuntu 24.04 as the operating system.
2 Register a domain and set up email
While you are in the OVH dashboard, register a domain name. OVH includes a free Zimbra email account with every domain. Setting it up is not entirely obvious — you need to go through three steps in the right order:
2a. Create an Organization
- In the OVH Control Panel, navigate to Web Cloud → Zimbra Mail.
- Click the Organization tab, then Add Organization.
- Give it a name (e.g. your project name) and a label, then confirm.
2b. Add your Domain
- Click the Domain tab, then Add a domain.
- Select the organization you just created.
- Pick your domain from the list and choose Recommended configuration — this automatically sets up MX, SPF, DKIM, and SRV records.
- After adding, click the three-dot menu next to the domain and select Diagnostics to verify all DNS records are green.
2c. Create the Email Account
- Click the Email accounts tab, then Create an account.
- Choose the address (e.g.
agent@yourdomain.com), fill in the display name, and set a strong password. - Note down the IMAP/SMTP details — you will need them later:
- IMAP:
ssl0.ovh.net, port993(SSL) - SMTP:
ssl0.ovh.net, port465(SSL)
- IMAP:
3 Choose a model host
Your agent needs a brain. Go with Ollama Cloud for unlimited cloud model hosting at $20/month. The recommended model is glm5.1 — it is capable, fast, and well-suited for agentic workloads.
4 Install an agent framework on the VPS
Hermes is a mature, actively developed agent framework that makes wiring everything together straightforward. It is the simpler alternative to rolling your own agent stack and a solid choice for a first deployment. SSH into your VPS and follow the official Hermes setup instructions. Once Hermes is running, configure it to talk to your Ollama Cloud endpoint and point it at the glm5.1 model.
5 Set up Telegram first
Telegram is the easiest messaging channel to wire up and the one you should get working first. Even if you have never used Telegram before, it is worth installing the app on your phone just for this purpose — the bot API is simple, free, and has no approval process.
- Open Telegram and talk to @BotFather to create a new bot. You will receive an API token.
- Add the token to your Hermes configuration so the agent can send and receive Telegram messages.
- Send your bot a test message and confirm it responds.
6 Get the agent settled in
Now comes the fun part — you tell the agent to set itself up on the VPS. In theory you could give it all three tasks in a single prompt, but it is better to start practising with small, focused work items. This builds your intuition for how the agent handles instructions, and makes it easy to catch and correct mistakes early.
Give the agent these three prompts one at a time, waiting for each to complete before moving on. Substitute your own domain, email credentials, and IP address.
Prompt 1: Get email operational
Configure email access on this machine.
- IMAP server: ssl0.ovh.net, port 993 (SSL)
- SMTP server: ssl0.ovh.net, port 465 (SSL)
- Username: agent@yourdomain.com
- Password: (your email password)
Connect to the mailbox and verify you can list folders.
Report back when done.
Prompt 2: Test email
Send a test email from agent@yourdomain.com to my-personal@email.com.
- Subject: "Agent online"
- Body: "Email is working. Ready for further instructions."
Confirm the email was sent and delivered successfully.
Prompt 3: Set up a website with HTTPS
Set up a public website on this machine.
- Install nginx.
- Obtain a Let's Encrypt certificate using certbot,
with agent@yourdomain.com as the contact email.
- Configure nginx to serve a simple status page
at https://yourdomain.com.
- Verify the site is reachable and the certificate is valid.
Report back when the site is live.
The agent will install packages, configure services, and report back at each step. Once all three prompts are done, your agent is live.
What you end up with
An AI agent running on your own VPS that can be reached via email and Telegram, and that manages its own website with automatic HTTPS. From here you can layer on more capabilities — calendar access, file storage, API integrations — one prompt at a time.
Bonus: use Claude’s frontend skill
When it comes to making your agent’s website look good, the Claude Code frontend skill is a huge help. It lets you describe a page in plain language and get well-structured, production-ready HTML and CSS back. If you want your agent’s status page or dashboard to look polished without hand-writing every line of markup, this is the tool to reach for. You can read more about Claude Code skills in the official documentation.