DriveIQ is where I keep my truck: service history, reminders, the manuals, and Aiana, an assistant that answers questions from those manuals and shows you the page. Version 1 was a Docker stack you ran on your own machine. My own copy left that stack behind a while ago and moved to Cloudflare, in a private repo.

DriveIQ 2.0 makes that the public version. It’s a rewrite that runs on your own Cloudflare account, behind a login only you can pass, and you install it with one button. Claude Code built it with me, and tested the button end to end before it shipped.

Deploy to Cloudflare

DriveIQ’s home screen with a demo vehicle: odometer, service history, recalls, and a What’s Next list of reminders and forecast services

What’s in 2.0

  • One Cloudflare Worker serves the app and its API. Your records live in D1, page images in R2, and document search in Vectorize, with embeddings from Workers AI.
  • A Deploy to Cloudflare button creates the database, storage and search index in your account. The only secret it asks for is your Anthropic API key.
  • A login is required. The Worker checks a Cloudflare Access sign-in on every API request, and stays locked until you set Access up.
  • Aiana answers from your uploaded documents with page thumbnails, and uses your service history, schedule, reminders, specs and recalls. It can add or change reminders when you ask. One conversation follows you across devices and clears after four idle hours.
  • Upload documents in the app. PDFs are read in your browser: the text is indexed and every page is saved as an image.
  • A maintenance schedule you edit. It starts from general intervals that you match to your owner’s manual, and the What’s Next list forecasts each service from it.
  • Specs you confirm (oil capacity, a filter part number) win over anything Aiana finds in a document.
  • A recall check against NHTSA’s public data for your make, model and year.

Aiana answering a question about engine oil from a demo owner’s manual, with thumbnails of the pages it used

Deploy your own

You need a Cloudflare account, an Anthropic API key, and a GitHub account (the button copies DriveIQ into a repository of your own, and every push to it redeploys). Then it’s three steps, all in the setup guide:

  1. Get an Anthropic key. When the Console asks where your code runs, choose Somewhere else: a Worker needs a regular API key.
  2. Click the button and fill in the form.
  3. Turn on the login. Put Cloudflare Access in front of the Worker with the scope set to All traffic, then give DriveIQ the two values Access shows you, so it knows which sign-in to trust.

Until step 3 is done, DriveIQ shows a Finish setting up screen instead of your data.

Locked until you turn on the login

DriveIQ holds your service history and calls Claude with your Anthropic key, so it fails closed. Cloudflare Access stops strangers at the door, and then the Worker checks the signed token Access attaches to each request itself, against your Access team’s published keys. If Access was set up wrong, or not at all, the API answers with an error instead of your data.

Two details took some finding:

  • The Worker verifies the token on its own. A Worker that serves static assets doesn’t get Access’s own identity helper, so DriveIQ reads the Cf-Access-Jwt-Assertion header and verifies it with your team domain and the application’s AUD tag.
  • Access’s default scope is “Previews only”. That protects preview URLs and leaves the app itself public. The guide says All traffic in bold for that reason.

The two Access values live on the Worker as dashboard variables, and keep_vars in the config stops a later deploy from wiping them.

Under the hood

The README now has four animated diagrams. Each one follows the real code path, with the real numbers from the code.

How a request moves. Every request passes Access first; the Worker checks the token, then uses Workers AI, Vectorize, D1 and Claude through your AI Gateway, and serves page thumbnails from R2. Of the parts shown, Claude is the only one outside your Cloudflare account.

Animated diagram: a request goes from the browser through Cloudflare Access to the DriveIQ Worker, which checks the Access token, then uses Workers AI, Vectorize, D1, AI Gateway with Claude, and R2

Uploading a manual. The PDF never leaves your browser. pdf.js reads it page by page, the text is split into chunks of about 1,500 characters with 200 overlapping, and the chunks go to the Worker 20 at a time. Workers AI turns each chunk into 768 numbers, which go into Vectorize along with the page number. Then each page is drawn 1,200 px wide, plus a thumbnail, and saved to R2.

Animated diagram: the browser splits the PDF’s text into chunks and sends them 20 at a time; the Worker embeds each with Workers AI and stores them in Vectorize; each page is then saved as an image in R2

How Aiana answers. The question is embedded the same way, and Vectorize returns the top 8 matches, keeping those that score 0.35 or higher. A short follow-up (“and the filter?”) also searches with the previous question, so it finds the same pages. From D1 come your service history and forecast, recalls, confirmed specs, reminders and the last four hours of conversation. Claude writes the answer and cites the page, and the thumbnail comes from R2.

Animated diagram: the question is embedded, matched against your documents in Vectorize, combined with your records from D1, and answered by Claude, with the cited page shown from R2

The What’s Next forecast. Each service is due after its miles or its months, whichever comes first. It shows as Due soon in the last 1,000 miles, and Overdue once either limit passes.

Animated diagram: an oil change every 5,000 miles or 6 months goes from OK to Due soon at 44,000 miles and Overdue at 45,000 miles as the odometer climbs

What testing the button taught us

Before tagging 2.0, Claude Code ran the public Deploy button into a fresh, throwaway setup in my own Cloudflare account, checked that it built, set up its database and locked itself, then deleted everything it had created. That run changed the guide in four places:

  • The form picks existing resources with the same name. On an account that already had a driveiq database, the button selected it instead of creating a new one. The guide now says to check that each resource says new, and to choose + Create new if not.
  • A new Vectorize index needs its settings typed in: dimensions 768 and metric cosine, to match the embedding model.
  • The API key field isn’t empty. It starts with a placeholder that looks like a key, so the guide says to clear it and paste your own.
  • “Your GitHub authorization has expired.” Cloudflare’s link to GitHub can go stale. Re-authorizing didn’t fix it; uninstalling the Cloudflare app on GitHub and connecting again did. That’s in the troubleshooting table now.

What 2.0 leaves out

2.0 is a new app on a new platform, so some of v1 didn’t come along: Docker and the Docker Desktop extension, the Python backend with PostgreSQL, Redis and Qdrant, local models through Docker Model Runner, the CARFAX import and the MCP server.

There’s no automatic migration from v1. To move over, deploy 2.0, add your vehicle, upload your documents again and re-enter your service history. v1.3.1 stays available as the last Docker release.

It’s also single-owner by design: one vehicle, one conversation, one login.

2.0.1, the same day

2.0.1 followed a few hours later with the animated diagrams above and a dependency update: React 19, TypeScript 7, lucide-react 1 and vitest 5. Before tagging it, Claude Code ran the app locally with demo data and clicked through every page; there were no errors in the browser console. Nothing about how DriveIQ works or what it stores changed.

Get it