Use the OpenHands Adapter
Use the NVIDIA NeMo Fabric nvidia.fabric.openhands adapter to run tasks with
the OpenHands SDK. The adapter keeps one OpenHands conversation alive for each
NeMo Fabric runtime, so ordered invocations retain conversation context.
Install the Adapter
Install the tested OpenHands packages, then install the runtime and adapter:
The 1.50.0 package pair is validated with NVIDIA NIM.
To install only the adapter, use:
The adapter package supports Python 3.11 or later, while OpenHands requires Python 3.12 or later. The adapter packages do not install OpenHands.
Configure the Adapter
The adapter maps normalized model settings, replace and append system
instructions, runtime.max_turns, tool policy, MCP servers, skills, and the
workspace. Supported tool names are terminal (alias bash) and
file_editor (alias edit). OpenHands retains its internal finish and
reasoning tools.
Skill paths resolve from the configuration base directory and must contain a
SKILL.md file. The adapter disables ambient OpenHands user, public, project,
and memory loading, so only explicitly configured NeMo Fabric skills load.
The initial integration does not support Relay telemetry, native streaming, interactive confirmation, MCP authentication, or per-server MCP tool filters.
Understand the Runtime Lifecycle
The adapter runs the OpenHands SDK directly in a persistent Python adapter
process. It does not start or connect to an OpenHands server. start creates
one local conversation for the NeMo Fabric runtime, and ordered invocations
reuse that conversation and its history.
Each invocation returns only the final response and usage for that turn. stop
closes the conversation and removes the adapter-owned temporary profile state.
Create a new runtime to change the model, workspace, tools, MCP servers, or
skills.
Run the Code Review Example
Set NVIDIA_API_KEY. For a source checkout, also point NeMo Fabric at the Python
environment that contains the adapter and OpenHands packages:
Then run:
Do not combine the OpenHands variant with --relay.