Why It Matters
Without the Knowledge Base, agents would:- Generate placeholder API calls (
YOUR_API_KEY_HERE) - Guess at API response formats
- Miss integration-specific edge cases
- Produce code you’d need to manually update with real credentials
- Use your actual API keys in environment configuration
- Reference real documentation for accurate implementation
- Build working integrations from the start
- Handle authentication and error cases correctly
Adding API Keys
From your project dashboard, navigate to the Knowledge Base section and add your keys. pre.dev recommends integrations based on your project type:Supported Integrations
AI Services
AI Services
| Category | Services |
|---|---|
| AI Text | OpenAI, Anthropic, Mistral, Groq |
| AI Image | DALL-E, Stability AI, Midjourney API |
| AI Video | Runway, Luma |
| AI Audio | ElevenLabs, AssemblyAI |
| Search | Exa, Tavily, You.com |
| Web Scraping | Firecrawl, Browserbase |
Infrastructure & Services
Infrastructure & Services
| Category | Services |
|---|---|
| Payments | Stripe, PayPal |
| Resend, SendGrid, Mailgun | |
| Auth | Clerk, Auth0, Supabase Auth |
| Database | Supabase, PlanetScale, Neon |
| Storage | AWS S3, Cloudflare R2, Uploadthing |
| Analytics | PostHog, Mixpanel, Amplitude |
How Agents Use Keys
When a build agent encounters a task that requires an external service:- It checks the Knowledge Base for relevant API keys
- If found, it uses the key in environment configuration (
.envfiles, secrets) - It references the service’s documentation for correct implementation
- The resulting code works with your actual accounts
Documentation References
In addition to API keys, you can add documentation URLs to the Knowledge Base:- Framework docs — React, Next.js, Django, Rails, etc.
- API docs — Stripe API, Twilio, SendGrid, etc.
- Compliance docs — HIPAA, GDPR, PCI-DSS guides
- Internal docs — Your team’s style guides or architecture decisions
Security
API keys are encrypted at rest and only accessible to build agents in sandboxed environments. Keys never appear in generated code — they go in
.env files.- Keys are project-scoped — they don’t leak across projects
- You can revoke or rotate keys at any time
- Sandbox isolation means zero risk to your accounts
Best Practices
- Add docs for uncommon services — If you’re using a niche API, add its docs so agents get it right
- Review .env files in PRs — Verify keys are referenced correctly, not hardcoded

