Skip to content

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-protocol for wire types, reducers, AhpClient, MultiHostClient, and WebSocketTransport. See the TypeScript client. Browser-friendly; works in any environment that exposes the global WebSocket.
  • Kotlin / JVM — com.microsoft.agenthostprotocol:agent-host-protocol on 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-protocol as a Swift Package Manager dependency for the AgentHostProtocol and AgentHostProtocolClient libraries. See the Swift client for an example iOS client. The Package.swift manifest lives at the repository root because SwiftPM only resolves manifests at the root of a remote git repo; the actual Swift sources live under clients/swift/AgentHostProtocol/.
  • Go — go get github.com/microsoft/agent-host-protocol/clients/go@latest for the ahptypes, ahp, and ahpws packages, 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/sdk is the library to build a host of your own.

Released under the MIT License.