Skip to content

Track your app’s errors with a Sentry SDK, with no Sentry account (2026)

Your app crashes, and you find out from a customer. With while, its errors arrive through a Sentry SDK, with no Sentry account to open, and a never-seen-before error alerts your AI, which reads the stack trace and fixes it.

By Aloïs Oddon, co-founder of Nextmap. Facts checked on November 19, 2026.

View as Markdown

Track your app’s errors with a Sentry SDK, with no Sentry account: error tracking with a Sentry SDK with Claude Code, Cursor or Codex, on while, hosted in France

The short version. Connect any Sentry SDK to while: your app’s errors are grouped, and a never-seen-before error alerts your AI, which fixes it. What matters, like deleting a database, waits for a person’s approval.

Prerequisites

  • An app in Node.js, Python, Go or any other language that has a Sentry SDK.
  • An AI that works in a terminal: Claude Code, Codex, Cursor or Gemini CLI.

Step 1: Give your AI this message

Open your AI in your app’s folder, and paste this message into it:

The message to give your AI
Connect to while with my account (while.sh/agents), then put my app on while.

Your AI adds while’s MCP server itself. If it asks you to, restart it. On the first call to while, a page opens in your browser. In Claude Code, if it doesn’t open, type /mcp, choose while, then Authenticate. On that page, choose “A new app”, then click Authorize.

Step 2: Stop watching for errors

When a never-seen-before error comes in, your AI is notified, reads the stack trace, fixes the code and offers you the new version.

What your AI does

It adds the Sentry SDK to your app and connects it to SENTRY_DSN, which your app already receives1:

instrument.js
import * as Sentry from '@sentry/node';

Sentry.init({ dsn: process.env.SENTRY_DSN });

It loads the SDK before the rest of your app, as Sentry requires:

package.json
"scripts": {
  "start": "node --import ./instrument.js server.js"
}

There is nothing to open at Sentry and nothing to configure in while: the address points to while, and it works even if your app has no internet access, which is the default. Errors are grouped, and each one keeps its stack trace.

Error tracking with a Sentry SDK with while: credentials kept out of the AI's reach, every call logged in the history, a person's approval for what matters and a daily backup, in France
Around every app, while keeps the credentials, the history, the approvals and the backups.

Understand what is crashing

You, to your AI: What has been crashing since the last deployment?

Your AI reads the grouped errors in while, finds the line at fault, fixes it and deploys again.

Track browser errors too

You, to your AI: Add the browser errors too.

Your AI connects the Sentry SDK in your pages to SENTRY_DSN_PUBLIC, the address made for the browser.

Connect a Python API

You, to your AI: Hook up error tracking for our FastAPI API.

The Sentry SDK for Python connects the same way, with the same variable:

main.py
import os
import sentry_sdk

sentry_sdk.init(dsn=os.environ.get("SENTRY_DSN"))

Go back to the previous version

You, to your AI: Go back to the previous version.

In the 30 minutes after a production release, the previous version comes back in a second. After that, it takes a few seconds. Once the previous version is back, your AI reads what broke in while’s logs, fixes it and deploys again.

In the docs: Errors (Sentry) and Versions and rollback.

Next steps

Sources

  1. Sentry, the SDK for Node.js, accessed November 2, 2026

Questions

Do I need a Sentry account?

No. The Sentry SDK sends its errors to while, with no account or subscription at Sentry.

Which languages?

All the ones that have a Sentry SDK: Node.js, Python, Go, Ruby, PHP, Java…

Is my AI notified of every error?

Of a never-seen-before error, yes. An error that is already known is counted, without disturbing your AI every time.

What about my app’s logs?

They are kept in while, for 14 days on the Free plan, and your AI reads them too.

Where do my app and its data run?

In France, at Nextmap. The database is backed up every day, with a way back over 14 days, once a person approves.

Give your AI the message, and it takes care of the rest

Give this to your AI

Read while.sh/agents and help me get started with while.

Copy the message

In 3 minutes, with no sign-up, the tool has its own address. To keep it, create your account.

For a company project, write to the while team: hello@while.sh