openhands
Fungsinya
Skill ini memandu agent Anda menjalankan alat baris perintah OpenHands dalam mode headless untuk tugas kode batch atau sekali jalan. Skill ini ditujukan bagi pengembang yang menginginkan agent kode yang tidak terikat pada satu model.
Kapan dipakai
- βSaat Anda ingin OpenHands secara khusus melakukan pengeditan file multi-langkah dan menjalankan perintah.
- βKetika Anda ingin agent kode yang berjalan di penyedia selain Anthropic atau OpenAI.
- βKetika Anda ingin tugas kode sekali jalan dijalankan tanpa layar teks interaktif.
Link skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/openhands/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βMinta OpenHands memperbarui kode logging di seluruh proyek memakai model dari penyedia lain, lalu jalankan tesnya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memasang OpenHands dengan uv, mengatur model dan kunci sebagai variabel lingkungan, lalu menjalankan tugas sekali jalan di ruang kerja. Agent tidak memakai layar teks interaktif.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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-codeandcodexare 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
Install upstream (requires Python 3.12+ and
uv):terminal(command="uv tool install openhands --python 3.12")Verify:
openhands --version(currentlyOpenHands CLI 1.16.0/SDK v1.21.0at time of writing).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 OpenAILLM_MODELuses 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.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
Pertanyaan umum
Apa yang perlu dipasang?
Python 3.12 atau lebih baru, plus alat uv, yang dipakai skill untuk memasang OpenHands.
Penyedia AI apa saja yang didukung?
Penyedia apa pun yang didukung LiteLLM, seperti OpenAI, Anthropic, OpenRouter, DeepSeek, Ollama, atau vLLM.
Kapan saya sebaiknya memakai skill lain?
Skill menyarankan skill claude-code untuk Claude dan skill codex untuk pekerjaan asli OpenAI.
Detail
Deskripsi asli dari pembuat
Delegate coding to OpenHands CLI (model-agnostic, LiteLLM).
Popularitas
- Bintang GitHub
- 260k
- Peringkat
- #445
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-merge-conflict-arbiter
260kMenyelesaikan konflik merge git antara cabang dua agent sebagai pihak ketiga yang netral, menghasilkan satu hasil gabungan untuk repo.
antigravity-cli
260kMemandu Anda memasang, memperbarui, dan memecahkan masalah alat baris perintah Antigravity, termasuk plugin, login, dan sandbox-nya.
blackbox
260kMemungkinkan agent Anda menyerahkan tugas pemrograman ke alat baris perintah Blackbox AI, yang menjalankan beberapa model AI dan memilih hasil terbaik.
dynamic-workflow
260kMengajari agent Anda menjalankan pekerjaan sejenis dalam jumlah besar sebagai skrip tersimpan, sehingga hanya hasil terverifikasi yang kembali ke percakapan utama.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.