Skip to main content
HS
HiSETSuccess
LeetCode Prep

Agent Engineering

From autocomplete user to superstar developer — coding agents, context, skills, MCP, hooks, spec-driven and parallel workflows, and building your own agents.

Chapter 7 · 6 lessons

OpenClaw & Always-On Agents

The self-hosted gateway pattern: channels, sessions, skills precedence, ClawHub, plugin bundles, migration from Claude Code, and delegating coding to CLI agents.

OpenClaw · Claude Code · OpenAI Codex

Show all 6 lessons

Lesson 1 of 6

The Gateway Model

OpenClaw is an open-source (MIT), self-hosted gateway that connects chat apps — WhatsApp, Telegram, Slack, Discord, Signal, iMessage, and more — to model-agnostic AI agents. One long-running Gateway process owns sessions, routing, channel connections, and tools. You talk to your agent from your phone; it runs on your machine or server.

Where OpenClaw sits
WhatsApp  Telegram  Slack  Discord  Web UI  iOS/Android nodes
     \        |        |       |        /         |
      └───────┴────────┴───────┴───────┘          │
                       ▼                          ▼
         ┌──────────────────────────────┐  camera/screen/exec
         │ Gateway ws://127.0.0.1:18789 │◀────────────┘
         │  sessions · memory · routing │
         │  skills · plugins · cron     │
         └──────────────┬───────────────┘
                        ▼
      model providers  +  coding-agent CLIs (Claude Code, Codex)
  • Multi-agent routing: isolated sessions per agent, workspace, or sender
  • Durable memory and scheduled work (cron, webhooks) — things an IDE session does not provide
  • Nodes: paired devices expose camera, screen recording, location, and command execution
  • Control UI dashboard for chat, config, sessions, and nodes