For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
Upgrade your app from supabase-kt v3 to v4. v4 is the first official release of supabase-kt. It moves the library to a new Maven group and package and keeps the v3 API, so the upgrade is mostly a find-and-replace.
For the full details, see the migration guide in the supabase-kt repository on GitHub.
The Maven group ID and the package name change:
io.github.jan-tennert.supabase is now io.supabase.io.github.jan.supabase is now io.supabase.Artifact IDs don't change (auth-kt, postgrest-kt, storage-kt, realtime-kt, functions-kt, supabase-kt, bom, and the plugins), and neither do the package names below the root. For example, io.github.jan.supabase.auth.providers is now io.supabase.auth.providers.
Sessions and other data stored on your users' devices are not affected. v4 reads the sessions, PKCE code verifiers, and resumable upload state saved by v3, so your users stay signed in after you update your app.
Replace the Maven group in your build files, such as build.gradle.kts and libs.versions.toml. Upgrade all supabase-kt modules and plugins, such as compose-auth, compose-auth-ui, and coil3-integration, to 4.0.0-alpha-1 at the same time.
// Before
implementation(platform("io.github.jan-tennert.supabase:bom:3.9.0"))
implementation("io.github.jan-tennert.supabase:auth-kt")
// After
implementation(platform("io.supabase:bom:4.0.0-alpha-1"))
implementation("io.supabase:auth-kt")
Replace the group ID and the package name everywhere else in your project. In IntelliJ IDEA or Android Studio, use Edit > Find > Replace in Files:
io.github.jan-tennert.supabase → io.supabaseio.github.jan.supabase → io.supabaseOr run this command from the root of your project. It works on macOS and Linux.
grep -rlE --null 'io\.github\.jan(-tennert)?\.supabase' --include='*.kt' --include='*.kts' --include='*.gradle' --include='*.java' --include='*.toml' --include='*.properties' --include='*.xml' --include='*.pro' --include='*.txt' --include='*.swift' . \
| xargs -0 perl -pi -e 's/io\.github\.jan-tennert\.supabase/io.supabase/g; s/io\.github\.jan\.supabase/io.supabase/g'
Search your project for io.github.jan once more. These places still build with the old name but stop working:
-keep class io.github.jan.supabase.** { *; }. The rules no longer match, which can cause crashes that only appear in minified release builds.AndroidManifest.xml overrides of the SDK's initializers, such as tools:node="remove" on io.github.jan.supabase.auth.SupabaseInitializer. They are now io.supabase.auth.SupabaseInitializer and io.supabase.storage.SupabaseInitializer.optIn("io.github.jan.supabase.annotations.SupabaseExperimental").v4 declares that it replaces the matching v3 module. If a dependency, such as a plugin or a third-party library you haven't upgraded yet, still pulls in a v3 supabase-kt module, Gradle fails with an error like Cannot select module because of conflict ... Both provide capability 'io.github.jan-tennert.supabase:...'. This stops two copies of the SDK from ending up in your app.
To fix it, find the dependency and upgrade it to a version built on supabase-kt v4.
This check uses Gradle module metadata, so Maven builds don't report the conflict.
./gradlew :app:dependencies | grep io.github.jan-tennert.supabase