WayToClawEarn
High impactOpenClaw 官方博客 / The Verge

OpenClaw connects to Codex App-Server: deep integration of AI Agent platform and OpenAI programming tools

OpenClaw releases a major architectural update: Codex app-server becomes the default runtime for OpenAI models in OpenClaw Agent. ChatGPT subscribers can drive AI Agent directly without additional API fees. Dynamic tool loading, native Codex tool set, and layered architecture allow Agent capabilities to be fully upgraded.

WayToClawEarn EditorialPublished May 15, 2026Updated Aug 8, 2026

Editorial review of public sources · AI-assisted drafting. How we work · Original source

Core conclusion

OpenClaw releases a major update: Codex app-server officially becomes the default runtime for OpenAI models in OpenClaw Agent. This means that users can directly use ChatGPT subscription to power OpenClaw Agent, and Agent will natively use Codex's native toolset (read, write, edit, patch, execute code, process management) instead of OpenClaw's own simulated compatibility layer.

Key Points

  • Published: May 15, 2026
  • Core change: OpenClaw Agent's OpenAI model runtime is switched from self-developed harness to Codex app-server -Affected objects: All content creators and automation practitioners who use the OpenClaw platform to build AI Agents
  • The most direct benefit: ChatGPT subscribers can drive OpenClaw Agent without additional API fees

Background and trigger events

OpenClaw is an open source AI Agent platform that supports the deployment of AI Agents through multiple channels such as Telegram, Discord, Slack, WhatsApp, and Web Chat. Although OpenClaw previously supported OpenAI models, it used a self-developed harness to drive the model cycle—that is, OpenClaw itself was responsible for tool invocation, code execution, and status management.

The core problem of this approach is "translation cost": OpenClaw needs to convert the tool schema of its own platform into a format that the model can understand, and the model execution results are then translated back to the OpenClaw format. Each conversion means a performance penalty and potential information loss.

OpenClaw founder Peter Steinberger (also an OpenAI employee) and his team decided to change this architecture: Let the OpenAI model run on the native runtime of Codex, and OpenClaw is only responsible for the "outer layer" - channel management, Agent configuration, memory system, scheduled tasks and permission control.

SEO: The first paragraph contains the core keyword "OpenClaw Codex app-server deep integration" GEO: starting with TL;DR, precise date is a plus

Key Impact (by Dimension)

DimensionsChangesWhat it means to usersRecommended actions
CostChatGPT subscription can drive Agent without additional API feesSave monthly $20+ API billBind subscription with openclaw models auth login --provider openai
Tool capabilitiesCodex native tool set (read/edit/patch/exec/process) is natively availableAgent is more accurate and less hesitant in code writing and tool callingUpgrade OpenClaw to the latest version
First time responseDynamic tool loading, no need to preload all tool schemasSmaller initial prompt, faster responseExperience efficient tool discovery with OpenClaw's PI Tool Search
Multi-model supportCodex models are fed back to non-OpenAI modelsAll models will benefit from smarter tool loadingStay tuned for the official release of PI Tool Search

OpenClaw multi-channel AI agent interface

Detailed architecture explanation: Why runtime switching is a big deal

Outer layer vs inner layer

The founder of OpenClaw clearly divided the Agent architecture into two layers:

Outer layer (owned by OpenClaw): channel management (Telegram/Discord/Slack/WhatsApp/Matrix/Web Chat), Agent configuration, memory system, scheduled tasks, tool permissions, media rules.

Inner layer (owned by Codex): model inference, tool invocation, code execution, thread state management, and long-term reasoning context.

This division of labor allows each layer to do what it does best. OpenClaw doesn’t need to pretend that its tools are Codex’s tools, and Codex doesn’t need to care whether messages are sent via Telegram or Slack.

It can be seen that the reply changed from "accidental" to "deliberate

In the old Agent system, the last output of the model often "accidentally" became a reply to the user. For multi-channel Agents (sometimes replying to Group, sometimes replying to DM, and sometimes scheduled tasks), this "accident" can cause messages to be misplaced.

Codex integration makes the reply clear: if the agent wants to speak, it calls the send_message tool. If you want heartbeat detection, call the heartbeat_respond tool and return a clear "report nothing"/"notify user"/"arrange follow-up" status - rather than letting OpenClaw guess the meaning of the text.

Dynamic tool loading is a game changer

OpenClaw Agents can have a large number of tools: messages, sessions, media, cron jobs, browsers, searches, MCP servers, plug-in tools and channel-specific actions.

Previously, the schema of all tools had to be stuffed into the initial prompt, which was expensive and noisy. The model sees too many tools and the probability of wrong selection increases.

Codex's Dynamic Tool Search solves this problem: OpenClaw passes its product capabilities as dynamic tools to Codex, and Codex discovers the right tool when needed via native tool search. Codex-native tools remain native, and OpenClaw integration tools are placed under the OpenClaw namespace.

This means smaller initial context, more accurate tool selection, and overall faster response times.

Dynamic tool loading concept diagram

Practical impact on OpenClaw users

Direct benefit

  1. ChatGPT subscription ready: If you have a ChatGPT Plus/Pro subscription, openclaw models auth login --provider openai can let the Agent use the OpenAI model
  2. Coding Capability Upgrade: Codex native toolset allows Agent to write and debug code more smoothly
  3. Heartbeats and scheduled tasks are more reliable: Structured status replaces text guessing

Security Boundary

  • Each OpenClaw Agent has independent Codex home, thread state and account bridge
  • Personal Codex CLI configuration will not be automatically imported to Agent, and Agent status will not be leaked back to personal status
  • Supports two modes of local execution without approval and with approval, and is managed uniformly through the policy layer of OpenClaw

Get started command

terminal

# ChatGPT
openclaw models auth login --provider openai

# API key
openclaw models auth login --provider openai --method api-key

#
openclaw config set agents.defaults.model.primary openai/gpt-5.5

()

OpenAIChatGPTCodexOpenClawn8nClaudeHermes Agent

Related extended information

Internal link guidance

View source →

Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.