Skip to content

Repository files navigation

Agent Host Protocol

A synchronized, multi-client state protocol for AI agent sessions.

Read the documentation →

Overview

The Agent Host Protocol (AHP) defines how a portable, standalone sessions server communicates with its clients. Multiple clients can connect to the server and see a synchronized view of AI agent sessions through immutable state, pure reducers, and write-ahead reconciliation.

Client libraries

LanguagePackageVersionSource
Rustahp · ahp-types · ahp-wscrates.ioclients/rust/ · CHANGELOG
TypeScript@microsoft/agent-host-protocolnpmclients/typescript/ · CHANGELOG
Kotlincom.microsoft.agenthostprotocol:agent-host-protocolMaven Centralclients/kotlin/ · CHANGELOG
Gogithub.com/microsoft/agent-host-protocol/clients/goGo Referenceclients/go/ · CHANGELOG
SwiftSwiftPM: microsoft/agent-host-protocolTagpackage README · CHANGELOG

Other clients: AHPX (CLI + Node.js client) and VS Code (built-in Agent Sessions client).

The Rust, Swift, and Go SDKs ship a MultiHostClient for talking to two or more hosts at once (single-host consumers use the same API via MultiHostClient::single / .single(...) / hosts.Single(...)). See Connecting to Multiple Hosts.

Servers

Versioning and releases

Each language client and the spec itself release independently on their own SemVer tracks. See docs/specification/versioning.md for the protocol-level rules and RELEASING.md for the release mechanics (tag conventions, CHANGELOG / metadata enforcement, required CI environments).

Development

# Install dependencies
npm install
# Start local dev server
npm run docs:dev
# Build for production
npm run docs:build
# Preview production build
npm run docs:preview

License

MIT

About

Synchronized multi-client state for AI agent sessions

Resources

Code of conduct

Contributing

Security policy

Stars

195 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages