Dina: Your sovereign AI. Your open network.

Dina is your AI control plane: your memory, your agent approvals, your services, your network
Run it yourself
Dina is a TypeScript codebase. The same Core, Brain, and protocol run on a phone and on a server. On the phone, the whole Home Node runs on the device: your vault, your keys, and your reasoning. There are three ways to run it.
Prerequisites: Node 22 or newer (nvm use honours .nvmrc), then npm install at the repo root. You do not need a native build toolchain on macOS or Linux x64/arm64, because the encrypted-SQLite binaries ship prebuilt.
The mobile app
Dina is live on the iOS App Store: Get the app. (Android is in progress.)
To run the app from source while you develop:
cd apps/mobile
npm start # Expo dev server. Press i for iOS, a for Android.
A local Home Node server
The same Home Node also runs as a server (apps/home-node-lite): a Fastify Core that keeps the vault and the signing keys, and a Fastify Brain that reasons and never holds a key. They run as two processes, and only Core holds the keys.
# Core: the vault keeper (port 8100)
cd apps/home-node-lite/core-server && npm start
# Brain: the analyst, in a second terminal (port 8200)
cd apps/home-node-lite/brain-server && npm start
curl http://127.0.0.1:8200/healthz # {"status":"ok","role":"brain"}
To use a browser instead of the phone, start the Brain with DINA_BRAIN_DEV_UI=1 for a minimal chat UI at http://127.0.0.1:8200/dev that drives the same orchestrator the app uses, or run ./install-lite.sh --web-ui to have Core serve the full app at /app/ (Core: DINA_CORE_WEB_UI=1; Brain: DINA_BRAIN_WEB_ORIGIN lists Core's origin). See apps/home-node-lite/README.md.
Connect an agent: dina-agent
An external agent (Claude, Codex, OpenClaw, or your own bot) never calls Dina's functions and never holds her keys. It pairs as a device and submits its intent over the MsgBox relay. Core classifies the risk in deterministic code and either lets it through or raises an approval on your phone.
pip install dina-agent
dina configure --role agent # pair as an agent device (Ed25519 + 6-digit code)
dina session start --name "inbox triage"
dina ask "what's on my calendar tomorrow?" --session <ses>
dina validate transfer_money "Move $500 to savings" --session <ses> # HIGH: approval on your phone
dina validate-status <id> # approved | denied | pending_approval
To let an agent pick up delegated /task work on its own, run the daemon. It claims work over the relay and routes it to whichever runtime you have:
dina agent-daemon --runner claude-code # or: codex | gemini | openclaw
The agent submits an intent instead of calling a function for a reason. A system prompt is a request, not a constraint, and the model you ask to restrain itself is the same model an attacker tries to manipulate. So the limit is enforced outside the model: the classifier is a lookup table, the gate returns a boolean, and neither runs an LLM. The gatekeeper lives in packages/core/src/gatekeeper/intent.ts.
Learn more
Repository Layout
Active Home Node work should normally happen in the shared TypeScript tree: