Install with an AI agent
Have a coding agent add the Tugboat SDK to your app and wire it in.
A coding agent such as Claude Code, Cursor or Codex can add the Tugboat SDK to your app for you: install the package, start it, name your screens, connect your network client and analytics, and check the result.
Instructions for your agentFor Flutter apps, use the agent instructions in the SDK repository, described below. For native Android, iOS and React Native apps, the Tugboat team gives you a setup prompt during onboarding. Until then, point your agent at the platform's page in these docs.
Flutter
The SDK repository includes step-by-step instructions written for coding agents: tugboat-integrate-flutter.
- Open your Flutter app's repository in your coding agent.
- Ask the agent to follow the instructions at that link to add Tugboat to your app. Tell it where your SDK key lives (for example, an environment file or a
--dart-definevalue). Don't paste the key into the chat. - Review the agent's changes and its report before you merge.
The instructions have the agent:
- Look through your app first: its navigators and route names, sheets and dialogs, tabs, HTTP clients, analytics, and any session replay tool you already use.
- Add
tugboat(andtugboat_dioif you use Dio). - Make sure Tugboat only runs on Android and iOS.
- Wrap your app and start the SDK with your SDK key.
- Add a Tugboat observer to every navigator, and give routes and sheets names such as
/orders/:id. - Replace an existing session replay tool, keeping its masking.
- Connect your analytics, user identity and Dio client, keeping IDs out of recorded paths.
- Check the result on a device, including masking, and report what it did.
If the agent can't find an SDK key, it sets everything up with capture turned off and tells you.
Name the important parts of your app
After the SDK is installed, you can have your agent add tags to the controls in your key journeys, so Tugboat can name them reliably. Use the tagging prompt in the SDK repository. It works for Flutter, SwiftUI, Android views and React Native.
Check your agent's work
Whichever way you install the SDK, check these before you ship:
- Capture is turned on only where you expect it.
- Screens have readable names, without IDs or personal data in them.
- Private content is masked. See Privacy and masking.
- Sessions reach Tugboat. Each platform page has a "Verify your setup" section.
Updated about 22 hours ago