Skip to content

Managed Credentials

Varity Team Core Contributors Updated March 2026

Varity automatically provides all the credentials your app needs. You never need to create third-party accounts or manually configure API keys.

When you deploy with Varity, credentials are handled automatically at every stage:

  1. Development — The SDK auto-uses shared development credentials. No .env setup needed to start building.

  2. Production — When you run varitykit deploy, the CLI fetches production credentials from Varity’s credential proxy and injects them into your build.

  3. Runtime — Your deployed app uses managed credentials. Users never see API keys or configuration prompts.

Developer runs: varitykit deploy
|
CLI fetches credentials from Varity's credential proxy
|
Credentials injected into build automatically
|
App deployed with everything configured

Varity provides credentials for:

ServiceWhat It CoversDeveloper Action
AuthenticationUser login (email, social)None required
File StorageUploads, CDN deliveryNone required
InfrastructureNetwork access, operationsNone required

During local development, the SDK automatically uses shared development credentials:

import { db, resolveCredentials, VARITY_DEV_CREDENTIALS } from '@varity-labs/sdk';
// Check which credentials are active
const creds = resolveCredentials();
// In development, this returns VARITY_DEV_CREDENTIALS automatically
// Use the database — credentials are resolved for you
const users = db.collection('users');
await users.add({ name: 'Alice', role: 'admin' });

When you deploy, the CLI handles everything:

Terminal window
varitykit app deploy

Output:

✓ Credentials: Auto-provided
✓ Build complete
✓ Deployed successfully
✓ URL: https://your-app.varity.app

No manual credential setup required.

  • Rate-limited — Credential proxy enforces per-app rate limits
  • API key authenticated — CLI uses embedded API keys to authenticate with the proxy
  • Credentials never stored on disk — Injected at build time only
  • Isolated per app — Each app receives its own credential scope

Run the doctor command to verify your credential status:

Terminal window
varitykit doctor
Checking environment variables...
✓ Credentials: Auto-provided
✓ Storage API: Accessible
Advanced: Using Your Own Credentials

Varity manages these credentials automatically. Only use this if you need custom configuration.

Power users can override managed credentials with their own. Set these environment variables to use your own accounts:

  1. Create an account at dashboard.privy.io
  2. Create a new app and copy your App ID
  3. Add to your .env.local:
.env.local
NEXT_PUBLIC_PRIVY_APP_ID=your_privy_app_id
  1. Create an account at thirdweb.com/dashboard
  2. Create a project and copy your Client ID
  3. Add to your .env.local:
.env.local
THIRDWEB_CLIENT_ID=your_thirdweb_client_id

When these variables are set, the SDK and CLI will use your credentials instead of the managed ones.