Pydantic AI Harness
pydantic/pydantic-ai
Adds optional capabilities to Pydantic AI agents from pydantic-ai-harness, led by Code Mode, which runs many tool calls as one sandboxed Python script.
Reference skill for the OpenHands Software Agent SDK - the Python framework for building AI agents that write software.
$ npx skills add OpenHands/extensions --skill openhands-sdk -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OpenHands/extensions openhands-sdk --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/openhands-sdk .claude/skills/openhands-sdk && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "openhands-sdk" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/openhands-sdk into .claude/skills/openhands-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openhands-sdk", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OpenHands/extensions/tree/main/skills/openhands-sdkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OpenHands/extensions --skill openhands-sdk -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OpenHands/extensions openhands-sdk --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/openhands-sdk .agents/skills/openhands-sdk && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "openhands-sdk" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/openhands-sdk into .agents/skills/openhands-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openhands-sdk", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenHands/extensions --skill openhands-sdk -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OpenHands/extensions openhands-sdk --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/openhands-sdk .cursor/skills/openhands-sdk && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "openhands-sdk" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/openhands-sdk into .cursor/skills/openhands-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openhands-sdk", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OpenHands/extensions.git --path skills/openhands-sdk--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OpenHands/extensions --skill openhands-sdk -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OpenHands/extensions openhands-sdk --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/openhands-sdk .gemini/skills/openhands-sdk && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "openhands-sdk" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/openhands-sdk into .gemini/skills/openhands-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openhands-sdk", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OpenHands/extensions openhands-sdkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OpenHands/extensions --skill openhands-sdk -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/openhands-sdk .github/skills/openhands-sdk && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "openhands-sdk" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/openhands-sdk into .github/skills/openhands-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openhands-sdk", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenHands/extensions --skill openhands-sdk -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OpenHands/extensions openhands-sdk --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/openhands-sdk .opencode/skills/openhands-sdk && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "openhands-sdk" agent skill from https://github.com/OpenHands/extensions/tree/main/skills/openhands-sdk into .opencode/skills/openhands-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openhands-sdk", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
openhands-sdkReference skill for the OpenHands Software Agent SDK - the Python framework for building AI agents that write software.
Openhands SDK is an agent 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.
Its SKILL.md is about 6.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files (for example `.plugin/plugin.json`, `README.md` and `commands/sdk.md`).
It sits in AI & LLM Engineering, covering Building AI agents and Subagents. It works with Python. The repository describes itself as: Public registry for OpenHands extensions. The licence is MIT.
Read from SKILL.md and the folder at commit d008b81. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comdocs.openhands.devFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
LLM_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Openhands SDK loads about 6.9k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 1,120 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from OpenHands/extensions at commit d008b81, republished under its MIT licence (© OpenHands). 1,120 words, ~6,888 tokens.
.claude/skills/openhands-sdk/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.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.
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!")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 |
openhands.sdk.agent, openhands.sdk.conversation, openhands.sdk.event, openhands.sdk.llm, openhands.sdk.security, openhands.sdk.tool, openhands.sdk.utils, openhands.sdk.workspace
Source: examples/
01_standalone_sdk/01_hello_world.py02_custom_tools.py03_activate_skill.py04_confirmation_mode_example.py05_use_llm_registry.py06_interactive_terminal_w_reasoning.py07_mcp_integration.py08_mcp_with_oauth.py09_pause_example.py10_persistence.py11_async.py12_custom_secrets.py13_get_llm_metrics.py14_context_condenser.py15_browser_use.py16_llm_security_analyzer.py17_image_input.py18_send_message_while_processing.py19_llm_routing.py20_stuck_detector.py21_generate_extraneous_conversation_costs.py22_anthropic_thinking.py23_responses_reasoning.py24_planning_agent_workflow.py25_agent_delegation.py26_custom_visualizer.py27_observability_laminar.py28_ask_agent_example.py29_llm_streaming.py30_tom_agent.py31_iterative_refinement.py32_configurable_security_policy.py33_hooks34_critic_example.py35_subscription_login.py36_event_json_to_openai_messages.py37_llm_profile_store38_browser_session_recording.py39_llm_fallback.py40_acp_agent_example.py41_task_tool_set.py42_file_based_subagents.py44_model_switching_in_convo.py45_parallel_tool_execution.py46_agent_settings.py47_defense_in_depth_security.py48_conversation_fork.py49_switch_llm_tool.py50_async_cancellation.py51_agent_hooks52_dynamic_workflow.py53_client_defined_tools.py54_goal_completion_loop.py55_persistent_memory.py56_structured_output.py57_prompt_hooks58_ask_oracle_tool59_route_task_to_model.py02_remote_agent_server/01_convo_with_local_agent_server.py02_convo_with_docker_sandboxed_server.py03_browser_use_with_docker_sandboxed_server.py04_convo_with_api_sandboxed_server.py05_vscode_with_docker_sandboxed_server.py06_custom_tool07_convo_with_cloud_workspace.py08_convo_with_apptainer_sandboxed_server.py09_acp_agent_with_remote_runtime.py10_cloud_workspace_share_credentials.py11_conversation_fork.py12_settings_and_secrets_api.py13_workspace_get_llm.py14_client_defined_tools.py15_openai_compatible_gateway.py16_deferred_init.py17_convo_with_agent_sandbox_server.pyagent_sandbox_deployhook_scriptsscripts03_github_workflows/04_llm_specific_tools/05_skills_and_plugins/© OpenHands, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files in skills/openhands-sdk of OpenHands/extensions.
Open the folder on GitHubat commit d008b81
Openhands SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Openhands SDK this skillOpenHands/extensions | 157 | — | ~6.9k | Automated safety check: Pass | MIT | |
| Pydantic AI Harnesspydantic/pydantic-ai | 20k | — | ~4.9k | Automated safety check: Pass | MIT | |
| Agent BuildershareAI-lab/lab-skills | 314 | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Agent Harness BuilderFareedKhan-dev/claude-code-from-scratch | 298 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Deep Agents Corelangchain-ai/langchain-skills | 1.3k | 1 repos | ~3.1k | Automated safety check: Pass | MIT | |
| Agent BuildershareAI-lab/learn-claude-code | 78k | 6 repos | ~1.2k | Automated safety check: Pass | MIT |
pydantic/pydantic-ai
Adds optional capabilities to Pydantic AI agents from pydantic-ai-harness, led by Code Mode, which runs many tool calls as one sandboxed Python script.
shareAI-lab/lab-skills
Helps design and build AI agents for any domain around a minimal loop of capabilities, knowledge and context, adding planning or subagents only when needed.
FareedKhan-dev/claude-code-from-scratch
Gives patterns, a tool design checklist and an architecture decision tree for building agent harnesses, tools and multi-agent setups around a model.
langchain-ai/langchain-skills
Explains how to build agents with the Deep Agents framework: create_deep_agent, the built-in middleware, the harness, SKILL.md format and configuration options.
shareAI-lab/learn-claude-code
Design and build AI agents for any domain. An agent skill from shareAI-lab/learn-claude-code.
microsoft/skills
Reference for building on Microsoft Foundry with the azure-ai-projects Python SDK: project clients, versioned agents, evaluations, connections, datasets and indexes.
OpenHands/extensions
Evaluate how well a codebase supports autonomous AI-assisted development.
OpenHands/extensions
Build and automate Discord integrations (bots, webhooks, slash commands, and REST API workflows).
OpenHands/extensions
Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUBTOKEN environment variable and GitHub CLI.
OpenHands/extensions
Create an automation that implements GitHub issues when a configurable trigger label is applied.
OpenHands/extensions
This skill should be used when the user asks to "monitor a GitHub repository", "watch GitHub for issues or PRs", "respond to @OpenHands mentions on GitHub", "set up an OpenHands GitHub integration"…
OpenHands/extensions
Create an automation that implements GitLab issues when a configurable trigger label is applied.
Works with
Categories
Reference skill for the OpenHands Software Agent SDK - the Python framework for building AI agents that write software. Openhands SDK is an agent skill from OpenHands/extensions. Reference skill for the OpenHands Software Agent SDK - the Python framework for building AI agents that write software.
Openhands SDK fits situations like: you need to build agents with the SDK; create custom tools; manage conversations; delegate to sub-agents.
Run `npx skills add OpenHands/extensions --skill openhands-sdk -a claude-code`. Or copy the skill folder (skills/openhands-sdk in OpenHands/extensions) into .claude/skills/openhands-sdk in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OpenHands/extensions --skill openhands-sdk -a codex`. Or copy the skill folder (skills/openhands-sdk in OpenHands/extensions) into .agents/skills/openhands-sdk in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenHands/extensions --skill openhands-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openhands-sdk, .gemini/skills/openhands-sdk, .github/skills/openhands-sdk and .opencode/skills/openhands-sdk in your project.
Going by SKILL.md and its folder, Openhands SDK needs the command-line tools its instructions call (pip) and credentials named LLM_API_KEY. Our summary lists: Python 3; Docker; A credential in LLM_API_KEY.
SKILL.md names 2 domains. As links in the text: github.com and docs.openhands.dev. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Openhands SDK is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 6.9k tokens (SKILL.md is roughly 28k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Openhands SDK: Pydantic AI Harness (pydantic/pydantic-ai, 20k stars), Agent Builder (shareAI-lab/lab-skills, 314 stars), Agent Harness Builder (FareedKhan-dev/claude-code-from-scratch, 298 stars) and Deep Agents Core (langchain-ai/langchain-skills, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OpenHands (a GitHub organization) maintains it in OpenHands/extensions, which has 157 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.
Source: OpenHands/extensions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.