Run it locally
Postgres in Docker, then the server, the website and the glasses plugin with pnpm, and the Even Hub simulator for the lens.
You need Node 24, pnpm 11 and Docker.
Install and start the database
pnpm install
pnpm db:upPostgreSQL 17 listens on localhost:55432 (user, password and database soba). The server runs its migrations on boot.
Configure the server
Copy apps/api/.env.example to apps/api/.env. Production refuses to start without DATABASE_URL, API_ORIGIN, WEB_ORIGIN, BETTER_AUTH_SECRET and VAULT_MASTER_KEY (32 bytes), plus TELEGRAM_WEBHOOK_SECRET when a bot token is set. Everything else is optional and switches a feature off when missing:
| Variable | Turns on |
|---|---|
OPENAI_API_KEY | Reading calls, voice and Ask |
ELEVENLABS_API_KEY | Speech to text |
RESEND_API_KEY, EMAIL_FROM | Email codes (in development the code shows on the page) |
TELEGRAM_BOT_TOKEN, TELEGRAM_OIDC_CLIENT_ID/SECRET | The bot; Log In With Telegram |
GOOGLE_CLIENT_ID/SECRET | Google sign-in |
REOWN_PROJECT_ID | Trust Wallet (WalletConnect) |
UNISWAP_API_KEY | EVM wallet swaps |
NANSEN_API_KEY, NANSEN_WEBHOOK_SECRET | Wallet P/L, history and move alerts; coin context |
POLYMARKET_BUILDER_API_KEY/SECRET/PASSPHRASE, POLYMARKET_BUILDER_CODE | Polymarket trading (read-only without them) |
TONCENTER_API_KEY | Faster TON reads |
TRY_BINANCE_DEMO, TRY_BYBIT_DEMO, TRY_OKX_DEMO, TRY_HL_WALLETS | Try seats |
DEMO_HYPERLIQUID, DEMO_POLYMARKET | The public demo |
EGRESS_IPS | The IPs shown for locking exchange keys |
The website reads NEXT_PUBLIC_API_ORIGIN, NEXT_PUBLIC_SITE_ORIGIN and NEXT_PUBLIC_REOWN_PROJECT_ID (wallet features are off without it).
Run everything
pnpm dev| App | Address |
|---|---|
| Server | http://localhost:8787 |
| Website | http://localhost:3210 |
| Glasses plugin (Vite) | http://localhost:5173 |
See the lens
pnpm --filter @soba/glasses simulateThe Even Hub simulator (0.9.5) loads the plugin from port 5173 with its automation API on 9898. The lens shows a code: link it at http://localhost:3210/link, or tap Try.
Package for the glasses
pnpm --filter @soba/glasses packBuilds against api.usesoba.xyz and writes soba.ehpk.
CI runs pnpm lint (Biome), pnpm typecheck, pnpm -r --if-present test and the website's design lint (pnpm --filter @soba/web lint:design), then builds the website and the plugin, with Postgres as a service.