Getting Started
Get started with the Lybic core SDK (TypeScript)
By using the TypeScript SDK, you can build your own AI agents that can interact with the Lybic platform.
Installation
npm install @lybic/coreyarn add @lybic/corepnpm install @lybic/coreQuick Start
You can grab your API key and base URL from the Lybic Dashboard.
import { LybicClient } from '@lybic/core'
const lybic = new LybicClient({
  baseUrl: 'https://your-base-url.example',
  orgId: 'ORG-your_id_here',
  apiKey: 'lysk-your-api-key-here',
})
const sandbox = await lybic.createSandbox({
  name: 'My Sandbox',
  maxLifeSeconds: 60 * 60 * 6,
  shape: 'beijing-2c-4g-cpu',
})Use OpenAPI Types
You can benifit from the OpenAPI types by importing the paths, components and operations types.
import { type paths } from '@lybic/core'
type requestBody = paths['/api/orgs/{orgId}/sandboxes']['post']['requestBody']['content']['application/json']