NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[All Platform] [v0.0.2] run error: "no compatible inference route available" after onboarding both openai and anthropic providers

Open zNeill opened this issue 8 months ago • 12 comments

Description

[Description] In tags/v0.0.2 release, onboarding two sandboxs with incompatible api formats will cause run error: 400 "no compatible inference route available" in at least one sandbox

[Environment]

Item Version / detail
Device macos and ALL platforms
Node.js v22.x
OpenShell CLI 0.0.19
NemoClaw v0.1.0
OpenClaw 2026.3.11 (29dc654)

[Steps to Reproduce]

1. nemoclaw onboard to finish the first sandbox creation, choose 3) Other OpenAI-compatible endpoint, sandbox name: openai
2. nemoclaw openai status shows sandbox Phase: ready
3. nemoclaw openai connect 
4. in the first sandbox, start openclaw tui to interact
5. nemoclaw onboard to finish the second sandbox creation, choose 5) Other Anthropic-compatible endpoint, sandbox name: anthropic
6. in the second sandbox, run: openclaw agent --agent main --local -m "1-2=" --session-id anthropic
7. Go to the first sandbox, send a new message in the tui to interact


[Expected Result]
either both sandboxs can work independently, or if there is any limitation to support the co-existence, add a clear document

[Actual Result] the second sandbox runs fine, but the first tui will throw run error: 400 "no compatible inference route available"

Bug Details

Field Value
Priority Unprioritized
Action Dev - Open - To fix
Disposition Open issue
Module Machine Learning - NemoClaw
Keyword NemoClaw, NEMOCLAW_GH_SYNC_APPROVAL

[NVB# 6038930]

[NVB#6038930]

zNeill avatar Apr 01 '26 12:04 zNeill

[Description]
In tags/v0.0.2 release, onboarding two sandboxs with incompatible api formats will cause run error: 400 "no compatible inference route available" in at least one sandbox
 

[Environment]

Item | Version / detail -- | -- Device | macos and ALL platforms Node.js | v22.x OpenShell CLI | 0.0.19 NemoClaw | v0.1.0 OpenClaw | 2026.3.11 (29dc654)


[Steps to Reproduce]

1. nemoclaw onboard to finish the first sandbox creation, choose 3) Other OpenAI-compatible endpoint, sandbox name: openai
2. nemoclaw openai status shows sandbox Phase: ready
3. nemoclaw openai connect 
4. in the first sandbox, start openclaw tui to interact
5. nemoclaw onboard to finish the second sandbox creation, choose 5) Other Anthropic-compatible endpoint, sandbox name: anthropic
6. in the second sandbox, run: openclaw agent --agent main --local -m "1-2=" --session-id anthropic
7. Go to the first sandbox, send a new message in the tui to interact

[Expected Result] either both sandboxs can work independently, or if there is any limitation to support the co-existence, add a clear document

[Actual Result]
the second sandbox runs fine, but the first tui will throw  run error: 400 "no compatible inference route available"

hulynn avatar Apr 01 '26 13:04 hulynn

A similar issue occurs in another scenario. If the system is designed to support multiple sandboxes, this should be considered a QA-recommended release blocker, as it represents a fundamental use case.

  1. nemoclaw onboard to finish the first sandbox creation, choose 2) OpenAI, sandbox name: openai

  2. nemoclaw openai status shows sandbox Phase: ready

  3. nemoclaw openai connect

  4. in the first sandbox, start openclaw tui to interact which is working, sandbox logs: [1775206043.593] [sandbox] [INFO ] [openshell_sandbox::proxy] Intercepted inference request, routing locally kind=responses path=/v1/responses protocol=openai_responses [1775206043.593] [sandbox] [INFO ] [openshell_router] routing proxy inference request (streaming) endpoint=https://api.openai.com/v1 path=/v1/responses protocols=openai_chat_completions,openai_completions,openai_responses,model_discovery

  5. nemoclaw onboard to finish the second sandbox creation, choose 1) NVIDIA Endpoints , sandbox name: nv-mini

  6. In the second sandbox, run: openclaw agent --agent main --local -m "hello" --session-id test, works successfully.

  7. However, Go to the first sandbox, send a new message in the tui to interact, which would return error message:

