docs/setup/index.md
This guide covers everything you need to add Koin to your project.
Choose your platform to get started:
| Platform | Package | Guide |
|---|---|---|
| Kotlin/JVM | koin-core | Gradle Setup |
| Android | koin-android | Gradle Setup |
| Android + Jetpack Compose | koin-android + koin-compose | Gradle Setup |
| Compose Multiplatform | koin-compose | Gradle Setup |
| Kotlin Multiplatform | koin-core | Gradle Setup |
| Ktor | koin-ktor | Gradle Setup |
For the best experience, we recommend:
See the Compiler Plugin Setup Guide for detailed instructions.
Complete dependency configuration for all platforms:
Detailed guide for the Koin Compiler Plugin:
Legacy setup for KSP-based annotations:
| Koin Version | Kotlin Version | Compiler Plugin |
|---|---|---|
| 4.2.x | 2.3+ | ✅ Recommended |
| 4.1.x | 2.1/2.2+ | ⚠️ KSP only |
| 4.0.x | 1.9/2.0+ | ⚠️ KSP only |
| 3.5.x | 1.8+ | ❌ Not available |
Find all Koin packages on Maven Central.
After setup: