Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

openhands-sdk

БесплатноБез исполняемых скриптовНе проверен

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…

OpenHandsот OpenHands★ 190 звёзд на 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

API reference

openhands.sdk.agent, openhands.sdk.conversation, openhands.sdk.event, openhands.sdk.llm, openhands.sdk.security, openhands.sdk.tool, openhands.sdk.utils, openhands.sdk.workspace

Guides

  • ACP Agent: Delegate to an ACP-compatible server (Claude Code, Gemini CLI, etc.) instead of calling an LLM directly.
  • Agent Settings: Configure, serialize, and recreate agents from structured settings.
  • Agent Skills & Context: Skills add specialized behaviors, domain knowledge, and context-aware triggers to your agent through structured prompts.
  • API-based Sandbox: Connect to hosted API-based agent server for fully managed infrastructure.
  • Apptainer Sandbox: Run agent server in rootless Apptainer containers for HPC and shared computing environments.
  • Ask Agent Questions: Get sidebar replies from the agent during conversation execution without interrupting the main flow.
  • Ask Oracle: Let an agent consult a saved Oracle LLM profile for stateless second-opinion advice.
  • Assign Reviews: Automate PR management with intelligent reviewer assignment and workflow notifications using OpenHands Agent
  • Browser Session Recording: Record and replay your agent's browser sessions using rrweb.
  • Browser Use: Enable web browsing and interaction capabilities for your agent.
  • Context Condenser: Manage agent memory by condensing conversation history to save tokens.
  • Conversation Goals: Add a resumable goal strategy to a normal agent-server conversation.
  • Conversation with Async: Use async/await for concurrent agent operati
Полный SKILL.md на GitHub

Установить openhands-sdk в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.claude-plugin.codex-plugin.plugin/plugin.jsonREADME.mdcommands/sdk.md

FAQ

Что делает скилл openhands-sdk?

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.

Как установить скилл openhands-sdk?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл openhands-sdk запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить openhands-sdk с