Privacy · Only if you sign in
What signing in keeps.
Signing in is optional, and the app works the same without it. If you do, this is everything the account server holds for you, field by field, and for how long. It never meets the usage stats, and leaving is one tap.
Accounts
Signing in is optional. PhoneCanDo works the same without it; usage
stats (telemetry.md) never need it. You sign in with Google
from Settings → Account, and today it does three things: the share links you
send (Settings → Tell a friend) stay with you, so a new phone or a reinstall
shows them and what they did once you sign in again; a few of your
settings (listed under Settings) follow you to every phone you
sign in on; and the Dashboard lets you open your phone’s app
from a browser at https://dash.phonecando.app. More is planned on the same
account, each optional too; this page changes before any of it ships.
This page is the published schema: every route, everything the server keeps for a signed-in person, and for how long. The code is the source of truth and this page changes with it in the same change: a route, limit or table doesn’t ship until it is described here.
In short
- Only if you sign in. Nothing on this page exists for anyone who does not.
- What we keep: your Google account number, your Google email, when you first signed in and last used it, a hash of each phone’s (and each Dashboard browser’s) session, the codes of your share links with when you made them, the settings below with when you last changed them, and, for each phone with Dashboard on, its name, model, app version, build, address and when it last checked in.
- Never kept: your name, your photo, the token Google gives the app, your password (Google never shares it), your IP address, which app you shared a link through, and anything from your agents.
- Signed out, your usage stats can’t be tied to you. Signed in, your share links’ codes are kept with your account too, so the two aren’t fully apart. The account holds no install ID and no usage-stats device ID (a phone’s Dashboard ID is its own random one, made for the Dashboard alone), and the usage stats hold no account.
- Delete account (Settings → Account) deletes all of it at once. Sign
out ends only that phone’s (or that browser’s) session. Without the app, ask by email from
the account’s address (
https://phonecando.app/delete-account/); we delete it within 30 days.
Where it goes
| Endpoint | https://api.phonecando.app/v1/account/*, the same Worker as the usage stats and the site |
| Code | Our accounts server, mounted in the same Cloudflare Worker. Its source is private; this page is its published schema. |
| Storage | Our Cloudflare account: D1 database phonecando-accounts, separate from the usage stats’ phonecando-stats. No archive or backup copy beyond D1’s own 7-day Time Travel. Cloudflare processes it on our behalf. |
| Not stored | Nothing is sold or shared. Google learns that you signed in to PhoneCanDo (it shows the app on your Google account’s third-party connections). |
How sign-in works
- The app asks
POST /v1/account/noncefor a one-use random value. - Android’s own Google sheet (Credential Manager) asks you to pick an account. Google gives the app an ID token, signed by Google, that names your account and carries the nonce.
- The app sends the token and nonce to
POST /v1/account/signin. The server checks the token against Google’s published keys (https://www.googleapis.com/oauth2/v3/certs): signed by Google (RS256), issued byaccounts.google.com, for our app’s client ID, not expired (one minute of clock leeway), with a verified email, carrying a nonce we issued in the last 10 minutes and not used before. Any check failing refuses the sign-in. - The server answers a session token (32 random bytes). The phone keeps it encrypted with a key in the Android Keystore; the server keeps only its SHA-256, so a copy of the database signs nobody in. The name and photo Google shows are kept on the phone only, for Settings → Account.
Google’s sign-in needs Google Play services on the phone; without them the Account page says so and nothing is sent.
On the Dashboard page the same steps run in the browser: the page asks for
the nonce, Google’s own Sign in with Google button gives it the ID token
(for the same client ID), and the page signs in with "client": "web". The
browser keeps its session token in the page’s local storage; the server
keeps only its SHA-256, as for a phone.
What is stored
| Table | Field | What | Kept |
|---|---|---|---|
accounts |
id |
our own random ID (UUID) for the account | until Delete account |
google_sub |
Google’s number for your account (the ID token’s sub; Google gives every app the same number for it) |
until Delete account | |
email |
your Google account’s email, refreshed on every sign-in | until Delete account | |
created, last_seen |
first sign-in; last sign-in or use (written at most once a day) | until Delete account | |
sessions |
token_hash |
SHA-256 of one phone’s or Dashboard browser’s session token | until Sign out, Delete account, or 180 days without use (a browser’s: 30 days) |
account_id, created, last_used |
whose session, when made, last used (written at most once a day) | same | |
kind |
phone (the app) or web (the Dashboard page in a browser) |
same | |
nonces |
nonce, expires |
a sign-in’s one-use value | 10 minutes, or until used |
account_shares |
code, created |
a share link’s code (8 characters, with a p in front when the Play build made it) and when the phone made it; at most 500 per account, newest kept |
until Delete account |
account_settings |
key, value, at |
one of the settings below, its value, and when a phone last changed it (that phone’s clock); at most 32 per account, the most recently changed kept | until Delete account |
devices |
id |
a phone’s Dashboard ID: 128 random bits the phone made for the Dashboard (26 characters), never its install or usage-stats ID | until Dashboard is turned off on that phone, you forget it on the Dashboard page, or Delete account |
name, model |
the phone’s name and model as Android gives them (e.g. “Sam’s Pixel”, “Pixel 8”; rename the phone in Android’s settings to change it) | same | |
app_version, channel |
the app’s version and build (full, lite or play) | same | |
address |
where the phone answers: an https:// address in your own Cloudflare account (the Sites connection) |
same | |
last_seen |
when the phone last checked in (written at most every 10 minutes unless something changed) | same | |
account_id, session |
whose phone, and the SHA-256 of the session that last wrote it; at most 10 phones per account, the ones seen longest ago go first | same |
Which app a link went through stays on the phone that sent it. A link’s open, download and install counts belong to the usage stats (telemetry.md, Share links) and are read by code; the account only lists your codes.
Settings
What follows you between phones: the theme (themeMode), whether the
terminal’s extra keys stay up (extraKeysSticky), the starter build’s “stop
offering the full build” (updatePromptMuted), and the caps on agents and
local models running at once (maxAgents, maxModels). A phone sends a
setting a moment after you change it and reads the account’s when you sign in
and when the app comes back to the front. For each setting the later change
wins; on a tie the account’s stays.
Never synced: the usage-stats switch (each phone’s own consent), Phone control’s lock mode (each phone’s own safety), API keys and tokens, your agents and their machines.
Dashboard
The Dashboard opens your phone’s own app in a browser, at
https://dash.phonecando.app. It is off until you turn it on in the app
(Settings → Account → Dashboard), and it needs Sites connected to your own
Cloudflare account: the phone serves the app itself, through your own
Cloudflare tunnel. Nothing of the app, your agents or your chats passes
through us; our server only keeps the list of your phones, so the page knows
where to send you.
- A phone with Dashboard on tells the account about itself
(
PUT /v1/account/devices/<id>): its name, model, app version, build and its address in your Cloudflare account. It checks in again while Dashboard is on, and turning Dashboard off forgets it (POST /v1/account/devices/<id>/delete). - You sign in on the Dashboard page with Google. That is a browser’s
session (
"client": "web"); it ends after 30 days without use, and Sign out on the page ends it at once. - The page lists your phones. Open one and the page asks for a pass
(
POST /v1/account/devices/<id>/pass) and goes to the phone’s address with it. A pass is a note signed with our key (ES256, key iddash-2026-12) that says “this browser is signed in to the account that holds you”: it names only that phone’s Dashboard ID, a random one-use number, and lasts two minutes. We don’t keep passes. - The phone checks the pass with our public key, which ships inside the app, and then asks you, on the phone, to let that browser in: it shows a code, the browser shows the same code, and you confirm with your fingerprint. Only then is the browser linked to that phone. The phone keeps its own list of linked browsers, and you can unlink one there.
Unless you turn on “Any browser signed in to my Google account” in the app (not recommended, and it needs your fingerprint to turn on): then a pass alone links a browser, with no code to confirm.
A phone ID belongs to one account at a time. While the session that put it
there is signed in, another account that tries the same ID is refused
(taken), so knowing a phone’s ID never lets another account ask for a pass
to it. Once that session ends (Sign out, or unused for too long), the next
account to put the ID gets it.
Routes
Every answer is JSON and never cached. Errors are { "error": code }.
| Route | Body | Answer | Limit |
|---|---|---|---|
POST /v1/account/nonce |
none | { "nonce" } |
public |
POST /v1/account/signin |
{ "idToken", "nonce" }, plus "client": "web" from the Dashboard page (≤ 8 KB) |
{ "token", "account": { "email", "createdAt" } } |
rare |
GET /v1/account |
none | { "account": { "email", "createdAt" } } |
public |
PUT /v1/account/shares |
{ "links": [{ "code", "created" }] } (≤ 500 links, ≤ 32 KB) |
{ "links": [...] }: what the account had joined with what was sent (a code keeps its earliest time), newest first, at most 500 |
public |
GET /v1/account/settings |
none | { "settings": { "<key>": { "value", "at" } } } |
public |
PUT /v1/account/settings |
{ "settings": { "<key>": { "value", "at" } } } (≤ 32 settings, ≤ 8 KB; a key is a short camelCase name, a value is text of ≤ 200 chars, a number, true, false or null) |
the account’s whole set after taking each sent setting that is newer | public |
GET /v1/account/devices |
none | { "devices": [{ "id", "name", "model", "appVersion", "channel", "address", "lastSeen" }] }, seen most recently first |
public |
PUT /v1/account/devices/<id> |
{ "name", "model", "appVersion", "channel", "address" } (≤ 2 KB; name and model ≤ 64 chars, version ≤ 32, channel full, lite or play, address an https:// origin) |
{ "device": { ... } } |
public |
POST /v1/account/devices/<id>/delete |
none | { "deleted": true }, whether it was there or not |
public |
POST /v1/account/devices/<id>/pass |
none; a browser’s session only | { "pass", "address" } |
public |
POST /v1/account/signout |
none | { "ok": true } |
public |
POST /v1/account/delete |
none | { "deleted": true } |
rare |
Every route but nonce and signin needs Authorization: Bearer <session token>.
<id> is a phone’s Dashboard ID: 26 characters of lowercase base32.
Browsers: only the Dashboard page (https://dash.phonecando.app) may call
these routes from a browser (CORS); the session goes in the
Authorization header, never a cookie. The app calls from native code and
sends no Origin.
| Error | Status | When |
|---|---|---|
bad_request |
400 | a body of the wrong shape, over its cap, or not JSON |
bad_token |
401 | the Google token or the nonce did not check out |
signed_out |
401 | no session token, an unknown one, or one unused for 180 days (a browser’s: 30) |
wrong_session |
403 | a pass asked for with a phone’s session (passes are for browsers) |
rate_limited |
429 | over the limit (Retry-After: 60) |
not_found |
404 | not a route, or a pass for a phone the account doesn’t have |
taken |
409 | a phone ID another account’s signed-in session holds |
not_configured |
503 | sign-in is not set up on this server (nonce and signin), or passes are not (no pass key) |
internal |
500 | our bug or a database failure; logged with the request id |
Abuse limits. The Worker rate-limits these routes per client with the
same per-minute limiters as the usage stats (telemetry.md,
Abuse limits): sign-in and Delete account with the rare one, the rest with
the public one. The client’s IP address keys the limiter and nothing else;
it never reaches these routes and is never stored.
Delete account
POST /v1/account/delete with the phone’s session deletes the account row,
every phone’s and browser’s session, the share-link list, the settings and
the Dashboard’s phones in one transaction. Browsers already linked to a phone
are the phone’s own list: turning Dashboard off or unlinking them in the app
ends them. Signing in
again later starts a new, empty account. Not reached: D1’s 7-day Time Travel
and the 3-day Workers Logs, which hold no email or account number (the log
lines carry the route, the status and why a request was refused). Usage stats
are not touched; Settings → Privacy → Delete my data removes those.
Logs
A request the routes refuse or fail writes one log line to Cloudflare Workers Logs (3 days): the route, the error code, the reason (e.g. “expired”) and the request id. Never a token, nonce, email or account number.
docs/accounts.md with every build of this siteEd. 1.2.1