# How to run OpenHands with a local Nemotron model

To run OpenHands with a local Nemotron model, point its LLM settings at a vLLM server on the same machine; on NVIDIA Brev, the OpenHands Coding Agent on Nemotron Launchable runs OpenHands with NVIDIA Nemotron 3.5 Lightning served by vLLM on one NVIDIA L40S 48GB GPU.

Updated: 2026-12-01

Published: 2026-11-22

## What does the OpenHands Launchable run?

The [OpenHands Coding Agent on Nemotron](https://www.9owls.com/launchables/openhands-nemotron/) Launchable runs OpenHands, an open-source coding agent, next to a vLLM server that serves NVIDIA Nemotron 3.5 Lightning on the same instance. A Launchable is a reproducible, shareable environment configuration on NVIDIA Brev: GPU, disk, container setup and ports in one link (https://docs.nvidia.com/brev/latest/concepts/launchables.md).

| Item | Value |
|---|---|
| GPU | NVIDIA L40S 48GB |
| Instance type | AWS `g6e.xlarge` |
| Disk | 200 GiB |
| Price | about $2.26/hr (Brev console, 2026-11-19) |
| Last fresh-deploy smoke | 2026-11-15 |

- OpenHands (Agent Canvas) 1.40.0, image `ghcr.io/openhands/agent-canvas:1.40.0`, MIT License.
- vLLM v0.27.1, image `vllm/vllm-openai:v0.27.1` pinned by digest, Apache License 2.0.
- Default model `nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4`, OpenMDW License Agreement, version 1.1.
- Launch option `Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8`, Apache License 2.0, about a 31 GB download.

## How is OpenHands wired to the local vLLM model?

OpenHands talks to vLLM through vLLM's OpenAI-compatible API, so no hosted model API key is needed. vLLM serves whichever model you pick under the alias `coder`, and you enter these values in the OpenHands LLM settings:

| OpenHands setting | Value | Why |
|---|---|---|
| Custom model | `openai/coder` | The `openai/` prefix tells OpenHands to use the OpenAI-compatible API; `coder` is the vLLM alias. |
| Base URL | `http://vllm:8000/v1` | The vLLM service address inside the Launchable's container network. |
| API key | any non-empty string, for example `local` | The local vLLM server needs no hosted provider key. |

- The OpenHands local-model documentation says OpenHands needs at least about 22k tokens of context and recommends 32k or more.
- The `MAX_MODEL_LEN` launch setting offers `65536` (default), `32768` or `131072` tokens.
- On the instance, vLLM listens on port `8001` of the instance only; it is not exposed publicly.
- To call the same API from your machine, run `brev port-forward INSTANCE_NAME --port 8001:8001`, then request `/v1/models` on the forwarded port.

For the general pattern of keeping a vLLM API private and reaching it from your machine, read [serve an OpenAI-compatible API with vLLM](https://www.9owls.com/guides/serve-an-openai-compatible-api-with-vllm/).

## How do I give OpenHands a first task?

Open OpenHands, enter the three LLM settings above, and start a conversation. The steps from the Launchable README:

1. Deploy the Launchable and wait until the instance shows Running.
2. Open the OpenHands link for port `8000` and go to the `/canvas` path.
3. Read the OpenHands API key on the instance with `docker exec $(docker ps --quiet --filter label=com.docker.compose.service=openhands) sh -c 'cat "$STATE_DIR/api-key.txt"'`.
4. In the LLM settings, set the custom model `openai/coder`, the base URL `http://vllm:8000/v1` and any non-empty API key such as `local`.
5. Start a conversation; the first answer arrives once the model has finished loading.

> **Warning:** the agent runs the commands the model proposes, with network access, inside its container. Review its actions and do not give it credentials you would not share.

Your projects live under `/home/ubuntu/workspace/projects` on the instance.

## OpenHands vs Paperclip: one agent or a team?

Use OpenHands when one agent should work on code in a project; use Paperclip when you want several agents with roles working through goals and tickets. Both Launchables on NVIDIA Brev serve NVIDIA Nemotron 3.5 Lightning with vLLM on the same GPU type.

| Item | OpenHands Coding Agent on Nemotron | Paperclip Multi-Agent Team on Nemotron |
|---|---|---|
| Shape | One coding agent in a conversation | A company of agents with an org chart, goals and tickets |
| Licence | MIT License | MIT License |
| Model name the agent uses | `openai/coder` | `vllm-local/agent-model` |
| Web UI port | `8000` | `3100` |
| GPU | NVIDIA L40S 48GB | NVIDIA L40S 48GB |

Read [how to run a Paperclip multi-agent team on Nemotron](https://www.9owls.com/guides/run-a-paperclip-multi-agent-team-on-nemotron/), see the [Paperclip Multi-Agent Team on Nemotron](https://www.9owls.com/launchables/paperclip-nemotron/) Launchable, or browse every Launchable in [coding and multi-agent](https://www.9owls.com/topics/coding-and-multi-agent/).

## How do I deploy it on NVIDIA Brev?

Open the deploy link, keep the defaults, deploy and wait for Running. The full walkthrough is in [how to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/).

1. Open the [OpenHands Coding Agent on Nemotron deploy page](https://brev.nvidia.com/launchable/deploy?launchableID=env-3M8b2pM4xEhrOmr5yEObCVI7kyS).
2. Keep `MODEL` at `nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4` and `MAX_MODEL_LEN` at `65536`, or change them.
3. Deploy on the NVIDIA L40S 48GB instance and wait until it shows Running.
4. Open OpenHands and follow the first-task steps above.

## What happens when I stop or delete the instance?

Stop keeps your models, settings and projects; Delete removes them. The guide [stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/) covers each action.

- Models: `/home/ubuntu/workspace/huggingface`, survives Stop.
- OpenHands settings and conversations: `/home/ubuntu/workspace/openhands`, survives Stop.
- Projects: `/home/ubuntu/workspace/projects`, survives Stop; push work to a git remote before Delete.
- If the containers do not come back after Start, run `cd /home/ubuntu/workspace && sudo docker compose up -d`.

> **Note:** storage is billed while the instance is stopped, and Delete cannot be undone.

## How does this relate to NightKeeper?

This Launchable is a finished environment you deploy yourself. NightKeeper is a separate 9owls product for your own code: it packages your repository as an NVIDIA Brev Launchable, proves it on a fresh GPU and keeps it running.

- [Read about NightKeeper](https://www.9owls.com/nightkeeper/).
- [Create your Launchable](https://www.9owls.com/nightkeeper/start/).

## Sources: where do these facts come from?

Every fact on this page comes from one of these sources, read 2026-11-22.

- [OpenHands Coding Agent on Nemotron README](https://github.com/ashishsalve/gpu-launchables/blob/main/openhands-nemotron/README.md), read 2026-11-22.
- [OpenHands local LLMs documentation](https://docs.openhands.dev/openhands/usage/llms/local-llms), read 2026-11-22.
- [NVIDIA Brev Launchables concept page](https://docs.nvidia.com/brev/latest/concepts/launchables.md), read 2026-11-22.
- [OpenHands on GitHub](https://github.com/OpenHands/OpenHands) and [vLLM on GitHub](https://github.com/vllm-project/vllm), read 2026-11-22.
- Brev console list price for AWS `g6e.xlarge`, read 2026-11-19; pinned versions (OpenHands 1.40.0, vLLM v0.27.1) re-checked against the Launchable's recorded versions on 2026-11-28.

## How was this page made?

9owls publishes this page. The GPU, disk, settings and stop and start facts come from the Launchable's README and its fresh-deploy smoke on 2026-11-15; the price is the newest Brev console read for its instance type, AWS `g6e.xlarge`, on 2026-11-19. Corrections: [contact 9owls](https://www.9owls.com/company/#contact).

- What changed on 2026-11-28: the price now shows the 2026-11-19 console read for AWS `g6e.xlarge`, which replaced the 2026-11-15 read.
- What changed on 2026-12-01: the title and heading say how to run OpenHands with a local Nemotron model again.

## Related pages

- [OpenHands Coding Agent on Nemotron](https://www.9owls.com/launchables/openhands-nemotron/)
- [Coding and multi-agent](https://www.9owls.com/topics/coding-and-multi-agent/)
- [Serve an OpenAI-compatible API with vLLM](https://www.9owls.com/guides/serve-an-openai-compatible-api-with-vllm/)
- [Paperclip Multi-Agent Team on Nemotron](https://www.9owls.com/launchables/paperclip-nemotron/)
- [Run a Paperclip multi-agent team on NVIDIA Nemotron](https://www.9owls.com/guides/run-a-paperclip-multi-agent-team-on-nemotron/)

[All guides](https://www.9owls.com/guides/)
