← Back to Leaderboard
SOpenHands

OpenHands/software-agent-sdk

Python SDK and remote runtime for agents that work on code

View on GitHub ↗
Engineering Health (Methodology)
A+ · 97/100
Maintenance Activity
● Updated today
Latest Release
v1.66.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption22/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 1,445
24h Growth
+4
7d Growth
+17
Forks
840

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

OpenHands/software-agent-sdk Star History (2025-08-25 - 2026-12-04) ALL-TIME STAR HISTORY (2025-08 – 2026-12) +1.4k in 466d · avg +3/day 1.5k 763 0 2025-08-25: ★ 12025-09-27: ★ 372025-11-01: ★ 842025-12-06: ★ 2242026-01-10: ★ 4002026-02-14: ★ 4932026-03-21: ★ 5832026-04-25: ★ 6592026-05-30: ★ 7672026-07-04: ★ 8492026-08-08: ★ 9632026-09-12: ★ 1,0922026-10-17: ★ 1,2642026-11-15: ★ 1,3992026-12-04: ★ 1,445 ★ 1.4k 2025-08 2026-04 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

OpenHands is a Python execution SDK organized as a four-package uv workspace: openhands-sdk, openhands-tools, openhands-workspace, and openhands-agent-server. In the quickstart, an LLM and explicit tool registrations configure an Agent; a Conversation binds that agent to a workspace, accepts a message, and executes it via run(). The terminal, file editor, and task tracker tools are separate from the core agent configuration.

Agent Server provides the remote execution path. Its REST/WebSocket API and OpenAPI contract underpin the browser-compatible clients/typescript/ client, which is consumed by Agent Canvas. Scheduling, webhooks, run history, and dispatch belong to the separate OpenHands/automation project; this SDK executes the dispatched conversations. The root manifest constrains Starlette to >=0.49.1 and aiohttp to >=3.13.3, but does not establish which dependency handles each server function.

Key Capabilities & Differentiators

The core workflow is to give a model code-oriented tools and a workspace in which to act. The quickstart uses gpt-5.5 with LLM_API_KEY and writes a file in the current directory. The SDK also targets recurring dependency maintenance and multi-agent refactors. In v1.65.0, sub-agent usage rollups gained model-name attribution, useful when reviewing how a multi-agent run consumed model resources.

Examples cover custom tools, remote WebSocket integration, GitHub workflows, AgentSkills, and plugins; the guides also cover MCP. Public skill loading is opt-in via AgentContext(load_public_skills=True). The default marketplace includes uv and deno skills that can use repository markers such as uv.lock and deno.json. The quickstart verifies one model configuration, not a full provider compatibility matrix; test your intended model and tool combination before standardizing on it.

Trade-offs & Limitations

Compared with assembling a coding agent from a general-purpose framework, OpenHands supplies the code workspace, terminal and file tools, and remote conversation API as part of the design. Compared with adopting a finished coding CLI, it gives integrators control over model, tools, and execution environment, but leaves product UI and scheduling to separate components or the adopting team. It is best evaluated as an execution layer, not as a complete automation service.

Local execution simplifies development, but tools act against the selected local workspace. Ephemeral remote workspaces provide a separate execution boundary at the cost of provisioning and operating Agent Server and its runtimes. Before running on shared infrastructure, validate filesystem access, secret scope, and network policy; the workspace mode alone does not establish tenant isolation. MIT permits commercial integration, while hosted model costs, data handling, and third-party terms remain separate decisions.

Hardware & Deployment Guide

Use Python for the embedded SDK; the source-development workflow uses make build to install workspace dependencies and pre-commit hooks. Use Agent Server with Docker or Kubernetes for ephemeral remote workspaces, with REST/WebSocket for integration. The quickstart's API-key-backed model path is distinct from the location of the execution workspace. A self-hosted runner does not establish offline inference. The workspace manifest constrains nodejs-wheel-binaries to >=24,<25; that is not evidence of a universal host Node.js prerequisite.

