ContreeSandbox backend that lets LangChain agents execute code in isolated, reproducible containers.
Integration is available via contree-sdk[langchain], which provides ContreeSandbox — an implementation of BaseSandbox from the deepagents package.
Using ContreeSandbox
Setup
-
Install the dependencies:
-
Set up Nebius IAM token and base URL:
-
Set up your LLM provider credentials (e.g. for Anthropic):