The OpenHands Cloud Agent SDK is a set of Python and REST APIs for building agents that work with code.

You can use the Cloud Agent SDK for:

You can even use the SDK to build new developer experiences—it’s the engine behind the OpenHands CLI and OpenHands Cloud.

Get started with some examples or keep reading to learn more.

Features

Why OpenHands Agent SDK?

Emphasis on coding

While other agent SDKs (e.g. LangChain) are focused on more general use cases, like delivering chat-based support or automating back-office tasks, OpenHands is purpose-built for software engineering.

While some folks do use OpenHands to solve more general tasks (code is a powerful tool!), most of us use OpenHands to work with code.

State-of-the-Art Performance

OpenHands is a top performer across a wide variety of benchmarks, including SWE-bench, SWT-bench, and multi-SWE-bench. The SDK includes a number of state-of-the-art agentic features developed by our research team, including: