Skip to content
The 31 guidesFREN中文
Guides
Part 4 · guide 4 of 8 Level: Intermediate Reading time: 14 min Platforms: Linux

Hermes & OpenClaw: your in-house agents

What if your mini-PC became an assistant you drive from your phone? Claude Code does it natively; Hermes and OpenClaw go further and turn the machine into a self-hosted agent, reachable by chat, backed by your local models.

In this guide
  1. 01Native first: Claude Code can already be driven remotely
  2. 02The common idea: a bridge between a chat and an agent
  3. 03OpenClaw
  4. 04Hermes
  5. 05Concretely, what do you ask it?
  6. 06Why the mini-PC is what makes this great
  7. 07Getting started, carefully
  8. 08Frequently asked questions

In short

To drive an agent from your phone, start with what Claude Code does on its own: Remote Control opens your local session in the Claude app or at claude.ai/code, and Channels (in preview) connect the session to a Telegram, Discord or iMessage bot. Hermes Agent (Nous Research) and OpenClaw (OpenClaw Foundation), two open-source gateways, add what the native route doesn't: any model, including your local models via Ollama, some twenty messaging apps, memory and scheduled tasks. Either way, lock access down to your own account and keep permissions tight.

Do this first: Working remotely (terminal + VNC)

Until now, you drive your agent from a terminal, sitting in front of the machine (or over SSH). But once you have an always-on mini-PC, another idea becomes possible: what if you could send it a message from your phone, out in the street, and it got to work? Claude Code does it natively, and that’s where we start. A family of self-hosted agent tools takes the idea further; the two most interesting to know: OpenClaw and Hermes.

Native first: Claude Code can already be driven remotely

Before installing anything, check whether Claude Code is enough. It offers two ways to reach it from your phone, with no third-party software.

Remote Control opens your local session at claude.ai/code or in the Claude app (iOS and Android). You see the conversation, you type, you approve permission prompts, and everything runs on the mini-PC, with your files and your MCP servers.

# an interactive session that can also be driven from your phone
claude --remote-control "mini-pc"

# or server mode: it waits for connections and shows a QR code (space bar)
claude remote-control

In a session that’s already open, /remote-control does the same. You need a Pro, Max, Team or Enterprise subscription, signed in with /login: an API key isn’t enough.

Channels, still in preview, connect a session to a messaging app: Telegram, Discord or iMessage. You write to your bot like to a colleague, Claude Code works on the machine and replies in the same thread. Each channel is a plugin that needs Bun on the machine. For Telegram, once you’ve created a bot with BotFather, the steps happen inside Claude Code: /plugin install telegram@claude-plugins-official, then /telegram:configure followed by the bot token. Then you restart with the channel enabled:

# start Claude Code with the Telegram channel
claude --channels plugin:telegram@claude-plugins-official

Send the bot a message, it answers with a pairing code to confirm with /telegram:access pair <code>, then lock it down with /telegram:access policy allowlist so only your account gets through. Messages only arrive while the session is running: launch it inside tmux (see Working remotely). The full procedure is in the Channels docs, with the Remote Control docs next to it.

The common idea: a bridge between a chat and an agent

OpenClaw and Hermes start from the same principle. You install a gateway (a small service) on the mini-PC. This gateway links a chat channel (typically Telegram) to an agent running on the machine, backed by your local models via Ollama and/or Claude in the cloud.

The result: you write to a bot the way you’d write to a colleague. “Summarize the latest news for me”, “kick off the deployment”, “find where authentication is handled in my repo”. The message arrives on the mini-PC, the agent acts (it has tools, remember the agent loop), and replies. Your workshop in your pocket, with nothing unplugged.

OpenClaw

OpenClaw (first known as Clawdbot) is an open-source agent gateway, MIT-licensed, that you host yourself. Its creator, Peter Steinberger, joined OpenAI in February 2026; since then the project has been stewarded by an independent nonprofit, the OpenClaw Foundation, with no paid tier or hosted service. OpenClaw connects more than twenty messaging apps to a local agent, rich in native commands, and extensible via plugins (with a community catalog, ClawHub, for sharing them): you can teach it to administer your machine, orchestrate several models, trigger your own scripts. It’s the ideal tool to build yourself a tailor-made personal assistant.

Hermes

Hermes Agent (from the Nous Research lab, MIT license) pursues the same idea with its own approach: a command-line agent, paired with a gateway to some twenty messaging apps (Telegram, Discord, Slack, WhatsApp, Signal…), scheduled tasks that deliver their results in the chat, and skills it creates and refines as it goes. It works with any model provider, including your local models via Ollama. It can also hand coding work to another agent: it ships with skills to drive Claude Code, Codex or OpenCode. It overlaps so much with OpenClaw that it offers a migration: hermes claw migrate imports settings, memories and skills from an OpenClaw install.

