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

# Legacy-SDKs & CLI

<Warning>
  Diese Legacy-Seite wird für Benutzer beibehalten, die noch die SDK-Reihe 1.x oder Beta verwenden. Neue SDK-2.x-Integrationen sollten der aktuellen Sandbox-Dokumentation folgen.
</Warning>

Diese Seite listet die Legacy-Versionen des Novita Agent Sandbox SDK und der CLI für Benutzer auf, die weiterhin die stabile SDK-Reihe 1.x oder die 1.x-Beta-Reihe benötigen.

## Legacy-Versionen des Novita SDK

Wenn Sie bei der Legacy-SDK-Reihe 1.x bleiben müssen, pinnen Sie explizit eine der folgenden Versionen:

| Paket                     | Letzte stabile 1.x-Version | Letzte 1.x-Beta-Version      |
| ------------------------- | -------------------------- | ---------------------------- |
| 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` |

## Installation

### Stabiles Legacy-SDK installieren

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

### Stabile Legacy-CLI installieren

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

### Legacy-Beta-SDK installieren

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

### Legacy-Beta-CLI installieren

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

## Einrichtung der Konfiguration

Legacy-SDK-Versionen verwenden standardmäßig `sandbox.novita.ai`. Sie müssen nur Ihren Novita-API-Schlüssel konfigurieren.

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

## Beispiele

Unten finden Sie ein Beispiel, das zeigt, wie Sie über das SDK eine Sandbox erstellen und angegebene Befehle ausführen.

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

Unten finden Sie ein Beispiel, das zeigt, wie Sie die Novita Sandbox CLI verwenden.

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