Default ports conflict with common services (8080, 8000)
Problem
NemoClaw hardcodes four service ports with no override mechanism:
| Port | Service | Common conflicts |
|---|---|---|
| 8080 | OpenShell gateway | Jenkins, Tomcat, K8s dashboard, Adminer |
| 8000 | vLLM/NIM inference | Django dev server, PHP built-in server |
| 18789 | Dashboard | SSH port forwards |
| 11434 | Ollama | — |
On any machine running other development tools, nemoclaw onboard fails at the preflight port check with no way to proceed other than stopping the conflicting service.
Reproduction
$ docker run -d -p 8080:8080 adminer
$ nemoclaw onboard
!! Port 8080 is not available.
OpenShell gateway needs this port.
There is no flag, env var, or config file to change the port.
Expected behavior
Users should be able to override ports via environment variables, following the existing process.env.NEMOCLAW_* pattern used by NEMOCLAW_MODEL, NEMOCLAW_PROVIDER, and NEMOCLAW_GPU:
$ export NEMOCLAW_GATEWAY_PORT=8081
$ nemoclaw onboard
Proposed fix
PR #683 adds bin/lib/ports.js (23 lines) that reads NEMOCLAW_GATEWAY_PORT, NEMOCLAW_DASHBOARD_PORT, NEMOCLAW_VLLM_PORT, and NEMOCLAW_OLLAMA_PORT from environment variables with validation and sensible defaults. Five existing files are updated to use the constants instead of hardcoded literals.
Thanks for submitting this issue, I've noticed that the default ports are conflicting with common services, which could be a bug, and also think that supporting custom port configuration on different platforms could be a useful enhancement.
This is very annoying. I ran into the hard coded 8080. I've added a fix for this to PR 727
https://github.com/NVIDIA/NemoClaw/pull/727
Specific commit if somebody wants to cherry pick it https://github.com/NVIDIA/NemoClaw/pull/727/changes/d285097b32e6fc12b3d0b63b24cb9cfd3be71fc2
Openshell port 8080 details
┌─────────────────────┬───────────────────────────────────┬─────────┬──────────────────────────────────────────────┐
│ Component │ How to configure │ Default │ File │
├─────────────────────┼───────────────────────────────────┼─────────┼──────────────────────────────────────────────┤
│ openshell-server │ --port flag / │ 8080 │ crates/openshell-server/src/main.rs:22 │
│ binary │ OPENSHELL_SERVER_PORT env │ │ │
├─────────────────────┼───────────────────────────────────┼─────────┼──────────────────────────────────────────────┤
│ openshell gateway │ --port flag │ 8080 │ crates/openshell-cli/src/main.rs:749-751 │
│ start CLI │ │ │ │
├─────────────────────┼───────────────────────────────────┼─────────┼──────────────────────────────────────────────┤
│ Bootstrap/Docker │ DeployOptions.port │ 8080 │ crates/openshell-bootstrap/src/lib.rs:84,130 │
│ deploy │ │ │ │
├─────────────────────┼───────────────────────────────────┼─────────┼──────────────────────────────────────────────┤
│ SSH gateway port │ --ssh-gateway-port / │ 8080 │ crates/openshell-server/src/main.rs:67 │
│ │ OPENSHELL_SSH_GATEWAY_PORT │ │ │
└─────────────────────┴───────────────────────────────────┴─────────┴──────────────────────────────────────────────┘
Resolved in PR #1645 (feat/configurable-ports).
All 4 ports from this issue are now overridable via environment variables:
| Port | Default | Env var |
|---|---|---|
| OpenShell gateway | 8080 | NEMOCLAW_GATEWAY_PORT |
| Dashboard UI | 18789 | NEMOCLAW_DASHBOARD_PORT |
| vLLM/NIM inference | 8000 | NEMOCLAW_VLLM_PORT |
| Ollama inference | 11434 | NEMOCLAW_OLLAMA_PORT |
Validation enforces non-privileged range (1024-65535). Defaults are unchanged — existing setups are unaffected.
Usage:
export NEMOCLAW_GATEWAY_PORT=9090
export NEMOCLAW_DASHBOARD_PORT=19000
nemoclaw onboard
Related:
- Supersedes #683 (closed, @jnun credited as co-author for the original approach)
- Makes PR #703 (auto-fallback) and PR #357 (pre-check) redundant