Skip to content

Connect an agent

This guide connects an AI agent to Homestead so it can add people from chat and fetch posts from platforms that need a login. Read Agents first if you haven’t.

  • A running Homestead your agent can reach. If the agent runs on another machine, see Remote access and set HOMESTEAD_BASE_URL.
  • Hermes, OpenClaw or another MCP client.
  • For fetching: a browser profile on the agent’s machine that’s already logged in to the platforms you want, such as Instagram or Douyin. Homestead never asks for those passwords.
Available on main (W-08)

In the web app, go to Agents → Connect an agent. Pick Hermes, OpenClaw or Other, a preset (Helper is the default) and, optionally, the platforms the agent’s browser is logged in to. Homestead creates the token and shows a setup card with the token already filled into each snippet. The card turns green when the agent first uses the token.

The Homestead skill teaches the agent when to use Homestead, how to add people and how to run a fetch round, with per-platform playbooks.

  • Hermes: copy the agents/skills/homestead/ folder into ~/.hermes/skills/homestead/.
  • OpenClaw: copy the folder into your workspace’s skills/ directory.

Publishing the skill to the Hermes Skills Hub and ClawHub hasn’t happened yet. Coming in 1.0 (A-03)

Your MCP URL is your Homestead address plus /mcp, for example http://homestead.local:8080/mcp. The token goes in an Authorization header.

Merge this into ~/.hermes/config.yaml (from agents/hermes/config.example.yaml):

mcp_servers:
homestead:
url: "http://homestead.local:8080/mcp"
headers:
Authorization: "Bearer hst_REPLACE_WITH_YOUR_TOKEN"
timeout: 120
connect_timeout: 30

Ask your agent:

Homestead, who’s in my Family circle?

It should answer with names from your Homestead. If the Agents screen is open, the card turns green.

Fetching needs the tasks:work and ingest:write scopes, which all three presets include. Add a job to your agent’s scheduler that runs the Homestead skill’s fetch round every 3 hours. The MCP server also offers a fetch_round prompt for this.

Each round leases due tasks for the platforms the browser is logged in to, fetches at most one profile every 20 seconds per platform, and stops after 15 minutes or when nothing is due.

  • The token’s last-used time updates (GET /api/v1/agent/status, or the Agents screen).
  • After a fetch round, posts from Instagram or Douyin people appear in the feed.
  • If an account shows login_required, log in to that platform in the agent’s browser. The next try is 6 hours later.

Revoke from the Agents screen Available on main (W-08), or with DELETE /api/v1/agent/tokens/{tokenId} as a member. Tasks the agent had leased go back to the queue.