Wearable data for AI agents

Agents get the answer, not your whole health record.

AskWearables sits between wearable data and any AI agent. Each request gets a small computed answer within the grant you approved, with a receipt. Below: four real requests and what each agent got back.

  1. Device
  2. Planner
  3. Gate
  4. Packet

The device records. The agent only ever sees the packet.

What people ask, and exactly what each agent got back

Four real requests. Every packet was computed by the AskWearables engine for a synthetic person in the study cohort, under the grant shown.

Calendar assistant

“Is a 6 am meeting tomorrow a good idea?”

Someone wants a 6 am call tomorrow. Is that a good idea?

ask How has my sleep compared with my usual over the last few nights?

Your sleep has run well below your usual range lately. I would offer a later slot instead and keep the early one free.

Why it is safe. A scheduling grant tops out at level one, so the calendar app learns a direction and a size against the person's own range. No minutes, no bedtimes and no other metric reach it.

Sports video coaching agent

“How did my training video session compare with my recovery trend?”

ask What is my HRV trend over the last four weeks?

ask Was my resting heart rate in my usual range around the session?

ask Has my training volume changed from the week before?

From its own video analysisForm held through the early sets and drifted late in the session. The coaching agent already has this; it never asks the broker for it.

From AskWearables

Your form slipped late in the session while your recovery trend has been falling. Keep the next session lighter and we will compare the footage again.

Why it is safe. The broker supplies only the wearable side, at the lowest level that answers. The video stays with the coaching app, and the grant names HRV, resting heart rate and workouts, nothing else.

Wellness journal agent

“Where are my stress points this week?”

ask For each day this week, was my resting heart rate, and my HRV, inside my usual range?

above usual below usual within no baseline

Honest about the gap. There is no stress metric in the catalogue yet. These are wellness signals against the person's own baseline, worded as such, not a measure of stress.

Why it is safe. Every day is its own level-one packet: above, below or within, never a heart rate value. Each one is metered and on the receipt log.

Insurance rewards app

“What does this person weigh?”

ask What is the user's latest weight?

ask Has the user been as active as usual this week?

The person shared their activity with us, not their weight, so we can only reward steps.

Why it is safe. Weight is in the person's store, but not in this grant, so the gate refused before any data was read. The refusal is written to the receipt log like a release.

Built by scripts/build-usecases.ts from the study's synthetic people. Wellness information only; not medical advice.

Synthetic people, real model runs. For general wellness and personal insight only; not medical advice.

One question, three ways

Ask an everyday question. See who gets it right.

Real runs from the study: one everyday question, three ways to answer it

True answer known by construction

Loading examples from the study…

The comparison

Three ways to give an agent your wearable data

The same agent models answered the same questions about synthetic people with known answers, each way. Every figure below is read from the study's results file.

Measure

A

Paste the whole export

The agent reads every row from every device.

B

Give it open data tools

The agent can fetch any metric, any date range, titles and notes.

C

AskWearables

The agent asks a question and gets a small computed answer within your grant.

Loading results…

Accuracy against what one correct answer cost

Each model in each condition: accuracy against what one correct answer cost. A thin line joins a model's A point to its C point.

Loading results…

How often each route leaked what it was not allowed to share

Privacy suite, pooled over models and scenarios, with 95% intervals. Lower is better.

Loading results…

The problem

Today an agent either reads the raw export or calls a tool that can fetch anything.

Models misread raw wearable data

Real exports carry traps: a phone and a watch counting the same steps, a flight or a clock change that shifts a night, missing days, a stale sync, a new device with a new baseline. Doing arithmetic over hundreds of rows, models get these wrong, and answer the same question differently from run to run.

Models see everything

A connector or open data tool hands the agent whatever its credential reaches. A scheduling assistant that only needs "slept badly" can read your weight, and text planted in a workout title can steer it into repeating what it saw.

What the agent sees

A wall of rows, or one short packet

Median characters of health data that reached the agent model per question in the study, by condition.

export.csv
The opening rows of one synthetic person's export.

Loading results…

How it works

The model plans. Code computes. A gate decides what leaves.

Request flow An agent sends a question to the edge, which authenticates the token. The planner turns the question into a typed QuerySpec without seeing data. The policy gate checks it against the grant. The per-user vault computes the answer, builds a packet at the released level and writes a receipt. The packet returns to the agent. AGENT Any AI agent ask(question) over MCP or REST REQUEST PATHno data, no policy Edge OAuth 2.1 · token bound to one grant LLM planner question → typed QuerySpec, or refuse output checked against a schema never sees health data PROTECTEDno public route Policy gate grant · metrics · provider terms · sensitive window · level · daily budget · purpose plain code, deny by default Per-user vault Compute engine 8 fixed operations, tested code Packet builder coarsest level · caveats · ≤ 400 tokens Receipt hash-chained, releases and denials 1 2 3 4 5 packet + receipt
  1. The agent asks a plain question over MCP or REST. Its token is bound to one agent and one grant.
  2. The planner writes a typed query. It sees the question, the date and the metric catalogue, never data. Anything that does not validate is refused.
  3. The gate checks the query against the grant before any data is read: metrics, provider terms, sensitive categories, window, release level, daily budget and purpose.
  4. The vault computes the answer in the user's own encrypted store, with eight fixed operations. Sources are never summed; days are the user's local days; gaps are never filled in.
  5. The agent receives a packet at the coarsest level that answers the question: findings against the user's own baseline, caveats, freshness and sources, plus a receipt.

