Tondavo

Security

This page is Tondavo's threat model in plain terms: who can reach your dev server, how pairing is protected, what the edge can see and keep, what the script in your pages can do, and what stays on your computer. It describes tondavo 0.1.5 and the edge at dev.tondavo.com as of 2 December 2026. Where something isn't protected yet, it says so.

Who can reach your dev server

  • Only phones paired with your session. A phone pairs by opening the link in the QR code. There is no other way to pair. Pairing is per browser: each browser that pairs counts as a phone, so a second browser, a private tab or an in-app browser on the same phone counts as another phone, because each keeps its own cookies. Every other request to dev.tondavo.com is answered by the edge itself, with a page saying the browser isn't paired or a 403. Those requests never reach your computer.
  • A paired phone reaches your whole dev server, every path except anything inside a .tondavo folder, as a browser on your computer would.
  • A paired phone can't control the phone tools. Running JavaScript, tapping, reading the screen and taking screenshots need a token that exists only on your computer, in .tondavo/session.json, and the token never leaves it.
  • Nothing on your computer listens for the internet. The CLI opens one outgoing connection to the edge (HTTPS on port 443 to dev.tondavo.com; corporate HTTP proxies are untested). Its local bridge listens on your computer only, on 127.0.0.1, port 8788 by default, or a free port if that one is taken. The port is in .tondavo/session.json.
  • Other web pages on your computer can't use the bridge. It refuses requests that don't carry your session's credential, so a page open in your computer's browser can't reach your app through it.

With --lan the rules are different. See With --lan.

How pairing is protected

  • A secret in the QR code. Each session has a random ID and a random secret, made on your computer. The pairing link carries both. The secret is in the part of the link after #, which browsers don't send in requests or Referer headers, so it doesn't end up in server logs. The pairing page sends it to the edge once to pair.
  • One phone per free session. The first phone to pair takes the session's only slot. Any other phone gets "This session already has its phone". The same browser can pair again and keeps its slot. To pair a different phone, start a new session with npx tondavo --new.
  • A 10-minute pairing window. Pairing is open for 10 minutes after the CLI connects to the edge, and for 10 minutes after you press c. The CLI also reconnects, and reopens the window, after your computer sleeps or changes network. Outside the window, the link says it has expired.
  • Sessions end after 8 hours, counted from when the session started. Restarting tondavo inside that time keeps the session. When it ends, the paired phone loses access and the CLI tells you to restart.
  • Another tondavo can't take over your session. Once your session exists on the edge, a CLI that connects with the same session ID but a different secret is refused. A second tondavo started in the same folder reads the same secret from .tondavo/room.json; it replaces the first, which stops and says so.
  • New sessions are limited per network. There is a limit on how many new sessions one network can start per hour (the number is on Pricing). Restarts of an existing session don't count.

Current limits of pairing

  • Your terminal shows the secret, inside the QR code. Anyone who sees your terminal while the window is open, including on a screen share or a recording, can pair, and if they pair before you do, they get your session. On the free tier you notice, because your phone then gets "This session already has its phone". If that happens, quit and run npx tondavo --new.
  • All sessions share one web address. Every app opened through Tondavo runs at https://dev.tondavo.com, so a phone's browser treats them all as one site. Cookies and local storage that one app sets stay on the phone and are visible to the next app opened through Tondavo in that browser, including someone else's. Two protections apply: the edge refuses to install service workers (scripts a site can leave running in the browser), and an app can't replace the cookie that pairs your phone. Open other people's sessions only in a browser you don't use for your own, or clear the website data for dev.tondavo.com afterwards. Separate addresses per session are planned.

What the edge can see and keep

  • It is not end-to-end encrypted. The phone talks to the edge over HTTPS, and the edge talks to your computer over an encrypted connection, but the edge decrypts everything in between. It can see your pages, API calls, request bodies, your app's cookies, the phone's reports and screenshots, and the code your agent runs on the phone.
  • It doesn't store any of that. Requests, responses, reports and screenshots pass through and are not written down.
  • What it keeps. For each session: what it needs to check pairing, when the session started, and how many phones paired. For the hourly limit: the times each network address started new sessions. How long these are kept is on Privacy.
  • Cloudflare runs the edge and may log the requests it handles, such as IP addresses, under its own privacy policy.

The edge's source code is not published. This page is the description of what it does.

Your Content-Security-Policy is off

On pages served through Tondavo, your app's Content-Security-Policy header is removed so Tondavo's script can run. Script restrictions your CSP would enforce are off during the session, so don't rely on CSP being active while you test. How it works has the details.

What the script in your pages can do