Image

Sandbox log: [1775207047.662] [sandbox] [INFO ] [openshell_sandbox::proxy] Intercepted inference request, routing locally kind=responses path=/v1/responses protocol=openai_responses [1775207047.662] [sandbox] [INFO ] [openshell_router] routing proxy inference request (streaming) endpoint=https://integrate.api.nvidia.com/v1 path=/v1/responses protocols=openai_chat_completions,openai_completions,openai_responses,model_discovery

This indicates that after creating the second sandbox, the first sandbox’s routing configuration was overwritten, causing inference requests to be incorrectly directed to the NVIDIA endpoint instead of the OpenAI API.

JoyceChenNV avatar Apr 03 '26 09:04 JoyceChenNV

This issues seems to be a limitation of OpenShell: The inference route is a cluster-wide singleton. OpenShell stores it under the fixed key "inference.local".

See some details here: https://github.com/NVIDIA/OpenShell/blob/main/architecture/gateway.md#inference-service The gateway acts as the control plane for inference configuration. It stores a single managed cluster inference route (named inference.local) and delivers resolved route bundles to sandbox pods.

https://github.com/NVIDIA/OpenShell/blob/main/architecture/README.md Inference routes are stored on the gateway as protobuf objects (InferenceRoute in proto/inference.proto). Cluster inference uses a managed singleton route entry keyed by inference.local

$ openshell inference get
Gateway inference:

  Provider: nvidia-prod
  Model: nvidia/nemotron-3-super-120b-a12b
  Version: 1
  Timeout: 60s (default)

System inference:

  Not configured

paritoshd-nv avatar Apr 03 '26 23:04 paritoshd-nv

We currently do not have any plans to support multiple model types (or protocols) through inference.local. The model routing strategy is under review for OpenShell's roadmap. If different model providers and protocols are required then we recommend agents sending inference to the provider's endpoints directly and allowing traffic via network policies.

johntmyers avatar Apr 04 '26 00:04 johntmyers

Created this feature request for the OpenShell: https://github.com/NVIDIA/OpenShell/issues/776

paritoshd-nv avatar Apr 07 '26 13:04 paritoshd-nv

This was filed against v0.0.2 — the inference routing layer has been significantly reworked since then, including how providers are registered, routed, and validated. Closing as stale. If you're hitting incompatible inference routes between providers on the current version, please reopen with the provider configurations and error output.

wscurran avatar Apr 13 '26 22:04 wscurran

After some more testing on the latest NemoClaw version v0.0.15, I can reproduce that the problem is with multiple NemoClaw sandboxes and appears order‑dependent. Please let me know if any inputs required from my end. Re-opening this issue.

Steps to reproduce (on my machine)

  1. Create the first sandbox and verify it works:

    nemoclaw onboard --sandbox-name anthropic-sandbox nemoclaw sandbox status --name anthropic-sandbox # shows Ready nemoclaw anthropic-sandbox connect openclaw agent --agent main --local -m "1-2=" --session-id anthropic

    → This works: the agent responds correctly.

  2. Create a second sandbox:

    nemoclaw onboard --sandbox-name openai-sbox nemoclaw sandbox status --name openai-sbox # shows Ready

  3. Try connecting to both sandboxes explicitly by name:

    nemoclaw anthropic-sandbox connect nemoclaw openai-sbox connect

Actual result

  • Whichever sandbox was created FIRST starts failing with:

    nemoclaw connect → Error: 400 {"error":"no compatible inference route available"}

  • The SECOND sandbox continues to work as expected.

If I delete both sandboxes and reverse the creation order (openai-sbox first, anthropic-sandbox second), the same thing happens but now openai-sbox is the one that breaks once anthropic-sandbox is created.

