WeeAgent
Installation
Deploy the edge functions
1supabase functions deploy weeagent weeagent-tts weeagent-transcribe weeagent-configSet the secrets (all optional)
Without any secret, WeeAgent still works: mock chat + browser voice. Add secrets to enable real providers.
1supabase secrets set OPENROUTER_API_KEY=sk-or-...
2supabase secrets set GROQ_API_KEY=gsk_...
3supabase secrets set ELEVENLABS_API_KEY=sk_...
4supabase secrets set ELEVENLABS_VOICE_ID=your_voice_idOPENROUTER_API_KEY— real chat models (Claude, GPT, Gemini…). Absent → mock stream.GROQ_API_KEY— speech-to-text via Whisper. Absent → browser Web Speech.ELEVENLABS_API_KEY(+ELEVENLABS_VOICE_ID) — output voice. Absent → browser synthesis.
Add the demo route
The module ships a self-contained demo page. Register it in your router:
src/App.tsx
1import WeeAgentDemo from "./pages/WeeAgentDemo";
2
3<Route path="/weeagent-demo" element={<WeeAgentDemo />} />All WeeAgent flows require a Supabase JWT (resolveUserId). Secrets stay server-side and are never shipped to the browser.