AgentCore_
PT Docs GitHub

A lightweight TypeScript adapter that exposes AI agents as a unified HTTP API.

$ cat what-is-it.md

Every coding AI agent (Claude Code, Codex, OpenCode) has its own SDK, its own way of managing sessions and its own message format. A client application that wants to support more than one ends up having to speak a different protocol for each.

AgentCore solves this by sitting in the middle: a local HTTP API, running on the user's own machine, that exposes any AI agent behind a single HTTP and SSE contract. The client creates sessions, sends messages and listens to events the same way every time, no matter which runtime is processing underneath.

The core of the architecture is keeping the Adapter's session id separate from the providerSessionId generated by the AI runtime. This lets the Adapter swap, resume or combine different runtimes without the client needing to know how each SDK works internally.

$ ls runtimes/

Claude Code
Codex
GitHub Copilot

Claude Code

via @anthropic-ai/claude-agent-sdk

Codex

via @openai/codex-sdk

OpenCode

via @opencode-ai/sdk

GitHub Copilot

Future integration

$ cat package.json | grep deps

TypeScript Node.js 18+ Fastify Claude Agent SDK Codex SDK OpenCode SDK

$ ./how-to-run.sh

$ npm install

$ npm run dev

# the API comes up at http://localhost:3000

$ npm run build

$ npm start

Prerequisites: Node.js 18+ and Claude authentication configured on the machine (Claude Code CLI logged in).