openhands-sdk

openhands-sdk is a skill for Claude Code, Codex from OpenHands/extensions. It costs 61 tokens per session (6,675 once invoked), scanned A, original, MIT.

A Python framework for building AI agents that write software, use tools, and manage ongoing conversations.

In plain words
What is it for?
It helps developers build coding agents, add file and terminal tools, track tasks, and run agents locally or remotely.
Why use it?
It provides a standard way to configure language models, tools, workspaces, and delegated agent tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit It helps developers build coding agents, add file and terminal tools, track tasks, and run agents locally or remotely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openhands/extensions/openhands-sdk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenHands/extensions --skill openhands-sdk
Clone the repo
git clone --depth 1 https://github.com/OpenHands/extensions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openhands-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/openhands/extensions/openhands-sdk/github.svg)](https://agentmods.dev/skills/openhands/extensions/openhands-sdk)
Your own site
<a href="https://agentmods.dev/skills/openhands/extensions/openhands-sdk"><img src="https://agentmods.dev/badge/skills/openhands/extensions/openhands-sdk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openhands-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/openhands/extensions/openhands-sdk"><img src="https://agentmods.dev/badge/skills/openhands/extensions/openhands-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.06675
Opus 5.5 $0.00024 $0.02670
Sonnet 5.5 $0.00012 $0.01335
Haiku 4.5 $0.00006 $0.00668

Measured today against content hash 9bc7333ee471, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openhands-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openhands-sdk/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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
Agent Reasoning-action loop
Condenser Conversation history compression system
Conversation Conversation orchestration system
Event Typed event framework
LLM Provider-agnostic language model interface
SecurityAnalyzer Action security analysis and validation
Skill Reusable prompt system
Tool / ToolDefinition Action-observation tool framework
Workspace Execution environment abstraction

Read the full file on GitHub · 257 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +3 lines 9bc7333ee471
  2. 21d ago Changed · +4 lines 7711cd84e9f0
  3. 1mo ago Changed · +1 lines 102b75f8b553
  4. 2mo ago Changed · +1 lines 033b9e64ec76
  5. 2mo ago Changed · +2 lines 03180fe4b5d8
  6. 2mo ago Changed · +2 lines 665cddf9f069
  7. 2mo ago First seen · 244 lines · 61 tokens per session scan A 2dd700f55e9a

Subscribe to this mod's changes

openhands-sdk is a skill published in the GitHub repository OpenHands/extensions (190 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 6,675 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

openhands-sdk compared with skills from other repositories

openhands-sdk next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openhands-sdkOpenHands/extensionsSkill190todayMITA61Claude Code, Codex
matlabK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill4.2ktodayApache-2.0A34Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A75Codex
future-self-liteTHU-MAIC/OpenMAICSkill45ktodayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill796todayApache-2.0A93Claude Code