The script Tondavo adds runs inside your page, with everything your page's own JavaScript can do: read the page, its storage and any cookies not marked HttpOnly, and call your APIs.

What it reports on its own

JavaScript errors and unhandled promise rejections, failed scripts and images, fetch requests that fail or stall, console output, taps, focus on form fields, scrolling, page changes, content wider than the screen, camera and microphone permission results, the browser's user agent, and notes made with the three-finger tap.

What it does when asked

When the CLI asks, it runs JavaScript in the page (eval), taps, long-presses, swipes, types, presses keys, pastes, drops or attaches files, pinches, simulates conditions such as offline or a denied camera, reads the screen as text (screen) and takes screenshots. Only the CLI on your computer can ask, with the token in .tondavo/session.json. Your agent asks through the CLI's commands or its MCP tools.

The browser treats these taps and keystrokes as scripted, so they can't open the keyboard, answer permission prompts, start audio or start screen capture. Those need a real finger.

Where it goes

Reports and results travel over the page's own connection, through the edge, to the CLI on your computer. The CLI writes them to .tondavo/ and prints them in your terminal. Your agent reads them from there.

What is left out, and what isn't

  • The activity log never records typed text. A tap records the element and the label of the button or link, up to 60 characters. A focus records the field and its type, not its value.
  • screen shows what is in fields, the first 40 characters of each, except password fields and fields marked as a password, credit card or one-time code (their autocomplete value). Those show [hidden value].
  • Screenshots show the screen as it looks, including text typed into fields. Password fields look as they do on screen. With --capture, a screenshot is a frame of the phone's whole screen, keyboard included.
  • Console output and URLs are recorded as they are. Each console string is kept up to 1,500 characters, and a failed request is recorded with its full URL, query string included. If your app logs tokens or puts them in URLs, they end up in the log.
  • type and keys report the field's new value back to whoever ran them.

Agents and prompt injection

Prompt injection is text that tries to get an AI agent to follow instructions found in the content it reads, instead of yours.

  • Page text reaches your agent. screen passes on the visible text, logs passes on console output, error messages, URLs, tap labels and notes, and eval and screenshots pass on whatever they return.
  • Anyone who can put text on your page can try it: user-generated content, third-party scripts, ads and API responses. Your page's scripts can also write their own entries into the log, and whoever holds the phone can write a note with the three-finger tap.
  • The MCP server tells your agent to treat logs as data, not instructions. That lowers the risk. It doesn't remove it.
  • Your agent can run any JavaScript in the page. Whatever your page can do, such as calling your APIs as the signed-in test user, the agent can do too.

Keep your agent's approval prompts on for actions outside your project, and use test data.

What is stored on your computer

Tondavo keeps its files in .tondavo/, in the folder where you run it: the session secret, the token that controls the phone, the phone's reports and your screenshots. The secret is in room.json, kept for 8 hours so restarts reuse the session. session.json holds the running CLI's ports, the control token, the secret and the pairing link, and is deleted when you quit. Both are readable only by your user account (on macOS and Linux). Screenshots are never deleted automatically. The phone can't read this folder: requests for anything inside a .tondavo folder get a 404. The CLI reference lists each file.

With --lan

npx tondavo --lan doesn't use the edge, so nothing passes through a third party. In exchange:

  • The bridge listens on your computer's network address, not only on your computer.
  • Traffic is plain HTTP. The pairing link, the credential it sets and everything your app sends cross your network unencrypted.
  • There is no one-phone limit and no pairing window. Anyone who has the link, or sees it on the network, can open your app while the CLI runs; an opened browser stays let in for 8 hours.

Use it only on a network where you trust everyone. How it works lists what else changes.

Recommendations

  • Use test data only. No production credentials, real customer data or real payment details: everything passes the edge decrypted, and the logs and screenshots stay on disk.
  • Pin a version. npx tondavo runs the latest published version. To run the one you reviewed:
    npx tondavo@0.1.5
  • Use --lan when you don't want an edge, on a network you trust.
  • Keep the pairing to yourself. Don't share your screen while the QR code is showing.
  • Keep your own sessions in their own browser, apart from sessions other people send you.
  • Add .tondavo/ to .gitignore. Tondavo doesn't add it for you.

The source

  • The CLI is MIT-licensed and published on npm as readable JavaScript, not minified or bundled. It has no npm dependencies and no third-party code.
  • To read the exact code you run:
    npm pack tondavo@0.1.5
    tar -xzf tondavo-0.1.5.tgz    # the code is in package/
  • The source is public at github.com/rozetyp/tondavo, with its tests. The edge's source is not published.

Reporting a vulnerability

Email hello@tondavo.com with what you found and how to reproduce it.