Open-source coding agent for Vercel AI SDK with Webcontainers and Vercel Sandboxes support

I rewrote Pi, the coding agent used by OpenClaw, using the Vercel AI SDK and added a runtime abstraction. In addition to Node.js, you can now use Webcontainers or Vercel Sandboxes.

The class implements the Vercel AI Agent interface, so you can drop it into your existing code.

It’s similar to the Claude Agent SDK, but allows you to use any model.

Example

Resources