Implementations
These projects implement or consume the Agent Host Protocol.
Clients
The five clients shipped from this repository are released to the package registry idiomatic for each ecosystem. See Clients for install snippets and per-language entry points.
- Rust — three crates on crates.io (
ahp-types,ahp,ahp-ws). See the Rust client crates. - TypeScript —
npm install @microsoft/agent-host-protocolfor wire types, reducers,AhpClient,MultiHostClient, andWebSocketTransport. See the TypeScript client. Browser-friendly; works in any environment that exposes the globalWebSocket. - Kotlin / JVM —
com.microsoft.agenthostprotocol:agent-host-protocolon Maven Central. Pure Kotlin/JVM (Java 8 bytecode) so it works unchanged on Android, server-side JVM, and KMP/JVM targets. See the Kotlin client. - Swift — add
https://github.com/microsoft/agent-host-protocolas a Swift Package Manager dependency for theAgentHostProtocolandAgentHostProtocolClientlibraries. See the Swift client for an example iOS client. ThePackage.swiftmanifest lives at the repository root because SwiftPM only resolves manifests at the root of a remote git repo; the actual Swift sources live underclients/swift/AgentHostProtocol/. - Go —
go get github.com/microsoft/agent-host-protocol/clients/go@latestfor theahptypes,ahp, andahpwspackages, mirroring the Rust three-crate split. See the Go client. - AHPX — A command-line and Node.js client for connecting to AHP servers, managing sessions, and sending prompts.
- VS Code — VS Code includes Agent Sessions client code for working with AHP hosts.
- ahpc — A terminal client for AHP: commands, an interactive chat TUI, and a tool server that lets an agent elsewhere drive the sessions on a host.
Servers
- VS Code agent host — The reference AHP server implementation. Start in
src/vs/platform/agentHost/node/when browsing the repository. - pi-ahp — An open-source AHP host for the pi coding agent, exposing pi sessions to AHP clients over WebSocket.
- ahpd — An open-source AHP host over WebSocket, that runs plugins: the agent, the ports and the server tools are all installed rather than built in, and
@ahpd/sdkis the library to build a host of your own.