So the bug seems tied to the "first created sandbox" rather than any specific sandbox name.

PrachiShevate-nv avatar Apr 14 '26 18:04 PrachiShevate-nv

Here is the Provider configuration for both sandboxes created

Provider configuration anthropic sandbox(current version)

$ openclaw --version OpenClaw 2026.4.2 (d74a122)

$ openclaw config get gateway.mode "local"

$ openclaw config get agents.defaults { "model": { "primary": "anthropic/openrouter/free" }, "maxConcurrent": 4, "subagents": { "maxConcurrent": 8 } }

$ openclaw config get models { "mode": "merge", "providers": { "anthropic": { "baseUrl": "https://inference.local", "apiKey": "OPENCLAW_REDACTED", "api": "anthropic-messages", "models": [ { "id": "openrouter/free", "name": "anthropic/openrouter/free", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 131072, "maxTokens": 4096, "api": "anthropic-messages" } ] } } }

$openclaw config get models.providers { "anthropic": { "baseUrl": "https://inference.local", "apiKey": "OPENCLAW_REDACTED", "api": "anthropic-messages", "models": [ { "id": "openrouter/free", "name": "anthropic/openrouter/free", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 131072, "maxTokens": 4096, "api": "anthropic-messages" } ] } }

Provider configuration openai sandbox(current version)

$ openclaw --version OpenClaw 2026.4.2 (d74a122)

$ openclaw config get gateway.mode "local"

$ openclaw config get agents.defaults { "model": { "primary": "inference/nvidia/nemotron-3-nano-30b-a3b:free" }, "maxConcurrent": 4, "subagents": { "maxConcurrent": 8 } }

$ openclaw config get models { "mode": "merge", "providers": { "inference": { "baseUrl": "https://inference.local/v1", "apiKey": "OPENCLAW_REDACTED", "api": "openai-completions", "models": [ { "id": "nvidia/nemotron-3-nano-30b-a3b:free", "name": "inference/nvidia/nemotron-3-nano-30b-a3b:free", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 131072, "maxTokens": 4096, "compat": { "supportsStore": false }, "api": "openai-completions" } ] } } }

$openclaw config get models.providers { "inference": { "baseUrl": "https://inference.local/v1", "apiKey": "OPENCLAW_REDACTED", "api": "openai-completions", "models": [ { "id": "nvidia/nemotron-3-nano-30b-a3b:free", "name": "inference/nvidia/nemotron-3-nano-30b-a3b:free", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 131072, "maxTokens": 4096, "compat": { "supportsStore": false }, "api": "openai-completions" } ] } }

PrachiShevate-nv avatar Apr 14 '26 18:04 PrachiShevate-nv

Github issue #1248 closed, but verification on v0.0.23 still reproduced the same problem.

After onboarding the 2nd anthropic style sandbox, the tui or cli in the 2nd sandbox works but the 1st openai style sandbox failed to respond, with error as follows.

 run error: 400 "no compatible inference route available"                                                                                                                       connected | error                                                                                                                                                              agent main | session main (openclaw-tui) | openai/gpt-5.4 | tokens 14k/131k (11%)   

Even after leaving two sandboxes and connect the 1st sandbox again, the tui still has the same error.

tedy-y avatar Apr 23 '26 09:04 tedy-y

This is not fixed, we are waiting from OpenShell to support multiple inference providers:

https://github.com/NVIDIA/OpenShell/issues/776

paritoshd-nv avatar Apr 23 '26 13:04 paritoshd-nv

Closing as resolved — this was addressed by #1999. If you're still seeing this on the latest main, please reopen with reproduction steps. Thanks!

wscurran avatar May 06 '26 20:05 wscurran

Verified on Nemoclaw v0.0.49. It is working as expected. Two sandboxes are working in parallel

PrachiShevate-nv avatar May 22 '26 23:05 PrachiShevate-nv