A comprehensive self-hosted authentication framework for TypeScript and Cloudflare Workers with native support for 15+ enterprise-grade plugins.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install better-auth
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install better-auth using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Better Auth is a powerful, open-source alternative to proprietary authentication services, specifically engineered for the TypeScript ecosystem and Cloudflare Workers environment. It provides developers with a robust Openclaw Skills toolkit to implement secure, scalable authentication using D1 databases through Drizzle ORM or Kysely. This framework is designed to handle everything from basic email/password sign-ins to complex enterprise requirements like SAML 2.0, SCIM provisioning, and multi-tenant organization management.
By leveraging better-auth, teams can reduce their development overhead by up to 97%, as the system automatically generates over 80 production-ready REST endpoints. This Openclaw Skills resource ensures that security best practices—such as JWT key rotation, stateless session management, and rate limiting—are baked into your application from day one without requiring extensive manual boilerplate code.
To begin using this Openclaw Skills resource, first install the necessary dependencies:
npm install better-auth drizzle-orm @cloudflare/workers-types
Ensure your wrangler.toml includes the necessary compatibility flag for AsyncLocalStorage support:
# wrangler.toml
compatibility_flags = ["nodejs_compat"]
Initialize your authentication configuration within your worker:
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
export const auth = betterAuth({
database: drizzleAdapter(db, { provider: "sqlite" }),
emailAndPassword: { enabled: true },
// ...additional configuration
});
The better-auth skill manages its data through a structured relational schema typically handled by Drizzle ORM. Below is an overview of the primary metadata organization:
| Table | Purpose | Key Metadata |
|---|---|---|
| user | Core identity | email, name, role, image, emailVerified |
| session | Active connections | userId, token, expiresAt, ipAddress |
| account | OAuth links | providerId, accountId, accessToken |
| organization | Multi-tenancy | name, slug, logo, metadata |
| api_key | Programmatic access | key, userId, rateLimitMax, expiresAt |
Note: For Cloudflare D1 compatibility, Ensure that updated_at fields are nullable to avoid insertion constraints during organization or team creation.
Loading
A systematic framework for stress-testing and validating quantitative trading strategies to ensure real-world robustness.

A full-stack authentication pattern for Microsoft Entra ID using MSAL.js in React and JWT validation via the jose library in Cloudflare Workers.

A lightweight, zero-config animation utility that provides drop-in transitions for modern web frameworks while preventing 15 common implementation errors.

A principal-level AI architect skill for designing scalable systems, documenting ADRs, and evaluating technical trade-offs.

A comprehensive framework for analyzing brand identity, conducting professional audits, and generating actionable brand guidelines.

A specialized technical analysis skill for interpreting market breadth and uptrend ratio charts to generate strategic positioning and tactical trading signals.








































