> ## 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.

# Verouderde SDK's & CLI

<Warning>
  Deze verouderde pagina wordt bewaard voor gebruikers die nog steeds de 1.x- of bèta-SDK-lijn gebruiken. Nieuwe SDK 2.x-integraties moeten de huidige Sandbox-documentatie volgen.
</Warning>

Deze pagina vermeldt de verouderde Novita Agent Sandbox SDK- en CLI-versies voor gebruikers die de 1.x stable- of 1.x beta-SDK-lijn nog nodig hebben.

## Verouderde Novita SDK-versies

Als je op de verouderde 1.x-SDK-lijn moet blijven, pin dan expliciet een van de volgende versies:

| Package                   | Laatste 1.x stable-versie  | Laatste 1.x beta-versie      |
| ------------------------- | -------------------------- | ---------------------------- |
| Python SDK                | `novita-sandbox==1.0.5`    | `novita-sandbox==1.2.5b2`    |
| JavaScript/TypeScript SDK | `novita-sandbox@1.0.2`     | `novita-sandbox@1.2.3b1`     |
| CLI                       | `novita-sandbox-cli@1.0.4` | `novita-sandbox-cli@1.2.3b1` |

## Installatie

### Verouderde stable-SDK installeren

<CodeGroup>
  ```bash JavaScript & TypeScript icon="terminal" theme={"system"}
  npm i novita-sandbox@1.0.2
  ```

  ```bash Python icon="terminal" theme={"system"}
  pip install novita-sandbox==1.0.5
  ```
</CodeGroup>

### Verouderde stable-CLI installeren

<CodeGroup>
  ```bash Bash icon="terminal" theme={"system"}
  npm i -g novita-sandbox-cli@1.0.4
  ```
</CodeGroup>

### Verouderde beta-SDK installeren

<CodeGroup>
  ```bash JavaScript & TypeScript icon="terminal" theme={"system"}
  npm i novita-sandbox@1.2.3b1
  ```

  ```bash Python icon="terminal" theme={"system"}
  pip install novita-sandbox==1.2.5b2
  ```
</CodeGroup>

### Verouderde beta-CLI installeren

<CodeGroup>
  ```bash Bash icon="terminal" theme={"system"}
  npm i -g novita-sandbox-cli@1.2.3b1
  ```
</CodeGroup>

## Configuratie instellen

Verouderde SDK-versies gebruiken standaard `sandbox.novita.ai`. Je hoeft alleen je Novita API-sleutel te configureren.

```bash Bash icon="terminal" theme={"system"}
export NOVITA_API_KEY="<Your Novita AI API Key>"
```

## Voorbeelden

Hieronder staat een voorbeeld dat laat zien hoe je via de SDK een sandbox maakt en opgegeven opdrachten uitvoert.

<CodeGroup>
  ```js JavaScript & TypeScript icon="js" theme={"system"}
  import { Sandbox } from 'novita-sandbox/code-interpreter'

  const sbx = await Sandbox.create()
  const execution = await sbx.commands.run('ls -l')
  console.log(execution)

  await sbx.kill()
  ```

  ```python Python icon="python" theme={"system"}
  from novita_sandbox.code_interpreter import Sandbox

  sbx = Sandbox.create()
  execution = sbx.commands.run('ls -l')
  print(execution)

  sbx.kill()
  ```
</CodeGroup>

Hieronder staat een voorbeeld dat laat zien hoe je de Novita Sandbox CLI gebruikt.

<CodeGroup>
  ```bash Bash icon="terminal" theme={"system"}
  # Authentication in CLI
  novita-sandbox-cli auth login

  # Start sandbox and connect to terminal
  novita-sandbox-cli sandbox spawn <template-id>

  # List sandboxes
  novita-sandbox-cli sandbox list

  # Shutdown running sandboxes
  novita-sandbox-cli sandbox kill <sandbox-id>
  ```
</CodeGroup>
