HKUDS/nanobot · error · ValueError
Unknown sandbox backend
Error message
Unknown sandbox backend {sandbox!r}. Available: {list(_BACKENDS)} What it means
Raised by wrap_command when the sandbox backend name is not a key in _BACKENDS. The configured sandbox string does not match any registered backend (typo, or backend not available on this platform), so no command wrapper can be produced; the message lists valid backend names.
Solutions
- Set sandbox to one of the names listed in the error message
- Check the sandbox configuration key for typos
- Install/enable the backend package that provides the desired sandbox
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at nanobot/agent/tools/sandbox.py:125 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/nanobot@42f37dc4c0 (2026-08-26).
Data as JSON: /api/errors/b51ba85056931fd4.
Report an issue: GitHub.
Appendix: source
Thrown at nanobot/agent/tools/sandbox.py:125
def wrap_command(
sandbox: str,
command: str,
workspace: str,
cwd: str,
*,
sandbox_ro_binds: Iterable[str] | None = None,
sandbox_rw_binds: Iterable[str] | None = None,
) -> str:
"""Wrap *command* using the named sandbox backend."""
if backend := _BACKENDS.get(sandbox):
return backend(
command,
workspace,
cwd,
sandbox_ro_binds=sandbox_ro_binds,
sandbox_rw_binds=sandbox_rw_binds,
)
raise ValueError(f"Unknown sandbox backend {sandbox!r}. Available: {list(_BACKENDS)}")
View on GitHub (pinned to 42f37dc4c0)