OpenClaw Architecture: How the Gateway, Agent Loop and Skills Work
- 24 min read
- Published on March 30, 2026
- by Lekhya Veera

TL;DR
OpenClaw architecture puts one Gateway on each host in charge of every chat channel, session and connected device. Each message runs through the agent loop of context, model call, policy-checked tools and a saved record, and skills add abilities. The design works well for one team that trusts itself, and badly for strangers or customers sharing one setup. Memory is kept in plain Markdown files, while sessions and transcripts sit in a per-agent SQLite store. By default, agents can read every chat on their gateway, the sandbox starts off and commands run without approval. So give each team its own gateway, turn on the sandbox and approvals, and begin with read-only tools.
Key Takeaways
- OpenClaw architecture has five layers: channels and clients, the Gateway control plane, the agent runtime, tools and skills, and state kept in Markdown memory files plus a SQLite session store.
- A single Gateway process per host owns every messaging session, so it is both the control point and the single point of failure.
- Runs are serialized per session and parallel across sessions, which keeps one conversation consistent without blocking the rest.
- A session key only routes messages to the right context, so real access control must come from gateway auth and pairing.
- Exec approvals can put a person in front of every command, but ask is off by default on gateway hosts.
- Enterprise safety depends on separate gateways per trust boundary, sandboxed tools and reviewed skills.
Watch on YouTube
OpenClaw Is Powerful, But Is It Enterprise-Ready? | Amit Jena, AI Development Manager
Amit Jena, AI Development Manager at Kanerika, weighs what OpenClaw does well against what an enterprise must add before trusting it with real systems and data.
A Slack Message Becomes a Command on a Server
It is 2 a.m. and a nightly data load has failed. The on-call engineer opens Slack on her phone and types to the team agent: “Why did the orders pipeline fail, and can you rerun it?”
Within a minute the agent replies with the failing step, a line from the job log and a proposed rerun command. It also asks her to approve that command before it runs. She taps approve, and the job restarts.
That exchange feels like chat, yet a lot happened behind it. A message crossed from a public chat app into a process on a private server. Something then chose the conversation, loaded a runbook, picked a model and called a tool.
So the real question for a data or AI leader is simple: which layer approved that command, and what stopped it from doing more? This guide walks through each layer of OpenClaw architecture so you can answer that before you deploy it.
What Is OpenClaw Architecture?
OpenClaw architecture is the way a self-hosted AI agent system is wired together, from chat apps down to memory files. The project is open source under the MIT license and written in TypeScript. It is also very active, with more than 390,000 stars on its GitHub repository as of November 2026.
At its center sits one long-lived Gateway process per host. Around it are an agent runtime, a set of tools, skills and plugins, and a state layer that holds sessions and memory. The official architecture docs describe the Gateway as the only place that opens a messaging session such as WhatsApp, so everything else talks to it.
That design also explains how OpenClaw differs from a chatbot. A chatbot answers questions inside one app. OpenClaw keeps state across conversations, reaches people on the channels they already use and acts through tools on a real machine. It also differs from the libraries in our CrewAI vs AutoGen vs Microsoft Agent Framework comparison. Those are code you build into an app, while OpenClaw ships as a running system.
For the basics, such as install steps and run cost, see our guide to what OpenClaw is. For real deployments, read the OpenClaw use cases roundup, because this article stays on the internals.
OpenClaw Architecture at a Glance: Five Layers
OpenClaw architecture is easiest to understand as five layers stacked around the Gateway. Each layer has one job, and each one also maps to a different owner inside an enterprise.
Think of it like a small office building. Channels are the front doors and the Gateway is the reception desk. The runtime is the person doing the work, tools are the equipment, and state is the filing cabinet.
| Layer | What it does | Where it runs | Typical enterprise owner |
|---|---|---|---|
| Channels, clients and nodes | Carries messages in and replies out | Chat apps, CLI, web UI, paired devices | Collaboration or IT team |
| Gateway control plane | Owns channel sessions, auth, pairing and the WebSocket API | One daemon per host | Platform or infrastructure team |
| Agent runtime | Runs the agent loop for each message | Inside the Gateway host | AI engineering team |
| Tools, skills and plugins | Adds actions, knowledge and integrations | Gateway host, sandbox or MCP servers | AI engineering with security review |
| State | Keeps sessions, transcripts and memory | Per-agent SQLite store plus Markdown memory files on the host | Data governance or records owner |
That owner column matters more than it looks. A security review has to name who is accountable for every layer before anything goes live.

