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
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-sdk2. Get your Loopix 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-interpreterimport { 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 25. Check docs
Visit Loopix documentation.
6. Loopix cookbook
Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.