Skip to main content
LangChain is a popular framework for building AI agents. The ConTree integration provides a 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

  1. Install the dependencies:
  2. Set up Nebius IAM token and base URL:
  3. Set up your LLM provider credentials (e.g. for Anthropic):