Deploy your own AI-powered memory backend
SecondBrain Pro can connect to your own Cloudflare Workers backend, giving you full control over your data with global edge performance (<50ms latency). The backend is powered by shodh-cloudflare, an open-source distributed AI memory system.
npm install -g wranglergit clone https://github.com/doobidoo/shodh-cloudflare.git
cd shodh-cloudflare
wrangler d1 create shodh-memory
Note the database_id from the output — you'll need it in the next step.
wrangler vectorize create shodh-vectors --dimensions=384 --metric=cosine
cp worker/wrangler.toml.example worker/wrangler.toml
Edit worker/wrangler.toml and replace the database_id with your value from step 2.
cd worker
wrangler d1 execute shodh-memory --file=../schema.sql --remote
wrangler secret put API_KEY
Choose a strong API key — you'll enter this same key in the SecondBrain iOS app.
npm install
npm run deploy
Your worker will be deployed to https://shodh-memory.YOUR-SUBDOMAIN.workers.dev
curl https://shodh-memory.YOUR-SUBDOMAIN.workers.dev/
You should see: {"message":"SHODH Memory API is running"}
https://shodh-memory.YOUR-SUBDOMAIN.workers.devYour API key is stored securely in the iOS Keychain and never leaves your device unencrypted.
Search with natural language time expressions:
Each memory can track emotional context with valence, arousal, and emotion labels — helping you understand patterns in how you feel about different topics.
Cloudflare Free Tier covers most personal use: 100,000 Worker requests/day, 5GB D1 storage, 5,000 Vectorize vectors, and 10,000 AI inference units/day. No credit card required.