Channels, Clients and Nodes
Channels are the messaging apps the agent can live in, such as WhatsApp, Telegram, Slack, Discord, Signal, iMessage and a built-in WebChat. Clients are the tools operators use to manage it, including the CLI, the macOS app and the web UI.
Nodes are other devices that connect to the Gateway and declare the role node, so the agent can use them as remote hands. If you are still choosing which chat surfaces belong in your program, our piece on conversational AI channels covers that decision.
Gateway and Runtime: Where the 2 a.m. Message Lands
Our opening Slack message first reaches the Gateway, the one daemon on that host holding the Slack connection. The Gateway checks that the channel is paired and allowed, then passes the text to the agent runtime.
Next comes the runtime, which does the actual work on that message. It finds the on-call thread’s session, builds a prompt and calls the model. If a second message arrives in the same thread mid-run, it waits its turn. The next two sections trace both pieces in detail.
Tools, Skills and Plugins
This layer is where capability gets added. Tools let the agent act, skills teach it how to do a task, and plugins add new channels, model providers, tools or context engines. MCP servers plug in here too, which is how the agent reaches outside systems such as a data warehouse.
State: Sessions, Transcripts and Memory
OpenClaw splits its state into two kinds of storage. Memory is plain Markdown you can read and diff; sessions and transcripts sit in a per-agent SQLite store on the same host.
The session docs place that store at ~/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite by default. Archived transcripts go to a separate sessions/ folder for each agent. Both stay on the gateway host, so one backup and access policy covers the whole record, which makes audits far easier.
Checklist
Agentic AI Readiness Checklist
Use Kanerika’s agentic AI readiness checklist to confirm owners, data access, permissions and human oversight for each layer before an agent goes live.
Get the Checklist →Inside the Gateway: Protocol, Pairing and One Gateway per Host
The Gateway is the part of OpenClaw that every other piece depends on, so its rules shape how the system scales and how it fails. Since one process owns every channel on a host, two processes never fight over the same WhatsApp login.
The trade-off is plain. If the Gateway stops, every channel on that host stops with it. You scale by adding hosts with their own gateways rather than replicas, which pushes teams toward one gateway per team or trust boundary.
The protocol rules below come from the Gateway architecture reference.
- Default bind: the Gateway listens on
127.0.0.1:18789, so out of the box only the local machine can reach it. - Handshake: the first frame on any connection must be
connect, then every frame is checked against a JSON Schema. - Safe retries:
sendandagentcalls carry idempotency keys, so a retried request does not run twice. - Device pairing: a new device ID needs approval; loopback connections can auto-approve, while tailnet and LAN devices need explicit approval.
- Remote access: use Tailscale or a VPN, or an SSH tunnel as the alternative, instead of opening the port to the internet.
- Events: events are not replayed, so a client that disconnects must refresh its state when it reconnects.
- Supervision: run the Gateway under launchd or systemd so it restarts after a crash or reboot.
Two of these rules deserve attention in any enterprise review. The loopback default is a strong starting posture, so every step away from it needs a written reason. Monitoring tools should also poll state rather than trust the event stream alone, because missed events never come back.
Trace One Request Through the Agent Loop
The agent loop answers the question most readers arrive with: what actually happens when someone messages the agent? The agent loop documentation describes one run as a fixed sequence of stages. Seeing them in order shows where you can observe, limit or stop a run.
- Intake and session resolution: the Gateway receives the message and works out which session it belongs to.
- Context assembly: the runtime builds the prompt from the session history, memory files and a snapshot of the skills available to that agent.
- Model inference: the prompt goes to the configured model provider, which returns text, tool calls or both.
- Tool execution: requested tools run only when the active tool policy, sandbox settings and approval rules allow them.
- Streaming: assistant text, tool events and lifecycle events stream back to the channel and to connected clients.
- Persistence: the transcript goes to the session store and any memory updates go to the Markdown files, so the next run can pick them up.
Steps three and four can repeat several times in one run, because a model often calls a tool, reads the result and then calls another. That is why tool policy matters more than prompt wording. The prompt only suggests behavior, while the policy at step four decides what can really happen.

