Privacy Policy.
Clear disclosure of what Google user data and workspace data Valkyria accesses, how it is encrypted and used, and how you can delete it permanently.
Overview & Scope
This Privacy Policy explains how Valkyria CLI ("Valkyria", "we", "our", or "us") and its companion web application at https://valkyria-cli.vercel.app collect, use, store, and protect information when you install or use the Valkyria command-line tool or authenticate with your Google account.
Valkyria is designed around a local-first, bring-your-own-keys (BYOK) architecture. Your source code files, conversation transcripts, and decrypted provider API keys remain on your local machine.
Data We Collect (Including Google User Data)
We collect only the minimum information required to authenticate your CLI session and optionally synchronize your encrypted API key vault across devices:
- Google Sign-In Account Data (via Firebase Authentication): When you run `valkyria login` in your terminal, you authenticate through Google OAuth (`openid`, `email`, and `profile` scopes). We receive your Google/Firebase unique user ID (UID), email address, display name, profile photo URL, and OAuth ID/refresh tokens.
- Optional Onboarding Profile: During CLI setup, you may optionally provide a preferred display name, profession, and expertise level. This is stored locally in your Valkyria configuration.
- Encrypted Key Vault Ciphertext: When vault sync is enabled, your third-party API keys (OpenAI, Anthropic, Google Gemini, Groq, Mistral AI, DeepSeek, Cohere, Moonshot AI, NVIDIA) are encrypted client-side on your machine before upload. Cloud Firestore stores only the encrypted ciphertext, salt, and nonce—never plaintext keys.
- Session & Workspace Metadata: Your chat transcripts, checkpoints, and context history are stored locally as JSON files on your device (`~/.valkyria/data/sessions/` and `~/.valkyria/data/checkpoints/`).
How We Use Your Data
We use the information described above strictly for the core functionality of Valkyria:
- Authenticating your terminal CLI session via our local loopback OAuth callback (`127.0.0.1`) and maintaining login state across CLI commands (`valkyria auth status`, `/account switch`).
- Associating your client-side encrypted key vault ciphertext with your Firebase UID so you can restore your own encrypted vault on another workstation.
- Personalizing your local terminal greeting and tailoring assistant responses when optional profile fields are provided.
- We do NOT sell, rent, or lease your personal data or Google user data to third parties. We do NOT use your Google account data, source code, or prompts for advertising, profiling, or training AI models.
Google API Services User Data Policy (Limited Use)
Valkyria's use and transfer to any other application of information received from Google APIs strictly adheres to the Google API Services User Data Policy, including the Limited Use requirements.
Specifically, Google user data obtained during sign-in (email address, display name, profile photo, and UID) is used solely to provide and maintain user-facing authentication and encrypted vault ownership within Valkyria. We never transfer Google user data to third parties except as necessary to operate authentication via Google Firebase, comply with applicable law, or protect against security abuse.
What Stays Local vs. Third-Party Processors
Valkyria separates local execution from external API calls so you always know what leaves your machine:
- Local Machine Only: Workspace files, local JSON chat sessions, decrypted API keys, and your vault master password never leave your device in plaintext.
- AI Model Providers (Your Own Keys): When you send a chat turn or invoke an agent tool, only the relevant conversation turns and explicitly attached/retrieved context are sent directly from your machine to the provider you chose (OpenAI, Anthropic, Google Gemini, Groq, Mistral AI, DeepSeek, Cohere, Moonshot AI, or NVIDIA NIM) under your own API keys.
- Pinecone Vector Store: When you run `/index`, workspace chunks are embedded and stored in your configured Pinecone index under a workspace namespace so `/search` and RAG can retrieve relevant code citations.
- Google Firebase (Auth & Firestore): Processes Google Sign-In authentication and stores only your UID, account metadata, and AES-256-GCM encrypted vault ciphertext.
- DuckDuckGo Search: When you run `/web` or the `web_search` tool, only your search query is sent to DuckDuckGo.
Data Protection & Client-Side Encryption
All third-party API keys stored in Valkyria are encrypted on your machine before any network transfer using Argon2id key derivation and AES-256-GCM authenticated encryption derived from your master password.
Because encryption occurs strictly client-side, neither Valkyria's maintainer nor Firebase can read or recover your API keys. All communication with Firebase, Pinecone, and model providers occurs over HTTPS/TLS, and the CLI OAuth callback listener binds exclusively to localhost (`127.0.0.1`).
Data Retention, Control & Deletion
We retain your Firebase authentication record and encrypted vault ciphertext only for as long as you maintain an active Valkyria account.
You have full control over your data and can permanently delete it at any time:
- In-App / CLI Deletion: Run `valkyria auth delete` in your terminal or `/account delete` inside chat. This permanently deletes your remote Firestore vault document, deletes your Firebase Authentication account, and removes local `auth.json` credentials.
- Revoking Google Access: You can revoke Valkyria's access to your Google account at any time via your Google Account Permissions settings (https://myaccount.google.com/permissions).
- Manual Deletion Requests: You may also request deletion of any account records by emailing abhowmik068@gmail.com from your registered email address.
Changes & Contact Information
We may update this Privacy Policy as Valkyria evolves (for example, when adding MCP server support or voice control). Any material updates will be reflected by updating the effective date at the top of this page.
If you have any questions, security reports, or data deletion requests regarding this Privacy Policy or Valkyria's handling of Google user data, contact the maintainer directly at abhowmik068@gmail.com or via https://github.com/Anupam2005-tech/valkyria-cli.