
Inspect app at runtime: browse live database tables and rows, capture every API call and logs, and get AI-powered explanations for crashes and failures.
See inside your Android app while it runs: its database, API calls, logs and crashes, explained.
![]() |
![]() |
![]() |
![]() |
| Data: live database tables | Network: every API call | Failures in plain words | Crashes, explained by AI |
Tracewell is a debug-only inspector that lives inside your app. Open it from a launcher shortcut or a notification and see, while the app runs:
It goes in debug builds only. A no-op twin keeps release builds free of any Tracewell code, and the build checks it.
Tracewell is on Maven Central. In app/build.gradle.kts:
dependencies {
debugImplementation("io.github.dirajnaik20:tracewell-android:0.1.0")
releaseImplementation("io.github.dirajnaik20:tracewell-android-noop:0.1.0") // only needed if your code calls Tracewell
}No code is needed: Tracewell starts itself, finds the app's database and adds a "Tracewell" launcher shortcut.
Tracewell.open(context) opens it from code.
Tracewell opens the app's own SQLite database, Room or plain SQLite, right on the phone. There is no export step and no Android Studio needed.
![]() |
![]() |
| Every table, with the one the app just wrote to | Rows, 50 per page |
With several databases, Tracewell shows the largest one that isn't made by a well-known library (WorkManager,
Firebase, Chucker and similar). Pick one yourself with Tracewell.install(context, databaseName = "app.db").
The Network tab needs one line, because OkHttp has no global hook. Add the interceptor where the app builds its
OkHttpClient, in debug builds only, before any interceptor that encrypts or compresses bodies:
debugImplementation("io.github.dirajnaik20:tracewell-okhttp:0.1.0")
releaseImplementation("io.github.dirajnaik20:tracewell-okhttp-noop:0.1.0") // and the same for every other non-debug build type
OkHttpClient.Builder()
.apply { TracewellInterceptor().takeIf { BuildConfig.DEBUG }?.let { addInterceptor(it) } }Until it is added, the Network tab shows the code to paste. The interceptor never changes a request or a response.
Tracewell ships with no AI key: each developer or tester uses their own. Create one under API Keys in Groq Console, then either:
Paste it in Tracewell. On the crash card (or under Explain on an error line), paste the key and tap Save. It is kept in the app's private storage on that phone only, never in the build, and needs no rebuild.
Or set it for the whole team's debug builds in local.properties (never commit this file):
TRACEWELL_AI_KEY=gsk_...Expose it through a debug-only BuildConfig field and call
Tracewell.install(context, aiKey = BuildConfig.TRACEWELL_AI_KEY) from your Application.onCreate, not from an
Activity: Tracewell can be opened from its shortcut or notification without your Activity running. A key set this
way is built into debug APKs, so only share those builds with people who should have the key.
A key pasted on the phone is used before the one from code. If a key is refused, Tracewell asks for a new one.
When you ask for an explanation, Tracewell sends the crash and stack trace or the selected error
log line, plus up to 50 preceding log lines, to the AI provider. It masks recognizable tokens, API keys,
email addresses and passwords first. The default model is openai/gpt-oss-120b on Groq.
To use another OpenAI-compatible API, pass its base URL and a model it serves:
Tracewell.install(context, aiBaseUrl = "https://api.openai.com/v1", aiModel = "gpt-4o-mini")OpenRouter, Together and a local Ollama (http://10.0.2.2:11434/v1 from the emulator) work the same way.
A plain http:// address also needs the app to allow cleartext traffic in debug builds.
A silent notification shows the call count, failures, average time and the newest five calls (four when there is a
crash banner). Tap a call to open it in Tracewell, or use Open and Clear. On Android 13 and newer, choose
Turn on in the Network tab to grant notification permission. Call
Tracewell.install(context, showNotification = false) to turn it off.
compileSdk 35. The no-op artifacts have no
compileSdk requirement.Tracewell from Kotlin: the public classes are written with Kotlin 2.0
metadata. The rest is built with Kotlin 2.2 but only read at run time.ContentProvider, so apps that remove Startup's
provider from their manifest still work with no extra code.The versions behind these requirements are in gradle/libs.versions.toml. To see why a
library version was chosen, look for minCompileSdk in its aar-metadata.properties.
debugImplementation. It starts itself,
adds the launcher shortcut, and opens Tracewell in its own task.releaseImplementation.tracewell-core. It is written with Compose
Multiplatform; commonMain is shared, and androidMain
holds log capture and the crash hook. The iOS side only shows sample data so far and is
not published.Try your changes in another app on this machine by publishing to your local Maven folder (~/.m2):
./gradlew publishToMavenLocal
Add mavenLocal() to the other app's repositories in settings.gradle.kts, and use the coordinates from Install.
./gradlew :samples:android:installDebug
./gradlew :sdk:testAndroidHostTest :tracewell-android:testDebugUnitTest :tracewell-okhttp:testDebugUnitTest
./gradlew :sdk:connectedAndroidDeviceTest
./gradlew :samples:android:verifyReleaseHasNoTracewell
./gradlew :sdk:iosSimulatorArm64Test -Ptracewell.ios=true, or open
/iosApp in Xcode.Publishing a release to Maven Central is described in RELEASING.md.
Copyright 2026 Diraj Naik
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
See inside your Android app while it runs: its database, API calls, logs and crashes, explained.
![]() |
![]() |
![]() |
![]() |
| Data: live database tables | Network: every API call | Failures in plain words | Crashes, explained by AI |
Tracewell is a debug-only inspector that lives inside your app. Open it from a launcher shortcut or a notification and see, while the app runs:
It goes in debug builds only. A no-op twin keeps release builds free of any Tracewell code, and the build checks it.
Tracewell is on Maven Central. In app/build.gradle.kts:
dependencies {
debugImplementation("io.github.dirajnaik20:tracewell-android:0.1.0")
releaseImplementation("io.github.dirajnaik20:tracewell-android-noop:0.1.0") // only needed if your code calls Tracewell
}No code is needed: Tracewell starts itself, finds the app's database and adds a "Tracewell" launcher shortcut.
Tracewell.open(context) opens it from code.
Tracewell opens the app's own SQLite database, Room or plain SQLite, right on the phone. There is no export step and no Android Studio needed.
![]() |
![]() |
| Every table, with the one the app just wrote to | Rows, 50 per page |
With several databases, Tracewell shows the largest one that isn't made by a well-known library (WorkManager,
Firebase, Chucker and similar). Pick one yourself with Tracewell.install(context, databaseName = "app.db").
The Network tab needs one line, because OkHttp has no global hook. Add the interceptor where the app builds its
OkHttpClient, in debug builds only, before any interceptor that encrypts or compresses bodies:
debugImplementation("io.github.dirajnaik20:tracewell-okhttp:0.1.0")
releaseImplementation("io.github.dirajnaik20:tracewell-okhttp-noop:0.1.0") // and the same for every other non-debug build type
OkHttpClient.Builder()
.apply { TracewellInterceptor().takeIf { BuildConfig.DEBUG }?.let { addInterceptor(it) } }Until it is added, the Network tab shows the code to paste. The interceptor never changes a request or a response.
Tracewell ships with no AI key: each developer or tester uses their own. Create one under API Keys in Groq Console, then either:
Paste it in Tracewell. On the crash card (or under Explain on an error line), paste the key and tap Save. It is kept in the app's private storage on that phone only, never in the build, and needs no rebuild.
Or set it for the whole team's debug builds in local.properties (never commit this file):
TRACEWELL_AI_KEY=gsk_...Expose it through a debug-only BuildConfig field and call
Tracewell.install(context, aiKey = BuildConfig.TRACEWELL_AI_KEY) from your Application.onCreate, not from an
Activity: Tracewell can be opened from its shortcut or notification without your Activity running. A key set this
way is built into debug APKs, so only share those builds with people who should have the key.
A key pasted on the phone is used before the one from code. If a key is refused, Tracewell asks for a new one.
When you ask for an explanation, Tracewell sends the crash and stack trace or the selected error
log line, plus up to 50 preceding log lines, to the AI provider. It masks recognizable tokens, API keys,
email addresses and passwords first. The default model is openai/gpt-oss-120b on Groq.
To use another OpenAI-compatible API, pass its base URL and a model it serves:
Tracewell.install(context, aiBaseUrl = "https://api.openai.com/v1", aiModel = "gpt-4o-mini")OpenRouter, Together and a local Ollama (http://10.0.2.2:11434/v1 from the emulator) work the same way.
A plain http:// address also needs the app to allow cleartext traffic in debug builds.
A silent notification shows the call count, failures, average time and the newest five calls (four when there is a
crash banner). Tap a call to open it in Tracewell, or use Open and Clear. On Android 13 and newer, choose
Turn on in the Network tab to grant notification permission. Call
Tracewell.install(context, showNotification = false) to turn it off.
compileSdk 35. The no-op artifacts have no
compileSdk requirement.Tracewell from Kotlin: the public classes are written with Kotlin 2.0
metadata. The rest is built with Kotlin 2.2 but only read at run time.ContentProvider, so apps that remove Startup's
provider from their manifest still work with no extra code.The versions behind these requirements are in gradle/libs.versions.toml. To see why a
library version was chosen, look for minCompileSdk in its aar-metadata.properties.
debugImplementation. It starts itself,
adds the launcher shortcut, and opens Tracewell in its own task.releaseImplementation.tracewell-core. It is written with Compose
Multiplatform; commonMain is shared, and androidMain
holds log capture and the crash hook. The iOS side only shows sample data so far and is
not published.Try your changes in another app on this machine by publishing to your local Maven folder (~/.m2):
./gradlew publishToMavenLocal
Add mavenLocal() to the other app's repositories in settings.gradle.kts, and use the coordinates from Install.
./gradlew :samples:android:installDebug
./gradlew :sdk:testAndroidHostTest :tracewell-android:testDebugUnitTest :tracewell-okhttp:testDebugUnitTest
./gradlew :sdk:connectedAndroidDeviceTest
./gradlew :samples:android:verifyReleaseHasNoTracewell
./gradlew :sdk:iosSimulatorArm64Test -Ptracewell.ios=true, or open
/iosApp in Xcode.Publishing a release to Maven Central is described in RELEASING.md.
Copyright 2026 Diraj Naik
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.