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.
Servers
- VS Code agent host — The reference AHP server implementation. Start in
src/vs/platform/agentHost/node/when browsing the repository.