Universal Agent Runtime: Same Agent SDK API Across Browser, Backend & IoT
Overview
An agent-cloud / automation platform that makes the best-in-class local agentic loop runnable anywhere, browser, backend, IoT devices, and workflow tools, behind a single, consistent SDK. The core idea: keep the same SDK API surface, swap the transport underneath, so one agent codebase deploys across every environment.
Why It Exists
The most capable agentic loop (multi-step planning, automatic tool-error recovery, long-context management, subagent spawning) historically only ran as a local CLI process. That locks it out of browsers, mobile apps, embedded devices, and serverless workflows. This platform exists to bridge that gap without forcing developers to learn a new API per target.
What We Built
A multi-package monorepo spanning a TypeScript browser SDK, plus parallel SDKs in Go, PHP, and Python, all speaking the same protocol. Client-side, a WebSocketTransport implements the SDK Transport interface; server-side, an edge bridge running on Cloudflare Workers manages session lifecycle, budget tracking, and git-bundle handoff, relaying SDK-protocol messages directly to a backing Claude Code CLI process over stdio. The repo includes a browser SDK, an Arduino/IoT SDK, an n8n integration, a CLI, a claude-code plugin, a landing page, a durable-session build, an anthropic-proxy, and an x402 payments worker, roughly 70 commits of active build-out. MCP tool servers let tools execute in the caller’s own context (DOM manipulation in the browser, device I/O on IoT).
Technologies & Approach
Built on Anthropic’s Claude Agent SDK and Claude Code CLI as the underlying reasoning engine, with MCP for tool definitions. Transport abstraction is the central design bet: ProcessTransport (stdio) for Node, WebSocketTransport for everything else, terminating at a Cloudflare Workers cloud that owns session state, budgets, and git bundles. Native SDK-protocol passthrough avoids a translation layer.
Outcome / Impact
Demonstrates a working pattern for taking a local-only agent runtime to the edge and the browser with API parity, plus the multi-language SDK and IoT/workflow reach to prove the “write once, deploy everywhere” thesis. An ongoing platform rather than a one-off build.
Capabilities Demonstrated
- Designing a transport-agnostic agent SDK with a single stable API across browser, server, and embedded targets
- Building edge session orchestration (lifecycle, budgets, git bundles) on Cloudflare Workers
- Authoring MCP tool servers that execute in arbitrary host contexts
- Shipping parallel SDKs across TypeScript, Go, PHP, and Python
- Integrating agentic AI into IoT and workflow-automation surfaces