What is Connection Info
The Connection Info tab shows your OptiDev Cloud API credentials and database connection details. These values are used to connect your app to your backend services.API Credentials
API URL
The web address for your OptiDev Cloud backend. This is used to make API calls to your database, authentication, storage, and edge functions. Example:https://abcdefghijklmnop.supabase.co
Publishable Key
Your public API key that’s safe to use in your app’s frontend code. This key has limited permissions and can be exposed in client-side code. Example:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Copying Credentials
Click the copy icon next to any value to copy it to your clipboard. These values are automatically added to your project’s.env.local file when you activate OptiDev Cloud.
Database Connection
Click the Connect button to access your PostgreSQL connection details for use with database clients, ORMs, and other tools.Connection String Formats
When you click Connect, you’ll see a modal with connection strings in 9 different formats: 1. URI Standard PostgreSQL connection string format:Security Note
The password is masked in the display (shown as••••••••) but copies correctly when you click the copy button. Select the format that matches your development tools.
Session Pooler
OptiDev Cloud uses a session pooler on port 5432 for full PostgreSQL compatibility. This provides:- Better connection management for high-traffic applications
- Support for all PostgreSQL features and extensions
- Compatibility with any PostgreSQL client or ORM
Environment Variables
When you activate OptiDev Cloud, these environment variables are automatically added to your project:Frontend Variables
Using Connection Info in Your App
Frontend (React/Vue/etc)
Edge Functions (Deno)
Direct Database Access (Node.js)
For Developers
Technical Reference
Technical Reference
API Key Types
Publishable Key (anon key)- Limited to Row Level Security (RLS) policies
- Can be safely exposed in client-side code
- Used for frontend applications
- Rate-limited to prevent abuse
- Bypasses Row Level Security (RLS) policies
- Has full admin access to your database
- Should only be used in secure backend environments
- Never expose in frontend code or public repositories
Connection Pooling
OptiDev Cloud provides two connection modes:Session Pooler (Port 5432)- Full PostgreSQL compatibility
- Supports all PostgreSQL features
- Used for complex queries and transactions
- Recommended for most use cases
- Optimized for high-concurrency scenarios
- Limited to single-transaction queries
- Not suitable for prepared statements or session variables
Connection Limits
Each OptiDev Cloud project has connection limits based on your plan:- Free tier: 60 concurrent connections
- Pro tier: 200 concurrent connections
- Enterprise: Custom connection limits
Security Best Practices
- Never commit credentials to version control
- Use environment variables for all sensitive data
- Rotate passwords regularly for production databases
- Use service role key only in backend code
- Enable Row Level Security on all tables
- Monitor connection usage to prevent exhaustion