Watch one request go through, from a real run in the study:

Inside one request: what each stage did, from runs in the study

  1. The agent asks

  2. The LLM planner writes a typed QuerySpec sees the question, never data

    
                    
  3. The policy gate checks the grant plain code, deny by default

    • The vault computes fixed operations, the user's local days

    • The agent receives a packet

    Loading examples from the study…

    Minimum necessary

    Four levels of detail. The gate releases the lowest that answers.

    LevelThe agent receivesExample
    0 · FlagYes, no or unknown"Sleep duration under 6 h 0 min on any night from 2026-11-18 to 2026-11-24: no"
    1 · TrendDirection and a size bucket against the user's usual range"Sleep duration moderately below usual range on 3 of the last 3 nights"
    2 · DailyDaily values with units"… usual range 7 h 10 min to 7 h 29 min", with nightly values in minutes
    3 · RawSamples and session detailA heart-rate series for one run

    The user picks the most an agent may see, per agent and per purpose. Read the packet contract or how the gate decides.

    Developers

    Start in a few minutes

    Connect an MCP client

    For a person connecting their own agent. The client signs in with OAuth and the person approves a grant.

    Claude Code

    claude mcp add --transport http askwearables \
      https://mcp.askwearables.app/mcp

    Project .mcp.json

    {
      "mcpServers": {
        "askwearables": {
          "type": "http",
          "url": "https://mcp.askwearables.app/mcp"
        }
      }
    }

    Ask from your server

    For developers serving their own users with a signed developer key. The SDKs sign each request for you.

    TypeScript SDK

    npm install ./sdks/typescript
    import { AskWearables } from "@askwearables/sdk";
    
    const aw = new AskWearables({
      baseUrl: "https://api.askwearables.app",
      apiKey: process.env.AW_DEV_KEY!,
      signingSecret: process.env.AW_DEV_SIGNING_SECRET,
      user: "user-123",
    });
    const res = await aw.ask("How did I sleep this week?");

    Python SDK

    pip install ./sdks/python

    Full quickstart · the SDKs live in the repository under sdks/.

    Self-host

    Run it on your own Cloudflare account

    One-click deploy

    Deploy to Cloudflare

    The button deploys the self-host edition: one Worker with the same planner, gate, compute engine and receipts, plus a Durable Object, D1, KV and Workers AI, all provisioned for you. Set two secrets, open /setup, create a passkey, import your data and connect your agent to /mcp. It runs as a single Worker, so it does not have the hosted service's seven-Worker trust-zone separation. Source and steps: selfhost/ on GitHub. The seven-Worker production layout can still be deployed by hand, as below.

    Manual steps

    1. Clone the repository and run npm install.
    2. Create the D1 database, the KV namespace and the R2 bucket, and put their ids in the Workers' configs.
    3. Set three secrets: MASTER_KEY (vault), GATE_SECRET (gate), OWNER_SETUP_TOKEN (auth).
    4. Replace the host names with your domain, apply the D1 migrations, and deploy vault, gate, planner, auth, edge, console and site in that order.
    5. Open the setup link once to register the owner's passkey.
    Seven Workers, four trust zones

    Only the protected zone touches stored data, and nothing public calls it directly. This site is the site Worker: static pages with no data bindings.

    AskWearables architecture Four trust zones. Public: site and console. Identity: auth. Request path: edge and planner. Protected: gate and vault. Agents reach edge; edge asks planner to plan and gate to decide; gate asks vault to compute and release. The owner's browser reaches console, which reaches gate for the signed-in owner. Gate re-checks agent tokens with auth. AI agents MCP clients, developer servers Owner browser, passkey Public Identity Request path Protected console sources, grants, receipts site static pages and docs auth OAuth 2.1, passkeys, consent edge MCP and REST adapters planner question to QuerySpec, no data gate policy, budgets, receipts vault store, compute, packets D1: users, agents, grants, keys, nonces One encrypted SQLite store per user; R2 chain anchors token or signed key sign-in plan the question ask, capabilities owner session re-check token
    HTTPSservice binding (no public route) On a narrow screen, scroll the diagram sideways.