openhands-sdk
OpenHands SDK - Core functionality for building AI agents
Decision gist · record as of 2026-08-14
Yes, with conditions. The SDK is actively maintained, has low install friction, and addresses a real need for code-working agents. However, the unclear license status requires verification before production use. If you need to build agents that interact with code, execute tasks autonomously, and integrate with LLMs, this is a solid choice—but confirm licensing terms first and ensure Python 3.12 or later is available in your environment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later.
- LLM API credentials must be provided for the agent to function.
- Low install friction with a pure Python wheel.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Before production use, verify the actual license terms in the repository or documentation.
last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 987 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 12,200,524 downloads/mo, #1,336 on PyPI
Alternatives
Verify before relying
pip install openhands-sdk
from openhands.sdk import LLM, Agent, Conversation, Tool
from openhands.tools.terminal import TerminalTool
llm = LLM(model="gpt-5.5", api_key="your-key")
agent = Agent(llm=llm, tools=[Tool(name=TerminalTool.name)])
conversation = Conversation(agent=agent, workspace=".")
conversation.send_message("List files in the current directory")
conversation.run()- Whether the unclear license permits commercial use or has specific attribution requirements.
- Performance characteristics and latency when running agents against large codebases.
- Compatibility with specific LLM providers beyond the example shown.
What it is and what it does
OpenHands SDK is a framework for building AI agents that interact with code and development tasks. It provides a Python API to define agents, attach tools (like terminal, file editor, and task tracker), connect them to LLMs, and orchestrate conversations where the agent receives instructions and executes code-related work. Agents can run locally on your machine or in ephemeral Docker/Kubernetes workspaces via the Agent Server, making it suitable for one-off tasks, routine maintenance, and complex multi-agent refactors.
The SDK is built on 18 runtime dependencies including pydantic for data validation, httpx for HTTP communication, litellm for LLM abstraction, and tree-sitter for code parsing. It supports modern Python versions (3.12 or later) and is actively maintained. The framework is designed to be extensible—you can build custom tools, load public skills from a marketplace, and integrate it into CI/CD pipelines or custom developer experiences.
Use it for
- Automate one-off development tasks like generating README files or documentation for a repository.
- Run routine maintenance workflows such as dependency updates or code refactoring across multiple files.
- Build multi-agent systems that collaborate on large tasks like full codebase rewrites or architectural changes.
- Integrate agentic capabilities into CI/CD pipelines via GitHub Actions or similar workflow systems.
- Create custom developer tools or CLIs that leverage agent-driven code analysis and generation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The SDK is actively maintained, has low install friction, and addresses a real need for code-working agents. However, the unclear license status requires verification before production use. If you need to build agents that interact with code, execute tasks autonomously, and integrate with LLMs, this is a solid choice—but confirm licensing terms first and ensure Python 3.12 or later is available in your environment.
Install
openhands-sdk on PyPI
Before you install
Low install friction with a pure Python wheel. Active maintenance with a release 2 days old and 987 repository stars. Requires Python 3.12 or later. The 18 runtime dependencies include established packages like pydantic, httpx, and litellm, suggesting a mature dependency ecosystem.
Requires Python 3.12 or later. LLM API credentials must be provided for the agent to function.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Before production use, verify the actual license terms in the repository or documentation.
Quickstart
pip install openhands-sdk
from openhands.sdk import LLM, Agent, Conversation, Tool
from openhands.tools.terminal import TerminalTool
llm = LLM(model="gpt-5.5", api_key="your-key")
agent = Agent(llm=llm, tools=[Tool(name=TerminalTool.name)])
conversation = Conversation(agent=agent, workspace=".")
conversation.send_message("List files in the current directory")
conversation.run()
Verify before relying
- Whether the unclear license permits commercial use or has specific attribution requirements.
- Performance characteristics and latency when running agents against large codebases.
- Compatibility with specific LLM providers beyond the example shown.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 18 packagesagent-client-protocoldeprecationfakeredisfastmcpfilelockhttpxjsonschemajoserfclitellmpillowpydanticpython-frontmatterpython-json-loggertenacitywebsocketslmnrtree-sittertree-sitter-bash |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 12,200,524 / month, #1,336 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: openhands_sdk-1.42.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “llm-powered developer agent sdk”
- openhands-sdkOpenHands SDK provides Python and REST APIs for building software…
- openhands-workspaceProvides Python and REST APIs for building software agents that can…
- openhands-toolsProvides Python and REST APIs for building AI agents that work with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also openhands-tools · openhands-workspace · xpander-sdk · openhands-agent-server · openhands · openhands-ai · openhands-aci · cursor-sdk · openai-codex · plato-sdk-v2