Getting started
Install Twig on Android. Build from source. Bring your own keys.
Twig is a Bun + Turborepo monorepo. The product surface is Expo React Native on Android only. For downloads, package id, and legal terms see the distribution page.
You need
- Bun 1.3+
- Android device or emulator
- Dev build of the app (Expo Go is dead here — see below)
Install
bun installRun Android app
bun run dev:nativeTwig needs expo-sqlite with sqlite-vec. That is a build-time flag. Expo Go cannot
do it. You make a real development build:
cd apps/native
bunx expo prebuild --platform android
bunx expo run:androidSkip this and you get pain.
Run docs site
bun run dev:web
# → http://localhost:4000Laptop companion (when present)
Companion TUI in apps/cli. Lends compute over USB. Does not steal agent homes:
bun run companionScripts
| Script | What |
|---|---|
bun run dev | Everything |
bun run dev:native | Expo only |
bun run dev:web | Docs on port 4000 |
bun run build | Build all |
bun run check-types | Typecheck |
bun run test | Tests |
API keys
Twig does not ship models. Put key in app. OpenRouter = default easy path. Also OpenAI, Anthropic, Google. Keys live in secure storage on device. No key still means you can open files and reindex. Key only needed when you want the model to talk.