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

# Configure the SDK

> Initialize the Encore SDK with your API key at app launch.

## Overview

As soon as your app launches, you need to configure the SDK with your **API Key**. Retrieve your publishable **Live** key yourself from the Dashboard under **Settings → Project API Keys** (use the **Test** key for staging and local development).

***

## Initialize Encore in Your App

Call `configure()` in your `Application.onCreate()` so the SDK is ready before any Activity starts.

```kotlin theme={null}
// YourApplication.kt

import android.app.Application
import com.encorekit.encore.Encore

class YourApplication : Application() {
    override fun onCreate() {
        super.onCreate()

        // Configure Encore with your API key
        Encore.shared.configure(this, apiKey = "pk_your_api_key_here")
    }
}
```

<Warning>
  Make sure your custom `Application` class is registered in `AndroidManifest.xml`:

  ```xml theme={null}
  <application
      android:name=".YourApplication"
      ... >
  ```
</Warning>

This configures a shared instance of `Encore`, the primary class for interacting with the SDK's API. Make sure to replace `pk_your_api_key_here` with your public API key.

<Note>
  Can't find your API key? Open your project's **Settings → Project API Keys** in the [Encore Dashboard](https://dashboard.encorekit.com) and copy the **Live** key (or **Test** for non-production builds).
</Note>

***

## Next Steps

Now that Encore is configured, you're ready to:

* [User Management](./user-management) - Identify users for entitlement tracking
* [Present Offers](./present-offers) - Show promotional offers and handle purchase results
