OpenHands Agent Server is the server-side component for OpenHands AI agents, providing RESTful and WebSocket APIs for agent interaction and management. It serves as the backbone for running and communicating with AI agents developed using the OpenHands Software Agent SDK. Currently at version 1.16.1, the library maintains an active development pace with minor versions released frequently.
pip install openhands-agent-serverVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to programmatically start the OpenHands Agent Server using `uvicorn`. This is useful for embedding the server within a larger Python application or for custom deployment configurations. The server will be accessible at `http://0.0.0.0:8000`.
Consult the release notes and migration guides for versions between your current version and v1.15.0. Pay close attention to changes enforced by OpenAPI deprecations in v1.14.0.
Review the documentation for WebSocket client authentication and secrets management for versions v1.12.0 and later to ensure compatibility.
Ensure your development and deployment environment uses Python 3.12 or a newer compatible version.
If relying on server-side execution of `RemoteConversation` hooks, ensure you upgrade to v1.13.0 or a newer version to guarantee correct `hook_config` forwarding.