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

TierTechnologyBest for
โšก LitePure browser JS (neural nets, Markov LM)Instant demos, offline use
๐Ÿง  ProEdge KB (500+ topics) + cloud fallbackQuick answers, research
๐Ÿ‘‘ MAX ULTRAMassive edge KB, no cloudDeep knowledge, zero latency
๐Ÿ’ป CodeCode KB + Groq streamingProgramming, file sandbox
โ˜๏ธ CloudGroq, OpenRouter, CF AI, local OllamaFull AI chat with streaming
๐ŸŒ BrowseWeb scraper + AI navigationWeb research agent

Available Models

SourceCountExamples
๐Ÿ’ป Local Ollama6llama3.2, deepseek-r1, llava, minicpm-v
๐Ÿฆ™ Ollama Cloud9gpt-oss:20b, gemma3, gemma4, qwen3-coder
โ˜๏ธ OpenRouter22gpt-oss-120b, llama-3.3-70b, nemotron-550b
โšก Groq4llama-3.3-70b, mixtral-8x7b, gemma2-9b
๐Ÿ”ถ CF Workers AI6llama-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

MethodEndpointPurpose
POST/api/auth/signupCreate account
POST/api/auth/loginSign in โ†’ returns token
GET/api/auth/meGet current user (Bearer token)
POST/api/auth/logoutEnd 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

SecretRequired?Purpose
OPENROUTER_API_KEYYesOpenRouter models + fallback
GROQ_API_KEYNoFast Groq models
RESEND_API_KEYNoEmail sending
OLLAMA_API_KEYNoOllama Cloud (deprecated)

luisAI ยท Free & Open Source ยท Built with Cloudflare Workers