Concretely, what do you ask it?

It clicks once you see the real uses. A few examples that run great on an always-on mini-PC:

  • Monitoring and summaries. “Summarize the last 5 articles from such-and-such RSS feed”: the local model chews through the volume, for free, while you grab a coffee.
  • Remote control of your work. “Run the tests on project X”, “deploy the main branch”, “show me the logs from the last 20 minutes”: from your phone, in a meeting or on the train.
  • Search in your repos. “Where is authentication handled in my project?”: the agent reads the code and answers, without you opening an editor.
  • Reminders and automation. Paired with a scheduled agent, it pings you with a report every morning.
  • Idea capture. A note dictated to your bot, and the agent files it, reformats it, adds it to your memory file.

The common thread: anything short, frequent and triggered from the outside is exactly what justifies an always-on machine.

Why the mini-PC is what makes this great

These tools shine precisely because the machine is dedicated and always on:

  • Always reachable. Your assistant never sleeps: the mini-PC stays awake while your laptop is closed.
  • Private and frugal. Backed by a local model, it can run dozens of times a day with no marginal cost and no data leaving, exactly the hybrid logic: local for volume, Claude for the tough spots.
  • Accessible from anywhere. Via your Tailscale private network and a channel like Telegram, you drive it from the other side of the world, securely.

Getting started, carefully

0 of 5 steps done Your ticks stay in this browser.

  1. Install one gateway, just one to begin with

    If Claude Code’s native route is enough for you, turn on Remote Control or a Channel and skip straight to locking things down. Otherwise, choose OpenClaw or Hermes (they overlap, no need for both at the start). Follow the project’s official docs (OpenClaw, Hermes Agent) to install it on the mini-PC, and Vincent’s write-up for OpenClaw.

  2. Connect your chat channel

    Create a Telegram bot and connect it to the gateway. That’s what gives you the remote control from your phone.

  3. Point it at your models

    Configure the agent to use your local Ollama model for the everyday, and Claude for the hard tasks. An assistant that acts needs to chain actions on its own: Quelle IA’s Agents ranking helps you choose, its local models ranking tells you what runs at home, and its comparison tool puts two candidates face to face (all in French).

  4. Lock down access, non-negotiable

    Set up an allowlist: only you (your Telegram account) can talk to the bot. Without it, anyone who finds the bot could command your machine. With Claude Code’s Channels, that’s the pairing step followed by /telegram:access policy allowlist.

  5. Run it as a service

    Install the gateway as a systemd service so it restarts on its own (same logic as for the site or your scheduled agents).

Frequently asked questions

Does Remote Control work with a local model?

No. Remote Control doesn't work when Claude Code goes through another model server, and Channels require an Anthropic login. You also need a Pro, Max, Team or Enterprise plan: an API key isn't enough. To drive an agent backed by your local Ollama models from your phone, use Hermes or OpenClaw.

How do I connect Claude Code to a Telegram bot?

First create a bot with BotFather and install Bun on the machine, since each channel is a plugin that needs it. In Claude Code, type /plugin install telegram@claude-plugins-official, then /telegram:configure followed by the bot token, and restart with claude --channels plugin:telegram@claude-plugins-official. Then confirm the pairing code the bot sends you with /telegram:access pair, and lock it down with /telegram:access policy allowlist.

Does my bot have to stay running to answer me?

Yes. With Claude Code Channels, messages only arrive while the session is running: start it inside tmux so it survives your connection closing. With Hermes or OpenClaw, install the gateway as a systemd service so it restarts on its own.

OpenClaw or Hermes: which one should I pick?

The two overlap a lot, so there's no point installing both at first. OpenClaw aims to be an extensible personal assistant, rich in commands and open to plugins; Hermes aims to be an agent that learns, building up memory and skills as you use it, and it can hand coding work to Claude Code, Codex or OpenCode. When in doubt, pick the one whose docs speak to you most: the hermes claw migrate command can later import settings, memories and skills from OpenClaw into Hermes.

Is it risky to control your machine through a messaging app?

Yes, because the gateway runs commands on your mini-PC on the say-so of a message from outside. Set up an allowlist containing only your account, keep the agent's permissions tight, never use sudo blindly and keep logs. At first, have it ask for approval before any action that changes something, and keep a systemctl stop at hand to shut the gateway down in two seconds.

Terms in this guide: AgentSSHClaude CodeOpenClawHermesRemote ControlMCPAPI keyTokentmuxRepository (repo)Open source (vs open-weight)SkillOllamaCodexOpenCode

Spotted a mistake?

A command stopped working, a price changed?

Tools change every month. Tell me what is wrong in this chapter and I will fix it and update its date.

Only the page, your message and the optional contact are kept. Nothing else.

Guide 22 of 31 · part 4 no guides read yet Open the list of guides