Skip to main content

casama_sdk 0.2.0 copy "casama_sdk: ^0.2.0" to clipboard
casama_sdk: ^0.2.0 copied to clipboard

Dart SDK for Casama, the self-hostable home for AI bots with their own computers. Typed API client, auth and live run event streams.

casama_sdk #

Dart SDK for Casama, the open-source, self-hostable home for AI bots with their own computers.

  • Typed client for the whole Casama API (generated from its OpenAPI document, casama_api)
  • Sign in with email and password (Supabase Auth behind your Casama server)
  • Live run events: watchRun streams a run's events in order, with catch-up after reconnects
import 'package:casama_sdk/casama_sdk.dart';

final client = await CasamaClient.connect('https://casama.example.com');
await client.signIn('you@example.com', 'password');
final sent = (await client.chat.sendMessage(
  id: conversationId,
  sendMessageRequest: SendMessageRequest(text: 'Summarize today'),
)).data!;
await for (final e in watchRun(client, sent.runId)) {
  if (e is MessageDeltaItem) print(e.event.payload.text);
}

See example/example.dart, examples/sdk_sample in the repository for a complete app, and the SDK guide.

0
likes
160
points
178
downloads

Documentation

API reference

Publisher

verified publishercasama.ai

Weekly Downloads

Dart SDK for Casama, the self-hostable home for AI bots with their own computers. Typed API client, auth and live run event streams.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#ai #agents #sdk #api-client

License

Apache-2.0 (license)

Dependencies

casama_api, crypto, dio, http

More

Packages that depend on casama_sdk