This is a demo application (inspired by leading genAI apps like V0, Claude, etc.) to demonstrate programmatic Clerk resource access, including but not limited to application creation with PK & SK retrieval, and application transfers to other users' workspaces.
This is made possible by the Clerk Platform API (currently in private beta)
Populate environment variables
cp .env.example .envInstall deps
bun iGenerate the api client
bun run api:generateFor Vercel Sandbox access, configure the Vercel OAuth app as a public client and register this callback URL:
https://YOUR_APP/api/vercel-connection/callback
The app needs openid and offline_access scopes, Project: Read, and Sandbox management
permissions. After changing Vercel App permissions, users must reauthorize the app. Each visitor
then explicitly selects the Vercel team and project Clark may use. Clark does not read deployment
environment variables or .vercel metadata to select that scope.
For OpenRouter access, set OPENROUTER_TOKEN_ENCRYPTION_KEY to a random value with at least
32 characters. Clark uses the OpenRouter PKCE flow at /api/openrouter-connection/callback and
stores the user API key encrypted.
Run the app
bun run dev
This project was originally cloned from https://oss-vibe-coding-platform.vercel.app/