Getting Started

Snapbug now has a browser-first setup:

  1. Add the Snapbug SDK to your app.
  2. Open the Chrome Extension and create a room code.
  3. Connect the app to the extension over WebRTC.
  4. Optionally run the local service if you want Ask AI and QA analysis workflows.
  • Chrome Extension is the default product path for inspection and bug reporting.
  • Local service is optional and only needed for AI workflows (Ask AI and QA analysis).
  • Desktop app is a fully supported alternative to the extension — a standalone window with the local service bundled in. Pick whichever fits your workflow.

Install with an AI agent

Your coding agent (Claude Code, Cursor, Codex, Copilot and others) can do the whole integration for you: dependencies with the release no-op twin, the start call, network hooks, and a build to verify.

Install the Snapbug skill once:

npx skills add snapbug-ai/skills

In Claude Code you can use the plugin marketplace instead: /plugin marketplace add snapbug-ai/skills, then /plugin install snapbug@snapbug.

Then ask the agent to add Snapbug to this app. Without the skill, paste this prompt. It points the agent to the same instructions:

Add the Snapbug SDK to this project. Follow https://snapbug.ai/llms-full.txt exactly, then build the debug and release variants to verify.

Prefer to do it by hand? Read on.

Android install

Add the runtime artifact in debug and the no-op artifact in release:

dependencies {
    debugImplementation("ai.snapbug:snapbug:1.0.4")
    releaseImplementation("ai.snapbug:snapbug-no-op:1.0.4")
}

This one pair is all-in-one: the OkHttp, Ktor, gRPC and Room integrations are inside it, so do not add per-plugin artifacts (they cause Duplicate class in release). Check the toolchain floor (compileSdk 36, AGP 8.6.0, Gradle 8.7, Kotlin Gradle plugin 2.2).

Initialize the SDK in your launcher Activity:

import io.snapbug.sdk.Snapbug
import io.snapbug.sdk.start
 
class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Snapbug.start(this)
    }
}

One line enables all plugins — network, database, analytics, crash reporter, logs, deep links, device info — and the bubble overlay. You can also pass configuration if you need to tune plugins or overlay settings:

Snapbug.start(this) {
    overlay = OverlayMode.BUBBLE
    crashReporter { catchFatalErrors = true }
    debugFeedback { screenNameProvider = { "Home" } }
}

Connect to the Chrome Extension

  1. Install the Snapbug Chrome Extension.
  2. Open the extension and create a room code.
  3. In your app, open the Snapbug overlay.
  4. Enter or scan the room code.
  5. Wait until the connection state becomes Connected.

This path does not require ADB, port forwarding, or a shared Wi-Fi network.

Auto-connect by project key

Skip the QR code and the room code entirely by giving the SDK your project key — the same sb_pub_… key used for release reports. A device started with a project key joins its project's lobby on its own and connects to whichever desktop claims it; no code change is needed to re-pair it later.

Get the key from the Desktop app: open the project's settings and enable the release inbox to generate one, or, once a device shows up under Company devices, press Take to claim it for this desktop.

Snapbug.start(this) {
    projectKey = "sb_pub_…"
}

Without touching code, the same key can live in AndroidManifest.xml instead:

<meta-data android:name="ai.snapbug.KEY" android:value="sb_pub_…" />

A secret key (sb_sec_…) is never accepted here — only sb_pub_… grants lobby presence.

Optional: local service

Install the local service only if you need AI actions such as Ask AI or QA analysis (AI-generated steps to reproduce and QA notes for bug reports).

brew install snapbug-ai/tap/snapbug
snapbug serve

The service exposes:

  • http://localhost:9090 for Chrome Extension readiness and AI endpoints
  • ws://localhost:9023 and http://localhost:9024 for direct localhost transport

Verify it is running with snapbug status.

Platform notes

  • Android: fully supported.
  • iOS: supported via CocoaPods or the Swift package — import Snapbug then Snapbug.start() in SwiftUI App.init() or UIKit didFinishLaunching. On CocoaPods a release twin (Snapbug-no-op) keeps the inspector out of App Store builds. See iOS SDK.
  • Flutter and React Native: official plugins on top of the native SDK — Snapbug.start() on the Dart/JS side boots the native SDK too, so no MainActivity / AppDelegate code is needed. See Flutter and React Native.
  • Web apps: no published SDK to install — web pages are inspected through the Chrome Extension (an experimental Kotlin/Wasm SDK builds from source, see Web).
  • Desktop app: a standalone inspector window (bundles the local service) — an alternative to the Chrome Extension on macOS, Windows, and Linux.

Next steps