Technology
High-level map of the current implementation.
Authentication
- Auth.js (
next-authv5 beta) with the Drizzle adapter and database-backed sessions in Neon; - Sign-in: /sign-in (Google OAuth + optional local dev email provider).
- Optional: Cloudflare Turnstile on sign-in, sign-up, forgot/reset password, and resend verification (env keys in
.env.example); verified server-side when captcha hosts are configured.
Application
- Next.js (App Router) with React and TypeScript;
- Tailwind CSS v4 with PostCSS;
- shadcn/ui-style components (Radix primitives,
class-variance-authority,tailwind-merge,lucide-reacticons).
Data and ORM
- Neon serverless Postgres for primary persistence;
- Drizzle ORM with Drizzle Kit for schema push and migrations;
- @neondatabase/serverless driver for edge-friendly database access.
AI models
- Chat, Local Drive rename/organize, and other Vercel AI SDK calls use
lib/ai/chat-model.ts. When Meta is enabled, non-Google turns prefer Meta Model API (Muse models), then Vertex Gemini on Google Cloud, then a Gemini API key, then OpenAI, then Anthropic. Turns that touch Google Calendar, Drive, or email use Vertex / Gemini only (Privacy Policy — Google user data / Limited Use). - Vertex is not the same as an AI Studio key. Cloud credits apply only when Vertex is configured on the Saarthee Google Cloud project.
- Default Gemini model is
gemini-3.8-flash. Override withGEMINI_CHAT_MODELor force a vendor withCHAT_LLM_PROVIDER(meta,vertex,google,openai,anthropic). - Zero-retention AI routing (product feature, on Plus and Power). Chat and briefing go through Vercel AI Gateway with the
zeroDataRetentionoption on each language-model request where the provider supports it. That is how we ship the feature. It is disclosed on Plans, in Settings → Trust & data, Help → FAQ, the landing page, and the Disclaimer. It is not a Terms of Use promise, Privacy Policy term, or legal guarantee. Gemini runs on Vertex only (the Google endpoint that supports that Gateway option), so Google data still stays on Google AI. Gateway IDs:google/gemini-3.8-flash,meta/muse-wonder-1.0,openai/gpt-4o-mini,anthropic/claude-sonnet-4.5. Local Drive rename/organize, AI rule authoring, and the finance month explainer use the same Gateway path. - If AI Gateway cannot serve a request with that option, CoPlanner falls back to the direct vendor key for the same kind of data (Google data → Google only). Those fallback calls do not use the Gateway zero-retention option.
- Search embeddings are not included in this feature. Semantic search ranking uses
openai/text-embedding-3-smallthrough AI Gateway without the zero-retention option, because that OpenAI endpoint does not support it. Google-sourced rows are never embedded. - Keys stay server-side only. Turn AI off in Settings → Trust & data. Suggestions can be wrong — see the Disclaimer.
Hosting and delivery
- Vercel for builds, previews, and production deployment;
- Node.js runtime on Vercel for API routes such as
/api/healthand/api/auth/*.
Developer tooling
- ESLint with Next.js defaults;
- dotenv for local environment loading in database tooling.
Open source and notices
The Service builds on open-source packages; each dependency remains under its own license. For a full bill of materials, inspect package-lock.json in the repository. If you need a consolidated third-party notice file for enterprise review, request it via Support.
Related
Features · Privacy Policy (subprocessors and data practices)