InspirationCipherVeil Hybrid AI
Think freely. Keep control.
CipherVeil Hybrid AI is a privacy-first AI workspace designed to prioritize on-device intelligence while retaining access to cloud AI when needed.
The idea behind CipherVeil is simple: users should have more control over where their AI requests are processed. Rather than treating cloud processing as the only option, CipherVeil is designed around a hybrid approach that prefers local inference on supported devices and falls back to Firebase AI Logic when on-device inference is unavailable.
How it works
CipherVeil uses Firebase AI Logic with the hybrid inference preference "PREFER_ON_DEVICE". It is configured to initialize the browser's on-device model and use a Gemini cloud model as a fallback.
The application also integrates Firebase App Check with reCAPTCHA Enterprise to protect AI requests.
Its interface communicates the intended inference approach and displays the inference source reported by the SDK.
How we built it
We built CipherVeil as a web application using JavaScript, Vite and the Firebase JavaScript SDK. The source code is publicly available on GitHub, and the application is deployed using GitHub Pages.
The development process involved configuring Firebase AI Logic, registering the web application with App Check, implementing hybrid inference routing, and creating an interface for interacting with the assistant.
Challenges and lessons learned
One major challenge was developing with limited hardware. Our available computer runs Windows 7 and Chrome 109, which does not meet the requirements for Chrome's current on-device Prompt API.
We also encountered API-key configuration problems and temporary cloud-model availability errors during testing. These challenges taught us the importance of separating application deployment, API configuration, security verification and inference testing.
Current status
CipherVeil is publicly deployed, and its Firebase AI Logic integration and App Check configuration are in place. Cloud requests have reached Firebase AI Logic, although the latest model-availability issue remains under investigation. On-device inference still requires verification on compatible Chrome hardware.
Our goal is to make AI more privacy-conscious, transparent and flexible by giving users a hybrid path between local and cloud intelligence.