From sarmalink-ai
Guides SarmaLink-AI initial setup: npm install, Supabase project creation/migration, AI provider API keys (Groq required), .env.local config. Use for fresh installs, deploys to Vercel, or 'help me set up'.
npx claudepluginhub sarmakska/sarmalink-aiThis skill uses the workspace's default tool permissions.
You are helping a user set up SarmaLink-AI — an open-source multi-provider AI assistant with automatic failover across 36 engines and 7 providers.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Explores codebases via GitNexus: discover repos, query execution flows, trace processes, inspect symbol callers/callees, and review architecture.
Share bugs, ideas, or general feedback.
You are helping a user set up SarmaLink-AI — an open-source multi-provider AI assistant with automatic failover across 36 engines and 7 providers.
Read these files for full context:
CLAUDE.md — project overview and architecture.env.example — all environment variablessupabase/migrations/001_sarmalink_ai.sql — database schemanpm install
Verify it completes without errors. If node_modules/ already exists, skip.
Tell the user:
https://)eyJ)eyJ, keep this secret)Ask the user to paste all three values.
Tell the user:
supabase/migrations/001_sarmalink_ai.sql and tell the user to paste it into the SQL editorai_chat_sessions, ai_chat_usage, ai_events, ai_user_memoriesRequired — Groq (free):
gsk_)Ask the user to paste it.
Then offer optional providers — all free, all increase capacity:
| Provider | What it adds | Signup URL |
|---|---|---|
| SambaNova | DeepSeek V3.2 (685B) — frontier reasoning | https://cloud.sambanova.ai |
| Cerebras | 2,000 tok/sec ultra-fast inference | https://cloud.cerebras.ai |
| Google Gemini | Live web search grounding | https://aistudio.google.com/app/apikey |
| OpenRouter | 17+ free fallback models | https://openrouter.ai |
| Tavily | Web search (1,000/month) | https://app.tavily.com |
| Cloudflare | Image generation + R2 file storage | https://dash.cloudflare.com |
For each one the user wants, walk them through signup and key creation. Don't push — more keys = more capacity, but Groq alone works fine.
Read .env.example and create .env.local with the user's actual values:
cp .env.example .env.local
Then edit .env.local — fill in all the keys the user provided. Ask them:
NEXT_PUBLIC_APP_NAMENEXT_PUBLIC_COMPANY_NAMENEXT_PUBLIC_HOME_REDIRECT="/login" (or their preferred landing page)Run in order:
npx tsc --noEmit # Should complete with no output (= no errors)
npm test # Should show 90 tests passing
npm run build # Should complete with ✓ marks
If anything fails, read the error and fix it. Common issues:
.env.localnpm install againnpm run dev
Tell the user to open the URL shown (usually http://localhost:3000). They should see the app. First signup creates their account.
If the user wants a public URL:
.env.localtheir-app.vercel.appIf the user wants to restrict signups:
ADMIN_EMAILS=their@email.com in env vars to protect /api/admin/healthIf you fixed any bugs or improved anything during setup:
npm install — build and tests will fail on missing modulesNEXT_PUBLIC_APP_URL — OpenRouter requests may be rejected (wrong referer header)npm run dev and try a chat message to verify each provider worksUser sends message
|
Auto-router (regex, instant) --> Smart / Reasoner / Live / Fast / Coder / Vision
|
Live tools fire first (exchange rates, weather, tracking)
|
Failover engine (up to 14 steps):
Step 1: SambaNova DeepSeek V3.2 --> try all keys
Step 2: Groq GPT-OSS 120B --> try all keys
...
Step 14: OpenRouter Nemotron Nano :free
|
Each step: if 429/5xx --> next step in <50ms
|
Stream tokens via SSE --> render markdown --> save to Supabase
|
Extract memories in background
Built by Sarma Linux — https://sarmalinux.com