Codex Laboratories (Code Smith)
AI-native IDE plus the commercial SaaS platform that powers it - accounts, plans, metering, billing, and enterprise control
About
Codex Laboratories is the commercial platform and flagship development environment of the Codex estate: the standalone website plus SaaS backend behind codexlabsai.com and the Code Smith desktop IDE. WHAT IT OWNS The platform is the system of record for identity, accounts, organizations, plans, subscriptions, pricing, entitlements, usage metering, billing, invoices, Enterprise sales intake and administration. The Code Smith desktop application connects through a frozen /api/v1 contract covering token exchange, entitlements, usage reporting and installations, so desktop releases can ship independently without breaking the backend. PRODUCT SURFACE - Public marketing site: home, features, pricing, docs, security, FAQ, contact, enterprise, support and status pages - Customer dashboard: account console, organizations and invites, subscription management, support tickets - Admin console: role-gated platform management and a staff support queue with assignment, priority control, internal notes and threaded replies - Support desk: public help center with curated knowledge base and search, plus a live-probe status page - Code Smith IDE: AI-assisted development environment with Ask Sybil agents, DAP debugging, semantic code search, integrated PTY terminal, Git with LFS, and 114 configurable settings controls ARCHITECTURE - Next.js 16 App Router + React 19 + TypeScript, custom design system on Tailwind CSS 4 - Prisma 6 + SQLite datastore with full migration history - Custom authentication: bcrypt passwords, hashed opaque web sessions, JWT access tokens with rotating refresh tokens for installations - Stripe Checkout + Billing Portal + signed webhooks; billing degrades cleanly to BILLING_UNCONFIGURED without keys ENGINEERING INVARIANTS 1. Server is authoritative for pricing, entitlements and billing - client amounts are ignored. 2. Money is integer micros (bigint) end to end; no floats anywhere in the money path. 3. Tokens are stored hashed; raw values exist only in responses and cookies. 4. Tenant isolation: every org-scoped query passes through requireOrgRole. 5. Idempotent ingestion: requestId dedupes usage records; PaymentEvent dedupes Stripe webhooks with record-then-process ordering so retries always succeed. 6. Versioned pricing: live PricingRule rows are never edited; a higher version with a new effectiveFrom supersedes them. 7. No prompts or source code in usage records - measurements only. OPERATIONS Transactional email through Resend with console fallback in dev; email verification with 24-hour links; audit logging across ticket and admin operations; attachment pipeline with type allowlist and owner/staff-only downloads; per-IP rate limiting; PM2 supervision behind a Cloudflare tunnel. WHY IT MATTERS TO INVESTORS This is the monetization spine of the entire portfolio: every other Codex product funnels identity, billing or support through it. The frozen API contract, idempotent money handling and tenant isolation are the same primitives later products inherit, which compounds the value of the platform with each launch.
Media & Materials
Milestones3 of 7 completed
- Commercial spine liveIdentity, accounts, orgs, plans, subscriptions, entitlements, metering and Stripe billing on the frozen /api/v1 contract
- Support desk + status infrastructureCurated help center with search, threaded ticket queues with internal notes, live-probe status page
- Code Smith IDE shippedAsk Sybil agents, DAP debugging, semantic search, PTY terminal, Git with LFS, 114 settings controls
- Enterprise motionSSO/SAML, contract billing, org hierarchies and the sales-inquiry pipeline
- Managed Postgres migration pathScale the SQLite-backed datastore to managed Postgres as volume grows
- SOC 2 readinessCompliance program, evidence collection and audit preparation for enterprise buyers
- Multi-region deploymentRegional presence for latency and data-residency requirements
Funding Readiness
Scale the commercial spine that every other Codex product depends on: (1) engineering on the /api/v1 contract, entitlement engine and versioned pricing system so new products monetize on day one; (2) Enterprise motion - sales tooling, SSO/SAML, org hierarchies and contract billing; (3) IDE distribution - installers, update channels, crash telemetry and license gating for Code Smith; (4) infrastructure - migration from SQLite to managed Postgres, multi-region deployment and observability; (5) support and trust operations - staffed help desk, status infrastructure and compliance work (SOC 2 readiness) that enterprise buyers require.
B2C and B2B SaaS: tiered Code Smith subscriptions metered through the entitlements system, organization plans with per-seat pricing, usage-based overage via the metering pipeline, and Enterprise contracts sold through the intake pipeline. Stripe handles card processing; the server remains authoritative for pricing so no client can self-discount. Expansion revenue comes from seat growth inside orgs and from cross-sell as each estate product (Analytics, Ads, Ask Sybil, Veylora) routes customers back to this account and billing spine.
Planning targets only. This is not a securities offering, and no investment commitments or payments are accepted on Hub Share.
Team
- ADAdmin UserLead