> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spatius.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct Mode Integration for Android

> Use the Android AvatarKit SDK to connect directly to Motion Server with a Session Token.

Use this guide when your Android app already has avatar speech audio and needs AvatarKit to send that audio to Motion Server, receive motion data, and render the avatar locally.

<Card title="Android Direct Mode demo" icon="android" href="https://github.com/spatius-ai/spatius-avatar-demo/tree/main/direct-mode/clients/android" horizontal>
  Kotlin / Compose reference implementation for the Direct Mode path.
</Card>

## SDK package setup

Add the dependency to your `build.gradle.kts`:

```kotlin title="build.gradle.kts" theme={null}
dependencies {
    implementation("ai.spatius:avatarkit:1.2.0")
}
```

## Integration flow

<Steps>
  <Step title="Create credentials">
    Create an App ID and Avatar ID in [Spatius Studio](https://app.spatius.ai), then mint a Session Token from your backend. See [Credentials](/getting-started/credentials).
  </Step>

  <Step title="Initialize AvatarKit">
    Initialize the Android SDK with your App ID, Avatar ID, Session Token, and selected region.
  </Step>

  <Step title="Send avatar speech audio">
    Send PCM16 mono avatar speech audio to AvatarKit. Motion Server returns motion data, and AvatarKit renders the avatar locally. For audio source and timing guidance, see [Audio](/concepts/audio).
  </Step>
</Steps>

## Next steps

<CardGroup cols={2}>
  <Card title="Android SDK reference" icon="book" href="/sdk-reference/android-sdk/api-reference">
    Complete Android API documentation.
  </Card>

  <Card title="Browse all demos" icon="github" href="/resources/demo-projects">
    Every runnable demo by platform and integration path.
  </Card>
</CardGroup>
