feat(openclaw): add @ag-ui/openclaw AG-UI client integration#2155
Draft
lukasmoschitz wants to merge 6 commits into
Draft
feat(openclaw): add @ag-ui/openclaw AG-UI client integration#2155lukasmoschitz wants to merge 6 commits into
lukasmoschitz wants to merge 6 commits into
Conversation
Add a TypeScript client integration for OpenClaw, mirroring the other self-hosted AG-UI HTTP backends (ag2, pydantic-ai, spring-ai). OpenClawAgent is a thin extension of HttpAgent. It connects to an OpenClaw gateway that speaks the AG-UI protocol over HTTP/SSE via the clawg-ui channel plugin (operator-auth route /v1/clawg-ui/operator). OpenClaw emits the current AG-UI protocol, so no protocol version capping is applied.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
@ag-ui/openclaw— the AG-UI protocol client integration for OpenClaw.OpenClawAgentis a thinHttpAgentsubclass that connects an AG-UI / CopilotKit frontend to an OpenClaw gateway'sclawg-uioperator route, adding a first-classgatewayTokenconvenience (sent asAuthorization: Bearer <token>, authoritative over anyAuthorizationpassed inheaders).Includes:
OpenClawAgent+OpenClawAgentConfig(integrations/openclaw/typescript/src/index.ts)gatewayToken→ header mapping) and a build/exports gate (publint+attwgreen)package.jsonaligned with sibling integrations (license, coverage, link scripts)docs/integrations.mdxHow it's consumed today
Not yet published to npm. The CopilotKit OpenClaw showcase consumes it via a pkg.pr.new preview package built from this branch:
https://pkg.pr.new/ag-ui-protocol/ag-ui/@ag-ui/openclaw@40533a7bServer-side note (the clawg-ui situation)
This is the client half. The server half is the
clawg-uiOpenClaw gateway plugin (fork:lukasmoschitz/clawg-ui@rd-53-showcase-fork), which the showcase currently vendors as a built copy because that fork is unpublished — it is not linked as a package. See the CopilotKit showcase PR for details.Deferred (before merge)