Skip to Content
DocumentationTutorialsRun your first agent

Run your first agent

Install a Companion agent on your Hub, connect it to a model, and give it something to do.

Time: ~20 minutes · You’ll need: Hub running, and either Ollama with a model or a cloud API key

The whole path, start to finish:

What you’ll have at the end

  • OpenClaw WebCLI installed on your Hub and open in your browser on port 18789
  • The agent connected to a model — local Ollama, or a hosted provider by API key
  • One task answered, which proves the install, the model, and the agent’s tools all work
  • Hub’s MCP endpoints wired into the agent, without configuring them by hand

Already run an agent elsewhere? If you use Claude Code, or your own OpenClaw or Hermes install, you don’t need to install anything here — point it at your Hub instead. See Connect an existing agent.

Which agent

Two first-party agents ship in the App Store. Both declare hub_integration.mcp_client, so Hub hands them its MCP endpoints at install time.

AppStore IDPortWhat it is
OpenClaw WebCLIci-openclaw18789Self-hosted assistant with browser automation and tool use
Hermesci-hermes18790Messaging assistant with a web terminal and dashboard

Use OpenClaw, the wizard’s default, for these steps. Hermes follows the same process, and its install form also asks which messaging user ID(s) it should trust by default.

Step 2 of the onboarding wizard, Choose your AI agent, with an OpenClaw card selected and a Hermes card unselected, each with links to companion apps, above the start of step 3, Set up inferenceStep 2 of the onboarding wizard, Choose your AI agent, with an OpenClaw card selected and a Hermes card unselected, each with links to companion apps, above the start of step 3, Set up inference
The same two agents in the onboarding wizard's Choose your AI agent step, with OpenClaw pre-selected.

The store also carries a plain openclaw entry (port 30189). That is the upstream project without Hub’s integration — it does not receive Hub’s MCP or memory variables. For these steps, use ci-openclaw, listed as OpenClaw WebCLI.

Check whether you already have it

The Onboarding wizard pre-selects OpenClaw, so it may already be installed. Look for OpenClaw WebCLI on your dashboard before installing a second copy.

Install it

From the App Store, find OpenClaw WebCLI and install it. Hub pulls the image, generates the environment, and starts the container. Your Hub must be paired with your CI Account first, or the install fails.

Companion Hub App Store, Featured view: a search box and category list on the left (All, Expose a port, Alternatives, Featured, Agents, AI, and more), a Companion Intelligence row with Companion Earth, Companion Memory, Companion Planning, and Companion Scan, and a Featured row with Audiobookshelf, Code Server, Collabora Online, and ComfyUICompanion Hub App Store, Featured view: a search box and category list on the left (All, Expose a port, Alternatives, Featured, Agents, AI, and more), a Companion Intelligence row with Companion Earth, Companion Memory, Companion Planning, and Companion Scan, and a Featured row with Audiobookshelf, Code Server, Collabora Online, and ComfyUI
The App Store. Search for OpenClaw WebCLI, or pick Agents in the category list on the left.

Because the app declares hub_integration.mcp_client: true, Hub injects its MCP endpoint variables (HUB_URL, HUB_MCP_URL, HUB_MCP_API_KEY, and related) into the app’s environment. You do not configure those by hand — see AI & Inference.

Open it

Select the app on your dashboard, then select Open, or go to its port directly on the Hub machine:

http://localhost:18789

You get OpenClaw’s setup interface on first run. Hub publishes an agent app’s port on the Hub machine only, so this address doesn’t work from another device; reach it from a phone or laptop through Private VPN or Public domain on the app’s Access points card.

CI-OpenClaw first-run screen: a Welcome to CI-OpenClaw header, a tip that providers and models can be changed from chat, iOS and Android links, and an OpenClaw Setup terminal that says it will ask for an AI provider and API key
First run. The setup terminal tells you what it is about to ask for: a provider and a key.

Address not opening? The Local access entry on the app’s page lists the address to use — see Finding your app’s URL.

Give it a model

Hub gives the agent a model when it installs it. It fills in the agent’s inference settings — the base URL, model name, and, when Ollama is your engine, its host — from Settings → AI, and adds any OpenAI, Anthropic, Google, or GitHub Copilot keys you saved there. Which model that is depends on what you chose in the wizard:

  • Local — the Ollama (or other engine) model you selected. Nothing leaves your machine. See Install Ollama.
  • Cloud — a hosted provider whose API key you saved. Better results on hard tasks; your prompts leave your machine.

The setup screen can still ask for a provider and key if none reached the agent, and you can add or switch providers later by asking OpenClaw in chat. It is not a one-way door.

Give it a task

Ask for something small and checkable, so you can tell whether it actually worked:

List the files in your working directory and tell me what this project is.

A real answer confirms that the agent is installed, has a model, and can use its tools.

What the Hub integration adds

Installed this way, the agent gets things a standalone install doesn’t:

  • Hub MCP endpoints, injected at install, so it can act on your Hub
  • Companion Memory wiring, when Memory is installed — via CI_SERVER_URL and CI_SERVER_TOKEN. Leave the two Companion Memory fields in the install form blank and OpenClaw connects to your Memory app automatically; you’ll be asked to sign in and approve
  • A wake endpoint (/hooks/wake) Hub can call to nudge the agent
Companion Hub Settings, Security tab: the API keys card lists OpenClaw WebCLI and Hermes, each with the start of its key and chips for MCP, App, Read & write, and Managed, and with Change access and Revoke buttonsCompanion Hub Settings, Security tab: the API keys card lists OpenClaw WebCLI and Hermes, each with the start of its key and chips for MCP, App, Read & write, and Managed, and with Change access and Revoke buttons
Settings → Security → API keys on a Hub with both agents installed. Each agent holds its own managed key, tagged MCP. The key prefixes are example data.

Hub’s MCP server is on by default, so there is nothing to enable. Settings → MCP shows its status and endpoint. See AI & Inference.

Open question

One detail remains unverified, so the steps omit it rather than guess: whether a restart is needed after Hub injects the memory variables. Upstream notes that OpenClaw needs one restart if the memory environment arrives after onboarding. Hub’s install ordering might avoid that restart, but this behavior needs verification on a live Hub before it goes into the steps.

Next

Last updated on