iOS and Android SDKs for your own mobile app
Add your Askocto agent to a native app with the new iOS and Android SDKs, including streaming replies and client-side tools.
You can now put your agent inside a native mobile app. The iOS and Android SDKs give you a typed client for conversations, streaming replies and tools that run on the device.
iOS
Add the Swift Package Askocto to an app that targets iOS 16 or later. Create an OctoClient, start a Conversation and read replies as an async sequence of StreamEvent values. A SwiftUI guide covers drawing the chat.
Android
Add co.askocto:sdk to your Gradle dependencies. The Kotlin OctoClient works the same way and exposes streaming as a Kotlin Flow.
What both SDKs include
ConversationandMessagefor history and sendingChatResponsefor a complete answer andStreamEventfor live updates (messageDelta,messageDone,toolCallanderror)ClientToolfor actions that run in your app, such as opening a screenUserIdentityto recognize signed-in customersOctoErrorfor typed failures
Get started
Create an API key in Settings > API keys, then follow the quickstart for your platform. Your agent's sources, procedures and actions work the same as they do on the web.
Start with the iOS quickstart or the Android quickstart, and see the SDK overview for what they share.
See every update in one place.