Cosmo Realtime SDK
Examples

Examples

Runnable example apps for all three SDKs, with a docs page for each covering what it demonstrates, how it works, and how to run it.

Every example here is real, runnable code in the cosmo-ai examples repo. Each page in this section tells you what the example demonstrates, walks the parts worth copying, and shows what a successful run looks like — the full source lives in the repo, so nothing on these pages is a listing you have to transcribe.

The following table maps each example to its language, its docs page, and what it shows off.

ExampleLanguageWhat it demonstrates
Browser voice pageTypeScript / ReactThe smallest complete browser app: provider, transcript, mic control, one client tool
Voice CLIPythonTwo-way voice from a terminal — OS mic and speaker, live transcript
Agent recipesPythonClient tools, skills, hooks, MCP servers, and an outbound phone call — one small script each
Docs agentTypeScript / ReactClient tools as a live view of your app's state, plus sendContext and a deployable token flow
Squat coachTypeScript / React + PythonA session grounded in analysis done before the call, with a video-replay client tool
Garden doctorTypeScript / ReactA live-camera plant doctor: server locators find what you ask about, the SDK's renderers draw boxes and points over the preview
CartographerSwift (macOS)A native SwiftUI app: typed event stream, Decodable tool args, an app-side hook limit

Two more live in the repo but are covered elsewhere on this site: