Development Environment

This guide provides detailed instructions for setting up and working with Cyne AI in a local development environment.

Prerequisites

Ensure the following are installed:

Required

  • Node.js 23+

  • pnpm

  • Git

  • VS Code for development

  • Docker for database management

  • CUDA Toolkit for GPU acceleration


Initial Setup

1. Repository Setup

Clone the Cyne AI repository and install dependencies:

# Clone the repository
git clone https://github.com/cyne-ai/cyne
cd cyne

# Install dependencies
pnpm install

2. Environment Configuration

Set up your development environment:

Update essential variables in .env:


3. Local Model Setup

For local inference without external APIs:


Development Workflow

Running the Development Server

Start the development server with specific characters or configurations:


Useful Development Commands

  • pnpm run build: Build the project.

  • pnpm run clean: Clean build artifacts.

  • pnpm run dev: Start the development server.

  • pnpm run test: Run all tests.

  • pnpm run lint: Lint the codebase.


Database Development

For development, use SQLite:


In-Memory Database (For Testing)

Use an in-memory database for testing:


Testing

Running Tests


Writing Tests

Use the provided utilities for testing:


Plugin Development

Creating a New Plugin

Plugins can extend Cyne AI’s capabilities:


Debugging

VS Code Configuration

Set up a debug configuration for Cyne AI:


This guide ensures that your Cyne AI development environment is set up efficiently and provides the tools needed for productive local development. Let me know if you need additional sections or customization!

Last updated