Lybic Docs

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/core
yarn add @lybic/core
pnpm install @lybic/core

Quick Start

You can grab your API key and base URL from the Lybic Dashboard.

import {  } from '@lybic/core'

const  = new ({
  : 'https://your-base-url.example',
  : 'ORG-your_id_here',
  : 'lysk-your-api-key-here',
})

const  = await .({
  : 'My Sandbox',
  : 60 * 60 * 6,
})

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']
type requestBody = {
    name: string;
    maxLifeSeconds: number;
    projectId?: string;
    specId?: string;
    datacenterId?: string;
}