Skip to main content

Create an Account

If you don’t have a Novita account, sign up first. For details, please refer to Quickstart guide. New users can complete a quick account setup survey to claim $100 in free Sandbox credits. No credit card is required.

Create API Key

Navigate to the Novita Key Management page, create an API key, and save the API key value for use in subsequent steps.

Install SDK

You can install the Novita SDK by executing the following commands.

Configure Environment Variables

Create a .env file in your project folder if it does not exist, and configure your API key.
For JavaScript and TypeScript projects, you need to import the dotenv/config package in your project; for Python projects, you need to import the dotenv library in your project and call the load_dotenv method to load environment variables. For details, please refer to the example.
.env
Or you can configure the API key by setting an environment variable in your terminal.
Bash

Use SDK to Start Agent Sandbox

Below is a simple example showing how to create a sandbox, execute code inside it, and list files in the sandbox filesystem.
Execute the following commands to run the code.
Last modified on June 24, 2026