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

# Installation

> Add FileKit to your Kotlin Multiplatform project and set up each platform

FileKit is published on Maven Central under the `io.github.vinceglb` group. Add the modules you need to your shared module's `commonMain` dependencies. If some of your targets aren't supported by a module (for example `filekit-dialogs` on watchOS, or Compose modules on Linux and Windows native), add it to an [intermediate source set](https://filekit.mintlify.site/platform-support.md#use-platform-specific-apis-from-shared-code) instead.

## Choose your modules

| You want to… | Add |
| - | - |
| Show native pickers and save dialogs from Compose | `filekit-dialogs-compose` |
| Show native dialogs from ViewModels, shared logic, or non-Compose UI | `filekit-dialogs` |
| Read, write, and manage files without dialogs | `filekit-core` |
| Display a `PlatformFile` image with Coil 3 | `filekit-coil` |

`filekit-dialogs-compose` includes `filekit-dialogs`, which includes `filekit-core`.

## Add the dependencies

> [tab] Dialogs
>
> FileKit can helps you to display dialogs to the user like file, directory and photo pickers, save dialogs, camera and more. FileKit dialogs are available in two flavors:
>
> ```kotlin build.gradle.kts theme={null}
> // Enables FileKit dialogs without Compose dependencies
> implementation("io.github.vinceglb:filekit-dialogs:0.17.0")
>
> // Enables FileKit dialogs with Composable utilities
> implementation("io.github.vinceglb:filekit-dialogs-compose:0.17.0")
> ```
>
> ```toml libs.versions.toml theme={null}
> [versions]
> filekit = "0.17.0"
>
> [libraries]
> filekit-dialogs = { module = "io.github.vinceglb:filekit-dialogs", version.ref = "filekit" }
> filekit-dialogs-compose = { module = "io.github.vinceglb:filekit-dialogs-compose", version.ref = "filekit" }
> ```

> [tab] Core only
>
> FileKit provides a platform-agnostic file abstraction called `PlatformFile`. It allows you to work with files in a platform-agnostic way. You can create, read, write, and delete files using the `PlatformFile` API.
>
> You can use `PlatformFile` in your project by adding the following dependency:
>
> ```kotlin build.gradle.kts theme={null}
> implementation("io.github.vinceglb:filekit-core:0.17.0")
> ```
>
> ```toml libs.versions.toml theme={null}
> [versions]
> filekit = "0.17.0"
>
> [libraries]
> filekit-core = { module = "io.github.vinceglb:filekit-core", version.ref = "filekit" }
> ```

> [tab] Coil
>
> ```kotlin build.gradle.kts theme={null}
> implementation("io.github.vinceglb:filekit-coil:0.17.0")
> ```
>
> ```toml libs.versions.toml theme={null}
> [versions]
> filekit = "0.17.0"
>
> [libraries]
> filekit-coil = { module = "io.github.vinceglb:filekit-coil", version.ref = "filekit" }
> ```
>
> See [Coil](https://filekit.mintlify.site/integrations/coil.md) to register `PlatformFile` support in your `ImageLoader`.

## Supported targets

| Platform | Kotlin targets |
| - | - |
| Android | Android, minSdk 24 |
| iOS | `iosArm64`, `iosSimulatorArm64` |
| macOS | `macosArm64` |
| JVM desktop | `jvm` (JVM 17) on Windows, macOS, and Linux |
| Linux native | `linuxX64`, `linuxArm64` (core and dialogs) |
| Windows native | `mingwX64` (core and dialogs) |
| watchOS | `watchosArm64`, `watchosDeviceArm64`, `watchosSimulatorArm64` (core only) |
| Web | `js`, `wasmJs` (browser) |

Not every feature exists on every platform. Check the [platform support matrix](https://filekit.mintlify.site/platform-support.md) before calling an API from `commonMain`.

## Platform setup

Most targets need no setup. Do these steps once per app:

| Platform | `filekit-core` | `filekit-dialogs` | `filekit-dialogs-compose` |
| - | - | - | - |
| Android | Automatic (App Startup) | `FileKit.init(activity)` in your activity | Automatic for launchers. `FileKit.init(activity)` if you also call suspend dialog APIs |
| JVM desktop | `FileKit.init(appId)` for app directories | None, plus `jdk.security.auth` on Linux | Same as dialogs |
| Linux native | `FileKit.init(appId)` for app directories | None, plus `libdbus-1` | Not available |
| Windows native | `FileKit.init(appId)` for app directories | None | Not available |
| iOS, macOS, JS, Wasm | None | None | None |
| watchOS | None | Not available | Not available |

The setup pages explain each step:

> [card] [Core setup](https://filekit.mintlify.site/core/setup.md)
>
> Application ID, custom directories, ProGuard rules, and manual Android initialization.

> [card] [Dialogs setup](https://filekit.mintlify.site/dialogs/setup.md)
>
> Android activity registration, Linux packaging, and D-Bus on Linux native.

> [!TIP]
>
> Some features need extra platform configuration, such as a `FileProvider` to share or open files on Android. Each feature page lists what it needs.

## Next steps

* Follow the [Quickstart](https://filekit.mintlify.site/quickstart.md) to pick and read your first file.
* Learn the [`PlatformFile`](https://filekit.mintlify.site/core/platform-file) API.
* Set up your [AI assistant](https://filekit.mintlify.site/ai-assistants.md) with the FileKit docs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.