7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
import { createUser, createSession } from '../../services/auth.js';
// Dashboard /api/* routes are gated by requireAuth (#35). Tests mint a session
// token once (after initDb) and attach it to gated requests.
export function mintDashboardToken(email = '[email protected]'): string {
const user = createUser(email, 'password123');
return createSession(user.userId);
}
// Gated = under /api/ but not the public bootstrap routes (/api/auth/*, /api/ping).
export function isGatedApiPath(path: string): boolean {
return path.startsWith('/api/') && !path.startsWith('/api/auth') && path !== '/api/ping';
}