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 receive $100 in promotional Sandbox credits. No credit card is required.

Create API Key

Create an API key on the Novita Key Management page and keep it for later use.

Install SDK

You can install the Novita SDK by executing the following commands. JavaScript & TypeScript SDK
CLI
Python SDK
CLI

Configure Environment Variables

Create a .env file in your project folder if it does not exist, and configure your API key. The SDK reads NOVITA_API_KEY from the environment. dotenv/config in JavaScript and load_dotenv() in Python only load the value into the process environment; you do not need to pass the API key into each example manually. .env
Output
Or you can configure the API key by setting an environment variable in your terminal.
CLI

Start a Sandbox with the SDK

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. index.ts
CLI
main.py
CLI
Last modified on August 13, 2026