Plan tiers
ForgeAI has two plan tiers:Free
Access to prompt-based app generation and live preview. No credit card required.
Pro
All Free features, plus design-to-code screenshot upload and inline code editing.
Pro feature flags
Pro features are gated using Clerk feature flags. When a user upgrades to Pro, Clerk grants them the following features:| Feature flag | What it enables |
|---|---|
screenshot_upload | Upload a design screenshot to generate code from a visual spec (design-to-code). |
inline_code_edit | Open the Monaco editor to edit generated code directly in the browser. |
requirePro, which checks whether the authenticated user’s Clerk session includes the required feature flag:
lib/pro-feature.ts
If a user without a Pro subscription attempts to use a gated feature, the API returns a
403 response with { "error": "Pro is required" }. The UI surfaces this as an upgrade prompt.Configuring Clerk
Create a Clerk application
Sign in to the Clerk dashboard and create a new application. Choose your preferred sign-in methods (email, Google, GitHub, etc.).
Copy your API keys
In your Clerk application, go to API Keys and copy the publishable key and secret key.
Add keys to your environment
Add all Clerk variables to your
.env.local file:.env.local
CLERK_PUBLISHABLE_KEY and NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY should be set to the same value. The NEXT_PUBLIC_ prefix makes the key available in the browser bundle.User journey
Sign up
New users register at
/sign-up. Clerk handles credential collection, email verification, and session creation.Use the app on the Free plan
After signing in, users can create projects, write prompts, and view live previews immediately — no upgrade required.
Related pages
Environment Variables
Full reference for all Clerk environment variables.
Design-to-code
How the screenshot_upload Pro feature works end to end.
Code editor
How the inline_code_edit Pro feature works end to end.
API authentication
How Clerk sessions are validated in the API layer.