openhands-sdk skillA
openhands-sdk is agent-read markdown (skill) from openhands/extensions: Reference skill for the OpenHands Software Agent SDK - the Python framework for building AI agents that write software. Use when you need to build agents with the SDK, create custom tools, configure LLMs, manage conversations, delegate to sub-agents, or deploy agents locally or remotely..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# OpenHands Software Agent SDK
All SDK documentation lives at <https://docs.openhands.dev/sdk>.
For the full topic index, fetch <https://docs.openhands.dev/llms.txt> and read
the "OpenHands Software Agent SDK" section.
## Quick reference
Install: `pip install openhands-sdk openhands-tools`
```python
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=os.getenv("LLM_MODEL", "gpt-5.5"),
api_key=os.getenv("LLM_API_KEY"),
base_url=os.getenv("LLM_BASE_URL", None),
)
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!")
```
## Core classes (`openhands.sdk`)
| Class | Purpose |
|---|---|
…Read the whole file at its exact version.
How to install
mdr add openhands/extensions/openhands-sdk@git:20260924.f02d3aamdr add openhands/extensions/openhands-sdk@sha256:033b9e64ec7639f4Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_f25mppqq3o5m6lpy)
0 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260924.f02d3aa latest | 2026-09-24 | f02d3aa | 27,349 B | A | view · diff |
| git:20260921.f761809 | 2026-09-21 | f761809 | 27,205 B | A | view · diff |
| git:20260915.4d93d29 | 2026-09-15 | 4d93d29 | 26,842 B | A | view · diff |
| git:20260827.370ee2c | 2026-08-27 | 370ee2c | 26,530 B | A | view · diff |
| git:20260814.a559a58 | 2026-08-14 | a559a58 | 26,400 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (27349 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
openhands/extensions · 150 stars · license MIT · pushed 2026-09-24 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_f25mppqq3o5m6lpy GET https://markdownregistry.com/api/v1/resolve?ref=openhands/extensions/openhands-sdk GET https://markdownregistry.com/api/v1/blob/033b9e64ec7639f4b793dc1fbf856757ac35dad096e0efc795f27872aa920a97
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.