How the Queue Handles Concurrency
Concurrency is handled by a lane-aware FIFO queue. Runs are serialized within a session but can run in parallel across sessions. Any lane you have not configured defaults to a concurrency of 1.
So two engineers asking different questions do not block each other, while two messages in the same thread are handled in order. For a deeper look at how loops like this are built and tested, see our guide to agent loop design.
Sessions, Memory and the Context Engine
State in OpenClaw stays on the host and is easy to inspect. Memory is plain Markdown you can read and diff, and the memory docs confirm there is no hidden state behind those files.
Sessions and transcripts work differently: they sit in a per-agent SQLite store on the same host. That keeps the full record in one place for backup. It also means anyone with access to that host can read what the agent knows and what it was told. For regulated data, Kanerika’s State of Enterprise AI & Data Modernization 2026 report calls for PII to be classified and masked at the source.
Session routing needs one warning first. A sessionKey picks which conversation a message joins, so it works as a routing label rather than proof of identity. Treating it as a login check is one of the easiest ways to leak one user’s context to another.
| File | Purpose | When it is loaded |
|---|---|---|
USER.md | A profile of the person the agent works for | At session start, with a small separate budget |
MEMORY.md | Durable facts and decisions the agent should keep | When a session starts |
memory/YYYY-MM-DD.md | Dated daily notes, such as yesterday’s incidents | Today’s and yesterday’s notes load when a new session starts |
The Context Engine
Turning that state into a prompt is the job of the context engine. Release v2026.3.7, published on March 8, 2026, added a ContextEngine plugin slot. A context engine can hook into bootstrap, ingest, assemble, compact and afterTurn, while the legacy engine stays the default.
That slot is where a team would plug in retrieval from a document store. We cover that pattern in agentic RAG, and the wider prompt-building ideas in our context engineering guide.
Skills, Plugins, MCP and ClawHub: How Capability Gets Added
OpenClaw grows by adding parts rather than by editing its core, and there are four main ways to do it. Because each path brings a different risk, each one also needs its own control.
Take a simple example. A team wants the agent to check a warehouse table each morning. It could write a skill, add a tool plugin or connect an existing MCP server. All three work, yet they expose very different amounts of code and access.
| Mechanism | What it is | Main risk | Control |
|---|---|---|---|
| Skills | A SKILL.md file with YAML frontmatter, filtered at load time | Instructions that steer the agent toward unsafe steps | Review skills like code; keep an approved list |
| Plugins | Code that adds channels, model providers, tools or context engines | Runs with the Gateway’s own permissions | Pin versions and review changes before upgrade |
| MCP servers | External servers whose tools the agent can call, per the MCP docs | Broad credentials and untrusted tool output | Read-only scopes first; see our WebMCP implementation guide for tool contracts |
| ClawHub | The public registry of community skills | Supply-chain risk from unreviewed authors | Install only reviewed, pinned skills |
A useful habit is to treat every new skill or server like a new package in production code. Code that runs on your host needs version pinning and review, while anything that reaches data needs narrow scopes.
On-Demand Webinar
Model Context Protocol (MCP): The Key to Building Context-Aware AI Agents
Watch Kanerika’s on-demand session on how MCP servers give agents structured access to tools and data, and how to scope that access safely.
Watch the Webinar →The Model Layer: Providers, Local Models and Failover
In OpenClaw the model is simply a configuration setting. You pick a provider in config and can change it later without rebuilding the agent.
The model provider docs list pages for Anthropic, OpenAI, Google, DeepSeek, Amazon Bedrock, Ollama and vLLM, among others. They also document model failover, so a run can move to another configured model when the first one fails.
That flexibility shifts the real decision to cost, data location and quality. Kanerika’s State of Enterprise AI & Data Modernization 2026 report finds the blocker is almost never the model but the data underneath it.
A hosted API keeps your hardware small, but every prompt leaves your network and spend grows with usage. Local inference through Ollama or vLLM keeps prompts in-house, although it moves the cost into GPUs and the time to run them. Many teams therefore start a pilot on a hosted model and test a local one once they know the workload.
Security Architecture: Trust Boundaries and Controls
Security is the first question an enterprise buyer asks, and OpenClaw answers it with one rule. Each gateway is a single trust boundary, according to the OpenClaw trust model, so mutually untrusted users need separate gateways.
In plain terms, people who share a gateway share an agent that can see across their sessions. By default tools.sessions.visibility is set to all, so an unsandboxed agent with session tools can read other sessions on that gateway. That is fine for a small team that already trusts each other, but not for two customers.

