Workspaces (organization)
Every workspace maps 1:1 to a strict Firecracker & KMS tenant boundary (tenant_id).
tenant_orclith_opsWorkspace Members & Invites
Role-scoped membership inside tenant_orclith_ops.
Scoped API Keys (apiKey)
Keys are SHA-256 hashed server-side and shown strictly once upon creation. Existing rows never expose raw key material.
Multi-Device Client Connections
Connect CLI, Desktop, and Mobile surfaces using the same zero-secret Better Auth identity plane and short-lived EdDSA/RS256 JWTs.
Run interactive device flow login in any terminal and approve the code at /device, or pass a scoped orc_* API key in CI pipelines.
orclith login # Opens /device?user_code=XXXX-XXXX
Authenticates via /device approval and exchanges session tokens for 15-minute JWKS-signed JWTs via /api/auth/token.
Uses trusted custom URI scheme orclith:// with SecureStore bearer tokens and live SSE approvals on the go.