SDKs & Libraries

Official and community SDKs for integrating ChaozCode into your applications. Choose your language and get started in minutes.

Official SDKs

Maintained by the ChaozCode team with guaranteed compatibility and regular updates.

🟨

JavaScript / TypeScript

Official

Full-featured SDK for Node.js, browsers, and edge runtimes. TypeScript-first with complete type definitions.

npm install @chaozcode/sdk
v2.4.0 2.1K weekly downloads MIT License
TypeScript ESM/CJS Tree-shakeable Streaming
🐍

Python

Official

Pythonic SDK with async support, type hints, and integration with popular ML frameworks.

pip install chaozcode
v2.3.1 3.5K weekly downloads MIT License
Async/Await Type Hints Pydantic LangChain
🔵

Go

Official

Idiomatic Go SDK with context support, connection pooling, and minimal dependencies.

go get github.com/chaozcode/sdk-go
v1.8.0 Go 1.21+ MIT License
Context Generics Zero Alloc Streaming
🦀

Rust

Official

Safe, fast Rust SDK with async runtime support (Tokio/async-std) and serde integration.

cargo add chaozcode
v1.5.0 Rust 1.70+ MIT/Apache-2.0
Async Serde Tokio WASM

Community SDKs

Community-maintained SDKs. Not officially supported but actively developed.

💎

Ruby

Community

Ruby gem with Rails integration, Faraday support, and ActiveRecord helpers.

gem install chaozcode
v1.2.0 Ruby 3.0+
🐘

PHP

Community

PHP SDK with Laravel and Symfony integration, PSR-18 HTTP client support.

composer require chaozcode/sdk
v1.1.0 PHP 8.1+

Java / Kotlin

Community

JVM SDK with Kotlin coroutines support, Spring Boot integration, and reactive streams.

implementation 'com.chaozcode:sdk:1.0.0'
v1.0.0 Java 17+
🔷

.NET / C#

Beta

.NET SDK with async/await, dependency injection, and ASP.NET Core integration.

dotnet add package ChaozCode.SDK
v0.9.0 .NET 8+

Quick Start Examples

JavaScript

import { ChaozCode } from '@chaozcode/sdk';

const client = new ChaozCode({ apiKey: process.env.CHAOZCODE_API_KEY });

// Store a memory
await client.memory.store({
  id: 'user-preference',
  content: 'User prefers dark mode',
  tags: ['preferences', 'ui']
});

// Search memories
const results = await client.memory.search('user preferences');

Python

from chaozcode import ChaozCode

client = ChaozCode(api_key=os.environ["CHAOZCODE_API_KEY"])

# Store a memory
client.memory.store(
    id="user-preference",
    content="User prefers dark mode",
    tags=["preferences", "ui"]
)

# Search memories
results = client.memory.search("user preferences")

SDK Feature Comparison

Feature JavaScript Python Go Rust
Memory Operations
Streaming Responses
Async/Await
Type Definitions ✓ (TS) ✓ (hints)
Retry Logic
Rate Limiting
WASM Support -
Edge Runtime - -