Documentation Index Fetch the complete documentation index at: https://novita.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Novita Agent Sandbox provides a compatibility API that allows you to use the E2B SDK and CLI. This is useful if you are already using the E2B SDK and CLI and want to switch to Novita Agent Sandbox. However, we recommend using the Novita Agent Sandbox SDK to access all features.
Installation
Code Interpreter SDK
JavaScript & TypeScript
Python
npm i @e2b/code-interpreter@beta
Core SDK
JavaScript & TypeScript
Python
Desktop SDK
JavaScript & TypeScript
Python
CLI
Setup Configuration
You need to set the following environment variables in your project to use the E2B SDK and CLI with Novita Agent Sandbox.
export E2B_DOMAIN = sandbox . novita . ai
export E2B_API_KEY = "<Your Novita AI API Key>"
Examples
Below is an example showing how to create a sandbox through the SDK and run specified commands using E2B SDK.
JavaScript & TypeScript
Python
import { Sandbox } from '@e2b/code-interpreter'
// or import { Sandbox } from 'e2b'
// or import { Sandbox } from '@e2b/desktop'
const sbx = await Sandbox . create ()
const execution = await sbx . commands . run ( 'ls -l' )
console . log ( execution )
await sbx . kill ()
Below is an example showing how to use the E2B CLI with Novita Agent Sandbox.
export E2B_DOMAIN = sandbox . novita . ai
# Authentication in CLI
e2b auth login
# Start sandbox and connect to terminal
e2b sandbox spawn < template-i d >
# List sandboxes
e2b sandbox list
# Shutdown running sandboxes
e2b sandbox kill < sandbox-i d >