> This page is for v0.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemoclaw/llms.txt.

# Switch Inference Providers

> Move a NemoClaw-managed sandbox to another inference provider.

Move a sandbox to another provider family while keeping the selected inference path, agent configuration, and host registry aligned.
Use onboarding first when the target is neither `compatible-endpoint` nor `compatible-anthropic-endpoint` and is not registered.
The compatible endpoint workflow below can register an absent custom provider from complete route metadata.

## Recreate a Deep Agents Sandbox

Named recreation replaces the sandbox after backing up its native home.
For a managed image, when NemoClaw can verify that the requested provider or model differs from the recorded selection, it restores saved state while keeping the replacement's generated `/sandbox/.deepagents/config.toml`.
This prevents saved model and endpoint preferences from overriding the new selection.
The backup retains the previous configuration for manual recovery of custom settings.
Review [shared-gateway effects](#account-for-shared-gateways) before selecting a shared route.

Record your existing default sandbox's name before starting.
Onboarding selects the requested sandbox as the default before final verification.
A later verification failure can leave that default changed.
Recreate the named sandbox and choose the requested provider and model:

```bash
nemo-deepagents onboard --fresh --name <sandbox-name> --recreate-sandbox
```

NemoClaw refuses this configuration preservation before deleting the source if the archived `.deepagents` directory is a symbolic link.
Resolve the reported error before retrying.
For unchanged or unverifiable selections, or custom images, recreation restores the saved configuration.
If restored preferences conflict with the requested selection, validation stops before NemoClaw updates the registry.
The replacement still exists, but its live route is unverified.
Keep the backup and follow the printed recovery instructions.
Do not rebuild that replacement without verified registry metadata.

## Validate a Different Deep Agents Selection

After the onboarding attempt, restore your previous default if it changed:

```bash
nemo-deepagents use <previous-default-sandbox-name>
```

After successful onboarding, inspect the recreated sandbox's route:

```bash
nemo-deepagents <sandbox-name> status
nemo-deepagents <sandbox-name> inference get
```

Require the output to report the requested provider and model.
Complete [Verify the Sandbox Inference Route](../validate-inference/verify-inference-route) using the recreated sandbox name for each command.
Use the named `inference get` command above instead of the default-sandbox form.
After validation succeeds, follow [Choose the Default Sandbox](../../manage-sandboxes/operate-sandboxes/run-deep-agents-code#choose-the-default-sandbox) to select it.
If validation fails, keep the backup and follow the reported recovery instructions.

## Account for Shared Gateways

Shared-route sandboxes on one gateway use one live route, even when NemoClaw records different intended routes for them.
Review [Use Shared Gateway Routes](use-shared-gateway-routes) before changing a provider that another registered sandbox shares.
For a shared-route switch, provider-global endpoint, API-family, credential, and incomplete-metadata conflicts stop the command before mutation.
Native hosted attachments, qualified Hermes local attachments, and recorded OpenClaw native local attachments do not change that shared route.

## Related Topics

* [View the Active Inference Route](view-active-inference-route) to inspect the route before and after a switch.
* [Use Shared Gateway Routes](use-shared-gateway-routes) when multiple sandboxes use one gateway.
* [Switch Models](switch-models) when the provider does not change.
* [Set Up an OpenAI-Compatible Endpoint](../custom-endpoints/set-up-openai-compatible-endpoint) to register a custom route through onboarding.