본문으로 건너뛰기
Skillpedia
일반 코딩260k · #445

openhands

하는 일

일괄 처리나 일회성 코딩 작업을 위해 OpenHands 명령줄 도구를 헤드리스 모드로 실행하도록 안내합니다. 특정 AI 회사에 묶이지 않은 코딩 에이전트를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓여러 단계의 파일 편집과 명령 실행을 특히 OpenHands가 하기를 원할 때.
  • ✓Anthropic이나 OpenAI가 아닌 제공업체에서 돌아가는 코딩 에이전트를 원할 때.
  • ✓대화형 텍스트 화면 없이 일회성 코딩 작업을 실행하고 싶을 때.

스킬 링크

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/openhands/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/openhands/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“다른 제공업체의 모델을 사용해 OpenHands가 프로젝트 전체의 로깅 코드를 업데이트하고, 그다음 테스트를 실행하도록 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 uv로 OpenHands를 설치하고, 모델과 키를 환경 변수로 설정한 뒤, 작업 공간에서 일회성 작업을 실행합니다. 대화형 텍스트 화면은 사용하지 않습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

OpenHands CLI

Delegate coding tasks to the OpenHands CLI via the terminal tool. OpenHands is model-agnostic: any LiteLLM-supported provider (OpenAI, Anthropic, OpenRouter, DeepSeek, Ollama, vLLM, etc.).

This skill is the headless-mode wrapper for batch / one-shot delegation. The interactive textual UI is not used from Hermes.

When to Use

  • User wants a coding task delegated to OpenHands specifically.
  • User wants a coding agent that can run on a non-Anthropic / non-OpenAI provider (DeepSeek, Qwen, Ollama, vLLM, Nous, etc.) — sibling skills claude-code and codex are tied to one vendor.
  • Multi-step file edits + shell commands inside a workspace.

For Claude-native, prefer claude-code. For OpenAI-native, prefer codex. For Hermes-native subagents, use delegate_task.

Prerequisites

  1. Install upstream (requires Python 3.12+ and uv):

    terminal(command="uv tool install openhands --python 3.12")
    

    Verify: openhands --version (currently OpenHands CLI 1.16.0 / SDK v1.21.0 at time of writing).

  2. Pick a model and set env vars for --override-with-envs:

    export LLM_MODEL=openrouter/openai/gpt-4o-mini       # or any LiteLLM slug
    export LLM_API_KEY=$OPENROUTER_API_KEY
    export LLM_BASE_URL=https://openrouter.ai/api/v1     # omit for native OpenAI
    

    LLM_MODEL uses LiteLLM's full slug. When the provider is OpenRouter the slug is doubly-prefixed: openrouter/<vendor>/<model> (e.g. openrouter/anthropic/claude-sonnet-4.5). For native Anthropic: anthropic/claude-sonnet-4-5. For native OpenAI: openai/gpt-4o-mini.

  3. Suppress the startup banner so JSON output isn't preceded by ASCII art:

    export OPENHANDS_SUPPRESS_BANNER=1
    

How to Run

Always invoke through the terminal tool. Always pass --headless --json --override-with-envs --exit-without-confirmation for automation.

One-shot task

terminal(
  command="OPENHANDS_SUPPRESS_BANNER=1 LLM_MODEL=openrouter/openai/gpt-4o-mini LLM_API_KEY=$OPENROUTER_API_KEY LLM_BASE_URL=https://openrouter.ai/api/v1 openhands --headless --json --override-with-envs --exit-without-confirmation -t 'Add error handling to all API calls in src/'",
  workdir="/path/to/project",
  timeout=600
)

Background for long tasks

terminal(command="<same as above>", workdir="/path/to/project", background=true, notify_on_complete=true)
process(action="poll", session_id="<id>")
process(action="log", session_id="<id>")

Resume a previous conversation

OpenHands prints Conversation ID: <32-hex> and a Hint: openhands --resume <dashed-uuid> line at the end of each run. Use the dashed form to resume:

terminal(
  command="OPENHANDS_SUPPRESS_BANNER=1 LLM_MODEL=... openhands --headless --json --override-with-envs --exit-without-confirmation --resume <dashed-uuid> -t 'Now fix the bug you found'",
  workdir="/path/to/project"
)

Real Flag List

Verified against openhands --help (CLI 1.16.0). Anything not in this table is not a flag — pass it via env var or settings file.

Flag Effect
--headless No UI, requires -t or -f. Auto-approves all actions (no --llm-approve in this mode).
--json JSONL event stream (requires --headless).
-t TEXT Task prompt.
-f PATH Read task from file.
--resume [ID] Resume conversation. No ID → list recent.
--last Resume most recent (with --resume).
--override-with-envs Apply LLM_API_KEY / LLM_BASE_URL / LLM_MODEL env vars. Without this, OpenHands uses ~/.openhands/settings.json and ignores the env.
--exit-without-confirmation Don't show the "are you sure" exit dialog.
--always-approve / --yolo Auto-approve every action (default in --headless).
--llm-approve LLM-based security gate (interactive only — does NOT work in headless).
--version / -v Print version and exit.

There is no --model, --max-iterations, --workspace, --sandbox, --sandbox-type flag. Model is LLM_MODEL. Workspace is the workdir you pass to the terminal tool. Sandbox / runtime is the RUNTIME and SANDBOX_VOLUMES env vars.

JSON Event Schema

With --json --headless, OpenHands emits JSONL — one JSON object per line, plus a handful of non-JSON status lines (Initializing agent..., Agent is working, Agent finished, the final summary box, Goodbye!, Conversation ID:, Hint:). Filter for

자주 묻는 질문

무엇을 설치해야 하나요?

Python 3.12 이상과 OpenHands 설치에 쓰는 uv 도구가 필요합니다.

어떤 AI 제공업체를 지원하나요?

LiteLLM이 지원하는 모든 제공업체를 지원하며, 예를 들어 OpenAI, Anthropic, OpenRouter, DeepSeek, Ollama, vLLM이 있습니다.

언제 다른 스킬을 써야 하나요?

Claude에는 claude-code 스킬을, OpenAI 기반 작업에는 codex 스킬을 쓰라고 제안합니다.

상세 정보

작성자의 원본 설명

Delegate coding to OpenHands CLI (model-agnostic, LiteLLM).

repo: NousResearch/hermes-agent

인기도

GitHub 스타
260k
순위
#445
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