You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: make CLI/SDK work standalone without backend
Enable LevelCode to run fully standalone without requiring the
LevelCode backend server. Users provide their own API keys directly.
SDK changes:
- Make standalone mode default when NEXT_PUBLIC_LEVELCODE_APP_URL not set
- Add direct OpenRouter model support via OPENROUTER_API_KEY env var
- Add direct Anthropic model support via ANTHROPIC_API_KEY env var
- All database functions gracefully no-op in standalone mode
- Export isStandaloneMode for CLI consumption
CLI changes:
- Remove referral system (not available in open-source mode)
- Remove credits/billing tracking (unlimited in standalone)
- Remove out-of-credits banner (never shown in standalone)
- Make ads gracefully degrade when backend unavailable
- Simplify auth to accept direct API keys without web login
- Skip backend validation in standalone mode
- Make agent publishing unavailable in standalone mode
- Make PostHog analytics no-op when keys not configured
- Always report connected status in standalone mode
39 files changed, -874 lines net reduction.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
`🎉 Noice, you've earned an extra ${creditsRedeemed} credits!\n\n`+
54
-
`(pssst: you can also refer new users and earn ${CREDITS_REFERRAL_BONUS} credits for each referral at: ${env.NEXT_PUBLIC_LEVELCODE_APP_URL}/referrals)`,
0 commit comments