JSPM

loopix-sdk

2.31.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q5511F
  • License MIT

Loopix SDK that give agents cloud environments

Package Exports

  • loopix-sdk
  • loopix-sdk/dist/index.js
  • loopix-sdk/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopix-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Loopix Logo

Last 1 month downloads for the JavaScript SDK

What is Loopix?

Loopix is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.

Run your first Sandbox

1. Install SDK

npm i loopix-sdk

2. Get your Loopix API key

  1. Sign up to Loopix here.
  2. Get your API key here.
  3. Set environment variable with your API key
LOOPIX_API_KEY=lpx_***

3. Start a sandbox and run commands

import Sandbox from 'loopix'

const sandbox = await Sandbox.create()
const result = await sandbox.commands.run('echo "Hello from Loopix!"')
console.log(result.stdout) // Hello from Loopix!

4. Code execution with Code Interpreter

If you need runCode(), install the Code Interpreter SDK:

npm i @loopix/code-interpreter
import { Sandbox } from '@loopix/code-interpreter'

const sandbox = await Sandbox.create()
const execution = await sandbox.runCode('x = 1; x += 1; x')
console.log(execution.text)  // outputs 2

5. Check docs

Visit Loopix documentation.

6. Loopix cookbook

Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.