# PromptVault V24 — Live Services Backend Ready

I prepared the code so the live AI layer can be deployed without exposing provider secrets in the browser.

## Included
- `supabase/functions/vault-ai/index.ts`
  - OpenAI
  - Anthropic / Claude
  - Gemini
  - Venice
- `supabase/functions/health/index.ts`
- `src/live-services.js`
- `public/promptvault-config.js`

## Required secrets (server-side only)
Configure these in Supabase Edge Function secrets:
- `OPENAI_API_KEY`
- `ANTHROPIC_API_KEY`
- `GEMINI_API_KEY`
- `VENICE_API_KEY`

Never place these in `app.js`, `index.html`, `manifest`, or `promptvault-config.js`.

## Safe public values
`public/promptvault-config.js` needs:
- Supabase project URL
- Supabase publishable key

Those are client-facing values and are separate from your provider secrets.

## Deploy commands (when hands-on access is available)
```bash
supabase functions deploy health
supabase functions deploy vault-ai
```

Then configure the public project URL/publishable key in `public/promptvault-config.js`.

## What I could complete without touching your accounts
All code/scaffolding is prepared. What remains requires access inside your Supabase/provider accounts:
- storing provider secret keys
- deploying Edge Functions to your Supabase project
- entering the public project configuration
- verifying billing/quota and provider API access

