luisAI
A free, open-source AI platform powered by Cloudflare Workers. 6 AI tiers, 50+ models, API access, email, Discord bot, mobile app โ all running on the edge.
๐ฏ What is luisAI?
luisAI is a multi-tier AI platform that combines local browser-based AI (neural nets, Markov chains) with edge-powered knowledge bases and cloud model APIs (Groq, OpenRouter, Cloudflare AI). Everything is free. No API keys needed to use it.
AI Tiers
| Tier | Technology | Best for |
|---|---|---|
| โก Lite | Pure browser JS (neural nets, Markov LM) | Instant demos, offline use |
| ๐ง Pro | Edge KB (500+ topics) + cloud fallback | Quick answers, research |
| ๐ MAX ULTRA | Massive edge KB, no cloud | Deep knowledge, zero latency |
| ๐ป Code | Code KB + Groq streaming | Programming, file sandbox |
| โ๏ธ Cloud | Groq, OpenRouter, CF AI, local Ollama | Full AI chat with streaming |
| ๐ Browse | Web scraper + AI navigation | Web research agent |
Available Models
| Source | Count | Examples |
|---|---|---|
| ๐ป Local Ollama | 6 | llama3.2, deepseek-r1, llava, minicpm-v |
| ๐ฆ Ollama Cloud | 9 | gpt-oss:20b, gemma3, gemma4, qwen3-coder |
| โ๏ธ OpenRouter | 22 | gpt-oss-120b, llama-3.3-70b, nemotron-550b |
| โก Groq | 4 | llama-3.3-70b, mixtral-8x7b, gemma2-9b |
| ๐ถ CF Workers AI | 6 | llama-3.3-70b-fp8, deepseek-r1-32b, qwq-32b |
Quickstart
No setup required. Just open the website and start using any tier.
# Web App
open https://ollama-cloud.luishae0701.workers.dev
# Mobile PWA
open https://ollama-cloud.luishae0701.workers.dev/mobile
# API (no key needed)
curl https://ollama-cloud.luishae0701.workers.dev/api/chat \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello!"}]}'
API: Chat
POST /api/chat
Send a chat message to any model. Supports streaming via SSE.
curl .../api/chat -H "Content-Type: application/json" -d '{
"model": "groq/llama-3.3-70b-versatile",
"messages": [{"role": "user", "content": "Explain quantum computing"}],
"stream": false
}'
Response:
{
"message": {"role": "assistant", "content": "Quantum computing uses..."},
"model": "llama-3.3-70b-versatile",
"done": true,
"tok": 156
}
API: Mini Ask
POST /api/mini-ask
Knowledge base Q&A with cloud fallback.
curl .../api/mini-ask -d '{"question": "What is a neural network?"}'
Response: {"answer": "...", "source": "local", "match": "75%"}
API: Code Ask
POST /api/code-ask
Code-specific knowledge base.
curl .../api/code-ask -d '{"question": "binary search", "lang": "Python"}'
API: Models List
GET /api/tags
Returns all available models across all sources.
API: Image Generation
POST /api/generate-image
Generate images using Flux AI.
curl .../api/generate-image -d '{"prompt": "A futuristic city at sunset"}'
Response: {"image": "data:image/png;base64,...", "prompt": "..."}
API: Auth
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /api/auth/signup | Create account |
| POST | /api/auth/login | Sign in โ returns token |
| GET | /api/auth/me | Get current user (Bearer token) |
| POST | /api/auth/logout | End session |
Browse Agent
AI navigates websites for you. Enter a URL, AI reads the page, extracts links, and can click through pages to find what you need.
URL: /browse or use the Browse tab in the app.
Temp Email
Instant disposable email addresses. Receive emails, compose and send via Resend SMTP. No signup required.
URL: /email
Mobile App (PWA)
Install as a native app on iOS/Android. Fullscreen, offline support, custom icon.
URL: /mobile โ open in browser, tap "Add to Home Screen".
Discord Bot
# Commands:
!ask <question> โ luisAI Pro
!code <lang> <q> โ luisAI Code
!cloud <question> โ luisAI Cloud
!models โ List all models
!luisai โ Help
Bot source: /Users/luisip/small-ai/luisai_bot.py
Terminal Client
python3 luisai_tui.py
Commands:
any question โ AI answers
!ls -la โ Run terminal command
!!print(1+1) โ Run Python code
!!>file.py โ Save + run AI code
/code โ Code mode
/ask โ Pro KB mode
Source: /Users/luisip/small-ai/luisai_tui.py
Model Compare
Side-by-side model comparison. Pick 2 models, one prompt, both answer simultaneously. Vote for the better one.
URL: /compare
History Roast
Upload your browser history, AI roasts your entire personality with Gen Z slang.
URL: /roast
Self Host
git clone <repo>
cd ollama-cloud
npm install
# Add your API keys:
npx wrangler secret put OPENROUTER_API_KEY
npx wrangler secret put GROQ_API_KEY
npx wrangler secret put RESEND_API_KEY
# Deploy:
npx wrangler deploy
npx wrangler pages deploy public --project-name luisai
Required Secrets
| Secret | Required? | Purpose |
|---|---|---|
OPENROUTER_API_KEY | Yes | OpenRouter models + fallback |
GROQ_API_KEY | No | Fast Groq models |
RESEND_API_KEY | No | Email sending |
OLLAMA_API_KEY | No | Ollama Cloud (deprecated) |
luisAI ยท Free & Open Source ยท Built with Cloudflare Workers