Skip to content
QwryAI
Documentation
Pages

Android SDK

Android SDK Overview

Meet the QwryAI Android SDK, a Kotlin library that puts your agent inside an Android app

What is the QwryAI Android SDK?

The QwryAI Android SDK is a Kotlin library, built on coroutines, that connects your app to a QwryAI agent. It has no screens of its own; you draw the chat. It gives you:

  • Streaming answers through send, with handlers for each piece of text and each tool call
  • Client-side tools: your agent's Run client-side code actions run as Kotlin functions on the device
  • User identity with a signed JWT, plus an automatic ID for each install
  • Conversation history with cursor-based pages
  • One exception type, QwryException, with stable error codes
  • Ready-made state holders, ConversationState and ConversationListState, that expose chats as StateFlows for Jetpack Compose or views

Requirements

Android 7.0 (API 24) or later. Kotlin coroutines come with the SDK; it has no other dependencies. See Installation & Quickstart for the full list and setup.

Rate limits

QwryAI allows each install 1,000 requests every 10 seconds for each agent. Past that, calls throw a QwryException with the code RATE_LIMIT_TOO_MANY_REQUESTS and isRateLimited == true. See Error Handling.

Next steps

Explore the documentation