| Risk | Architectural cause | Control | How to test |
|---|---|---|---|
| Cross-user data exposure | One gateway is one trust boundary | Separate gateways per trust boundary | Try to read another user’s session from a test account |
| Session snooping by agents | Session tool visibility defaults to all | Set visibility to agent or self | Ask the agent to list sessions it should not see |
| Host damage from tools | Sandboxing is off by default | Turn sandboxing on with a container or remote backend | Run a harmless write outside the sandbox path and confirm it fails |
| Unsafe shell commands | Exec defaults to full with ask off on gateway hosts | Exec approvals in deny, allowlist or ask mode | Request a command off the allowlist and confirm it waits or fails |
| Prompt injection | Tool output and messages enter the prompt | Treat external content as untrusted; limit tool reach | Plant an instruction in a test document and watch the result |
| Malicious community skills | ClawHub skills come from many authors | Approved skill list, pinned versions, code review | Audit installed skills against the approved list |
Two of those controls live in openclaw.json. This excerpt uses keys from the sandbox configuration reference to turn sandboxing on and narrow session visibility.
// openclaw.json (excerpt)
{
agents: {
defaults: {
sandbox: {
mode: "all", // default: "off"
backend: "docker",
scope: "session",
workspaceAccess: "none",
},
},
},
tools: {
sessions: {
visibility: "agent", // default: "all"
},
},
}Exec Approvals: The Human Checkpoint
Exec approvals deserve a closer look because they are the human-in-the-loop control. The modes are deny, allowlist, ask, auto and full. A command runs only when policy, the allowlist and any required approval all agree.
Out of the box, gateway and node hosts run with security set to full and ask set to off. Ask mode has to be switched on deliberately. Setting ask to on-miss prompts only for commands outside the allowlist, while always prompts on every command. The team in our opening story had made that choice, which is why the 2 a.m. rerun paused for a tap.
The approvals policy itself is a JSON document that OpenClaw keeps in its state database. This excerpt follows the pattern in the exec approvals docs. The main agent runs allowlisted commands, asks before anything else and falls back to deny.
// exec approvals policy (excerpt)
{
version: 1,
agents: {
main: {
security: "allowlist",
ask: "on-miss",
askFallback: "deny",
},
},
}Prompt Injection and Untrusted Content
Prompt injection is the hardest risk to close, because it does not need a bug. The OWASP LLM01:2025 Prompt Injection entry covers indirect injection, where hostile text arrives inside a web page, email or file the agent reads.
Even the sandbox is “not a perfect security boundary,” as the OpenClaw docs put it, so narrow tool access remains the real defense. For the full threat list, read our breakdown of OpenClaw security risks.
Talk to Kanerika
Weighing OpenClaw for Your Team?
Talk to Kanerika about whether a self-hosted agent like OpenClaw fits your data, security and chat-channel needs, and what a safe first pilot would look like.
Schedule a Demo →OpenClaw Deployment Patterns Compared
Where you run OpenClaw matters as much as how you configure it, because the topology sets your isolation and your effort. So the first question is who will share the gateway.
A solo developer testing skills has different needs than a platform team serving three departments. For example, the developer can run everything on a laptop, whereas the platform team needs supervised hosts, sandboxed tools and a gateway for each group.
| Pattern | Fits | Isolation | Effort | Main cost drivers |
|---|---|---|---|---|
| Local workstation | One person learning or prototyping | The user’s own machine | Low | Model API spend |
| Single-tenant Docker or VPS | A small team that trusts each other | One host, one boundary | Moderate | Model API spend and some ops time |
| Remote gateway over Tailscale or SSH, sandboxed tools | Teams that need remote access and safer tool runs | Tools isolated in Docker, Podman, SSH or OpenShell backends | Higher | Ops time and the sandbox backend |
| One gateway per team or trust boundary | Several groups with different data rights | Separate gateways per boundary | Highest | Hosts, ops time, and API spend or local GPUs |
Read the table from the top and stop at the first row that matches who will share the gateway. A pilot for one team that trusts itself fits the second row. Once a group with different data rights wants in, add a gateway for that group rather than widening the first one.

Production Hardening Checklist
Whatever pattern you choose, a production gateway needs the same baseline. Work through these eight items before any real user connects, then repeat them after every upgrade.
- Pin the OpenClaw version and lock plugin and skill dependencies.
- Supervise the Gateway with launchd or systemd, then add a health check.
- Export metrics through OpenTelemetry so they reach your existing monitoring stack.
- Keep secrets in a secrets manager instead of config files.
- Turn sandboxing on before any agent runs tools.
- Narrow the tool policy and session visibility so each agent gets only what it needs.
- Run the built-in security audit, then fix what it reports.
- Write an exposure runbook before you enable any remote access.
For install steps and a running-cost estimate, our OpenClaw guide covers both in detail.
When OpenClaw Architecture Fits, and When It Does Not
OpenClaw is a strong fit for some teams and the wrong shape for others, and the deciding factor is trust. OpenClaw architecture assumes the people who share a gateway trust each other. When that holds, the system is flexible and cheap to run; when it does not, you are fighting the design.
| Question | If yes | If no |
|---|---|---|
| Do all users of one gateway trust each other? | One gateway can serve them | Split into separate gateways |
| Do you need self-hosting and chat-app access? | OpenClaw fits well | A managed agent platform may be simpler |
| Will customers or outside parties use it? | Use isolated gateways or a managed platform | An internal gateway is fine |
| Can your team run and patch a daemon? | Self-hosting is realistic | Budget for a partner or a managed service |
Three Scenarios and What Each Means for OpenClaw
A self-hosted personal or team agent that lives in Slack or WhatsApp is a good fit, because one trust boundary matches one team. Mutually untrusted users or a customer-facing multi-tenant service need separate gateways at minimum, and often a managed platform instead.
A Microsoft-centric estate is the third case. There, Copilot Studio or agents and copilots in Microsoft Fabric often get further, since they inherit identity and governance from the tenant.
If OpenClaw does not fit, our OpenClaw alternatives guide compares the options. The Claude Cowork vs Perplexity Computer vs OpenClaw vs Manus AI comparison also puts it beside hosted agents.
Kanerika Service
Agentic AI Services
Kanerika designs, builds and runs AI agents with approvals, sandboxed tools, telemetry and audit trails, so pilots reach production without losing control.
Explore Agentic AI ServicesWorked Example: An On-Call Agent Investigates a Failed Data Pipeline
Following one real request through every layer is the clearest test of whether the design is safe. Here is the 2 a.m. story from the opening, step by step, with the layer that handles each moment.
- Channel: the engineer sends a Slack message to the team agent.
- Gateway: the Gateway receives it on its Slack connection and hands it to the agent runtime.
- Session: the message joins the on-call thread’s session, so earlier messages in that thread are in context.
- Context: the runtime loads the pipeline runbook skill and yesterday’s dated memory note about a schema change.
- Read-only tool: the model calls a read-only MCP tool that queries the job logs and finds the failing step.
- Proposal: the agent explains the cause and proposes a rerun command for the failed job.
- Approval: the team had set ask to on-miss, as in the policy excerpt shown earlier. The rerun command is off the allowlist, so it waits for a human decision.
- Action: when the engineer approves, the command runs in the sandbox and the result streams back to Slack.
- Record: the transcript and a short memory note are saved, so the morning team can see what happened.
Notice what made this safe. The log tool could read but not change anything, while the only write action needed a person to say yes.
Afterward, the transcript gave the team an audit trail without extra tooling. We describe the same pattern in agentic AI in data engineering, where agents diagnose first and act only with approval. Our overview of agentic automation also shows where this approval pattern fits in wider workflows.
For more on open agents beyond OpenClaw, our Hermes Agent overview covers another open agent, and the episode below discusses why it is trending.
Common OpenClaw Architecture Mistakes
The mistakes teams make with OpenClaw are rarely exotic, and nearly all of them come from defaults left in place. Each one has a simple fix that matches a control described earlier.
Replay the 2 a.m. story with two defaults left in place. With exec on its full default and ask off, the rerun would have started the moment the model proposed it. With the sandbox off as well, that command would have run straight on the gateway host, beside the channel logins and the session store.
- Leaving exec on its full default: commands run with no prompt, so set ask to on-miss or always for write actions.
- Leaving the sandbox off: tools run on the host itself, so turn sandboxing on before the first real user.
- One shared gateway for everyone: it mixes trust levels, so split gateways by team or data rights.
- Treating sessionKey as authentication: it only routes messages, so rely on gateway auth and pairing instead.
- Installing unreviewed ClawHub skills: treat them as third-party code with an approved list.
Two further mistakes sit outside the security table. Opening the gateway port without a runbook is the first. The loopback default keeps every channel local, so route any wider exposure through Tailscale, a VPN or SSH, and document it first.
Missing a transcript retention policy is the second. Transcripts hold whatever users and tools put into a chat, such as log lines and customer names. Decide how long the session store keeps them and who can read it.
How Kanerika Takes AI Agents From Pilot to Production
Getting an agent from a promising demo to a governed production service is mostly about stages and exit gates. The stages come from our own agent delivery work rather than from OpenClaw. Each gate maps to a control covered above, from the trust boundary to exec approvals. Kanerika runs agent programs in four stages, and a stage closes only when its gate is met.

- Assess: pick one use case, map its data and then define the trust boundary. Gate: a named owner and an approved boundary, which on OpenClaw means one gateway per group that shares a data scope.
- Pilot: one team, read-only tools and full transcripts. Gate: the agent answers correctly on a test set the team agrees on.
- Controlled production: add write actions behind approvals, sandboxing and telemetry. Gate: every action logged and every write approved, with the two config excerpts above in place.
- Scale: add teams one boundary at a time, each with its own gateway or workspace. Gate: the security review passes again.
Our agentic AI services team builds and runs these programs as part of our wider AI services. Our AI governance services then set the policies, reviews and audit trails each gate needs. For the wider plan around these stages, see our AI implementation roadmap.
Proof From a Kanerika Delivery
One Kanerika project shows the same shape as an OpenClaw deployment: one assistant, several channels and one governed data tool. It was not an OpenClaw build, though. The client was a California-based dairy with a history dating back to 1901. Its sales metrics were locked inside technical systems, so reps depended on IT for answers.
Kanerika built a natural-language assistant with Microsoft Copilot and Power Automate. Reps reached it through Microsoft Teams and an intranet chatbot, and it read real-time data from Azure SQL.
The results were a 90% reduction in data query errors, 30% faster decision-making and a 25% increase in sales meeting efficiency. Those gains came from the discipline this article describes: a clear data boundary, controlled tools and channels people already use.
Case Study
90% Fewer Data Query Errors with MS Copilot
A California-based dairy with a history dating back to 1901 gave sales reps a Copilot assistant in Teams and an intranet chatbot, cutting data query errors by 90%.
Read the Case Study →The trust-boundary lesson from that delivery is the one we apply to OpenClaw. The dairy assistant served two channels but read from one governed data source in Azure SQL. So we recommend drawing the boundary around the data, not the chat app. On OpenClaw, that means a separate gateway for each group with its own data scope. Turn sandboxing on and set ask to on-miss before any write tool goes live.
The Bottom Line on OpenClaw Architecture
OpenClaw is easier to run safely once you see it as one Gateway with clear layers around it. Channels bring messages in, and Markdown files keep what the agent remembers.
So how do the Gateway, agent loop and skills work? The Gateway owns every channel and session on its host. The agent loop turns each message into context, model calls and approved tool runs. Skills teach the agent new tasks without touching its core. That is OpenClaw architecture in one line: a single trusted gateway, a serialized loop and capability you add with care.
Frequently Asked Questions
What is OpenClaw architecture?
OpenClaw architecture is the design of a self-hosted AI agent system built around one long-lived Gateway per host. The Gateway owns every chat channel and serves a typed WebSocket API. An agent runtime turns each message into model calls and tool runs, skills and plugins add capability, and Markdown memory files and a SQLite session store hold state.
What is the Gateway in OpenClaw and what does it do?
The Gateway is the single control plane process on each host. It holds every messaging connection, handles device pairing and authentication, and exposes a typed WebSocket API that clients and nodes use. By default it listens on 127.0.0.1 port 18789. Only the local machine can reach it until you add Tailscale, a VPN or an SSH tunnel.
How does OpenClaw connect to enterprise data sources like Snowflake or Databricks?
OpenClaw reaches outside systems through MCP servers or tool plugins. You connect an MCP server for the data platform, and the agent can then call the tools that server exposes. Start with read-only credentials and narrow scopes, log every call, and add write access only behind exec approvals once the read-only pilot has proven reliable.
Can you add a human approval step before an OpenClaw agent takes action?
Yes. Exec approvals control command execution with five modes, namely deny, allowlist, ask, auto and full. In ask mode the agent proposes a command and waits for a person to approve it. Gateway and node hosts default to security full with ask off, so switch ask on deliberately. A command runs only when policy, the allowlist and any approval agree.
Is one OpenClaw gateway safe to share across teams or customers?
Only if everyone on it trusts each other. The OpenClaw trust model treats each gateway as one trust boundary, and session tools can see every session on the gateway by default. Teams with different data rights, outside contractors and customers should each get their own gateway, plus sandboxing and narrow tool access on every one.
What are the main components of OpenClaw architecture?
OpenClaw has five layers. Channels, clients and nodes carry messages in and out. The Gateway control plane owns sessions and the API. The agent runtime runs the loop for each message. Tools, skills and plugins add actions and knowledge. State splits into plain Markdown memory files and a per-agent SQLite store for sessions and transcripts.
Is OpenClaw a single process or a distributed system?
Each host runs one Gateway process that owns all of its channels, so a single deployment behaves like one process. Larger setups add hosts, each with its own gateway, rather than replicas of one gateway. Paired nodes and remote sandbox backends can run elsewhere, but they still connect back to that one Gateway on the host.
How does OpenClaw handle multiple concurrent users?
A lane-aware FIFO queue serializes runs within each session and lets different sessions run in parallel. Any lane you have not configured defaults to a concurrency of 1. Concurrency is not the same as isolation, though. Users who share a gateway share one trust boundary, so mutually untrusted users need separate gateways rather than separate sessions.
Where does OpenClaw store memory, and what backends does it support?
OpenClaw stores memory as plain Markdown files in the agent’s workspace, and the docs say there is no hidden state. USER.md holds a profile, MEMORY.md holds durable facts and dated files hold daily notes. Since release v2026.3.7, a ContextEngine plugin slot lets teams plug in other ways to assemble context, such as retrieval.
What are OpenClaw skills and how do they differ from plugins?
A skill is a SKILL.md file with YAML frontmatter that teaches the agent a task, and OpenClaw filters skills at load time. A plugin is code that adds a channel, a model provider, a tool or a context engine. Skills shape behavior through instructions, while plugins change what the system can technically do.
Can OpenClaw work with multiple AI models, including local ones?
Yes. Model choice is a configuration setting, and the docs list provider pages for Anthropic, OpenAI, Google, DeepSeek, Amazon Bedrock, Ollama and vLLM, among others. Ollama and vLLM let you run models on your own hardware. OpenClaw also documents model failover, so a run can move to another configured model when the first one fails.
What hardware does OpenClaw need for an enterprise deployment?
The answer depends mostly on where inference runs. With a hosted model API, the Gateway host stays modest because the heavy compute happens at the provider. With local models through Ollama or vLLM, GPUs become the main cost and sizing driver. Size the host for your chosen model and expected sessions, then test with a real workload.
Can OpenClaw be deployed in an enterprise production environment?
Yes, with hardening. Pin versions, supervise the Gateway with launchd or systemd, export metrics through OpenTelemetry and keep secrets outside config files. Turn sandboxing on, narrow tool policy and session visibility, and run the built-in security audit. Use one gateway per trust boundary and write an exposure runbook before you allow any remote access.