Size the execution tier for concurrent workspaces, checkouts, builds, and tests rather than assuming a model VRAM requirement on the runner. v1.64.1 advanced the Debian snapshot for Chromium, krb5, and linux-libc-dev security fixes and refreshed the server idle timer during active runs. v1.66.0 fixed conversation condensation so it does not execute actions awaiting confirmation, a behavior worth regression-testing when integrating approval flows.

Package boundaries: The uv workspace separates the SDK, tools, workspaces, and Agent Server.
Execution modes: A conversation can target a local directory or run in an ephemeral Docker or Kubernetes workspace through Agent Server.
Client contract: OpenAPI connects the Python server to a browser-compatible TypeScript client; remote integration uses REST and WebSocket.
Tooling and extensions: The quickstart combines terminal, file editor, and task tracker tools; examples cover custom tools, AgentSkills, and plugins.
Dependency controls: The root uv configuration applies a seven-day release age filter with package-specific cutoff dates and sets minimum versions for dependencies including Starlette and aiohttp.
Confirmation handling: v1.66.0 fixes conversation condensation so it does not run actions that are awaiting confirmation.
Best For

Platform teams embedding coding agents into internal developer tools, CI maintenance, or custom interfaces, with a choice of local and ephemeral remote execution.

Skip If

You need a turnkey scheduler and run-history UI, require offline inference out of the box, or only want an interactive coding CLI.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
import os

from openhands.sdk import LLM, Agent, Conversation, Tool
from openhands.tools.file_editor import FileEditorTool
from openhands.tools.task_tracker import TaskTrackerTool
from openhands.tools.terminal import TerminalTool


llm = LLM(
    model="gpt-5.5",
    api_key=os.getenv("LLM_API_KEY"),
)

agent = Agent(
    llm=llm,
    tools=[
        Tool(name=TerminalTool.name),
        Tool(name=FileEditorTool.name),
        Tool(name=TaskTrackerTool.name),
    ],
)

cwd = os.getcwd()
conversation = Conversation(agent=agent, workspace=cwd)

conversation.send_message("Write 3 facts about the current project into FACTS.txt.")
conversation.run()
print("All done!")

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
software-agent-sdk ★1.4k+17PythonMITPython SDK and remote runtime for agents that work on code
browser-use122.7k+477PythonMITPython REPL and CDP for adaptive browser automation
langchain150.4k+299PythonMITModular Python framework for building agents across model providers
agentscope37.2k+342PythonApache-2.0Python ReAct SDK and FastAPI service for observable, interruptible agent workflo

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/OpenHands/software-agent-sdk.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

OpenHands/software-agent-sdk Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about software-agent-sdk

Should I embed the Python SDK or integrate through Agent Server?

Embed the Python SDK when your application should own the Agent and Conversation lifecycle. For a browser application or a separate execution process, use Agent Server and its REST/WebSocket API. The browser-compatible TypeScript client is a typed interface to that API, not a second agent runtime.

Does the execution host need a GPU, and how should I size it?

The quickstart configures an LLM with LLM_API_KEY and does not load model weights in the SDK process, so that integration does not imply a local GPU or VRAM requirement. Size the execution host for concurrent workspaces, repository size, and the CPU, memory, and disk demands of builds and tests. There is no verified minimum hardware profile or offline inference configuration.

Can we use it commercially and self-host the execution layer?

The repository is MIT-licensed and can be used commercially and self-hosted. Preserve the applicable copyright and license notices when redistributing covered code. The SDK license does not replace the terms of your model provider, third-party dependencies, or any skills and plugins you install. Self-hosting the runner also does not, by itself, keep model requests on premises.

When is this a better fit than a general agent framework or a coding CLI?

Use this SDK rather than a general-purpose agent framework when code workspaces, terminal and file editing, and a remote conversation API are core requirements. Choose a general-purpose framework if the main problem is orchestration across unrelated business systems. If developers only need an interactive coding assistant, the OpenHands CLI is an existing consumer of the SDK and avoids building that interface yourself.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining OpenHands/software-agent-sdk? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature OpenHands/software-agent-sdk on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare