Chris Scott cbe4f7ed9e refactor(auth): reset the admin and count users through the Better Auth adapter
The admin password reset and the first-user check read and wrote the
Better Auth tables with raw SQL, so session delete hooks never ran on the
reset path.

- the admin is found with findUserByEmail and its credential account is
  updated by id with the configured password hasher
- sessions are removed with deleteUserSessions, which runs the session
  delete hooks
- a missing credential account logs a warning instead of updating nothing
- /api/auth-info/config counts users through the adapter
2026-10-24 19:26:21 -04:00
2025-11-23 22:17:21 -05:00

OpenCode Manager

A self-hosted command center for OpenCode. Sessions, git, terminal, and schedules in one web app, on your desktop and your phone.

opencodemanager.app · Docs · Releases

License Stars Latest Release PRs Welcome

The same OpenCode Manager session on a laptop and a phone

Quick Start

Requires Docker with Compose v2.

curl -fsSL https://opencodemanager.app/install | sh

The installer starts OpenCode Manager on http://localhost:5003 and asks before sharing anything from your machine. Re-run it to update. On first launch you create an admin account.

Requirements, Compose and source installs, and every feature are covered at opencodemanager.app:

Development

This repository is a pnpm workspace: backend/ (Bun + Hono), frontend/ (React + Vite), shared/ (schemas and types) and ocm-cli/ (the ocm CLI).

pnpm install
pnpm dev
pnpm lint
pnpm typecheck
pnpm test

See the Development Guide for setup, scripts, database notes and testing.

License

MIT

Languages
TypeScript 99.5%
Shell 0.3%
CSS 0.1%