Skip to content
Anchor AI

Anchor AI

Decentralized Mental Health Companion

Created on 1st February 2026

•

Anchor AI

Anchor AI

Decentralized Mental Health Companion

The problem Anchor AI solves

The Problem: The Privacy-Security Paradox

Most people facing mental health challenges want to seek help but feel "trapped" by two major barriers:

The Fear of Digital Vulnerability

Traditional mental health apps store sensitive personal journals and clinical data on centralized cloud servers. This creates significant risks:

  • Data Breaches: High-profile hacks can expose private thoughts, potentially leading to social stigma or professional repercussions.

  • Data Monetization: Users fear their emotional data might be sold to advertisers or insurance companies.

The "Assessment Gap"

Many individuals know they don't feel "right," but they lack the tools to objectively measure their mental state.

  • They don't know how to differentiate between a "bad day" and a clinical condition.
  • They find traditional clinical environments (clinics/hospitals) intimidating or too expensive for an initial check-in.

The Solution: Anchor – A Decentralized Sanctuary

Anchor solves these problems by merging clinical psychology with Web3 technology, creating a space where self-care is both data-driven and indestructible.

Sovereign Data Security

Anchor eliminates the "central point of failure" by utilizing a decentralized tech stack:

  • EthStorage & Encryption: Personal journals aren't stored in a company database; they are encrypted and stored on a decentralized network where only the user holds the "key."
  • Biometric Shield: Access is locked behind the user’s unique physical identity (FaceID/Fingerprint), ensuring no one—not even Anchor staff—can read their entries.

Actionable Mental Intelligence

Anchor turns "venting" into "visibility" through automated clinical insights:

  • AI Summarization: The app processes daily journals to identify patterns, providing a "Risk Level" so users can see trends in their mental health over time.
  • Validated Screenings: By integrating GAD-7 (General Anxiety Disorder) and PHQ-9 (Patient Health Questionnaire), the app provides users with scientifically recognized scores to assess their status accurately.

Incentivized Resilience

To solve the problem of "journaling fatigue," Anchor introduces a Reward Layer:

  • NFT Milestones: Users are rewarded for their consistency with Starter, Weekly, and Yearly NFTs, gamifying the habit of mental wellness.
  • Direct-to-Care Pipeline: If the AI detects a high risk level, the user can use the integrated smart contract payment system to book a therapist instantly and securely.

Challenges we ran into

Challenges

Minting Contract NFT and Syncing Updates Between App and MetaMask

One of the key challenges was implementing bidirectional synchronization between our ERC-721 NFT contract on Sepolia and the Flutter app. We deployed an AnchorStreakNFT contract that tracks claimed milestones per wallet address using a hasClaimed mapping. When a user connects their wallet, we query the blockchain for each milestone's claim status. This ensures the app reflects the true on-chain state—even if the user minted from a different device or the app data was cleared. The minting process involves constructing the contract call ABI, sending the transaction through Reown AppKit, and then polling to verify the claim was recorded on-chain before updating the local UI state.

Implementing Web3 Transactions with Reown and MetaMask for Booking Therapists

Enabling therapist booking payments via cryptocurrency required integrating Reown AppKit (formerly WalletConnect) for wallet connectivity across 300+ wallets including MetaMask. The main challenge was handling cross-platform deep linking to seamlessly redirect users between our Flutter app and their wallet app for transaction signing. We implemented safety checks to prevent accidental mainnet transactions during development—verifying the connected chain matches Sepolia before processing payments. The sendPayment method calculates the ETH equivalent from USD pricing, constructs the transaction parameters, and submits via eth_sendTransaction. Transaction hashes are stored with appointment records to provide on-chain verification of payments.

Runtime for On-Device AI Model Inferencing

Running LLM inference locally on mobile devices presented significant technical hurdles. We integrated ExecuTorch (Meta's on-device ML framework) through a native MethodChannel bridge, allowing our Dart code to communicate with optimized C++ inference kernels. We create a service that manages the lifecycle of loading model and tokenizer files, invoking the native runLlama method, and handling graceful termination. A critical consideration was memory management—we detect device RAM at startup and route to either the Advanced (Llama 3.2 3B, 2.66GB) or Compact (Llama 3.2 1B, 1.1GB) model based on whether 40% of available RAM can accommodate the model footprint.

Finding and Exporting Compatible Optimized AI Models

Sourcing mobile-optimized AI models required navigating the ecosystem of quantized model formats. We needed .pte (ExecuTorch) format models with INT4 SpinQuant quantization for optimal size-to-quality tradeoffs. We fetches pre-converted models from Hugging Face's executorch-community repository and our own CDN. Both LLama 3.2 1B and 3B models use SpinQuant with INT4 weights and 8-bit KV cache, reducing memory usage while maintaining reasonable response quality. Finding models with compatible tokenizers (tokenizer.model in SentencePiece format) and ensuring they work with our specific ExecuTorch build version required extensive testing across device architectures.

Making a User-Friendly Journey

Creating an accessible onboarding experience for a Web3+AI app demanded careful UX consideration. We implemented a progressive disclosure flow: users first see feature highlights via an animated PageView carousel, then provide personal information, followed by model selection based on their device capabilities. The model download page dynamically adapts—showing selection cards only when the device can run the advanced model, with clear size/capability tradeoffs. For wallet connectivity, we leverage Reown AppKit's polished modal that surfaces installed wallets first and handles the complex redirect dance invisibly. Error states throughout (wrong network, insufficient balance, download failures) are surfaced with actionable guidance rather than cryptic technical messages.

Tracks Applied (8)

BGA Prize

Overall Awards

Privacy — Privacy & Zero-Knowledge Applications

Anchor ensures absolute privacy by running all AI inference (Llama 3.2) 100% on-device via ExecuTorch — sensitive mental...Read More

Digital Economy — Open Digital Economy

Anchor contributes to an open digital economy by tokenizing mental wellness engagement through ERC-721 NFT streak reward...Read More

Digital Resilience — DWeb / P2P Innovation

Anchor embodies digital resilience by eliminating single points of failure — on-device AI via ExecuTorch ensures the app...Read More

AI x Blockchain — AI & Web3 Convergence

Anchor converges AI and Web3 by combining on-device LLM inference (ExecuTorch with Llama 3.2) for private mental health ...Read More

Localism

Anchor champions localism by offering full internationalization across 8 languages: English, German, Spanish, French, Hi...Read More

Future Light (Student Prize)

We are a team of four members. One of them is studying Master degree in Chiang Mai University and another one is studyin...Read More

Discussion

Builders also viewed

See more projects on Devfolio