A zero-install AI chatbot that runs directly in Windows CMD. No Python. No Node.js. No setup. Just configure and chat.
CMD → Cloudflare Worker → Groq API → Response printed in CMD
Most AI chatbots require installing Python, Node.js, or some other runtime. This one uses only what Windows already has built in — curl and CMD. Nothing is installed, nothing is left behind on the host PC.
- ✅ Zero installs — works on any Windows 10/11 PC out of the box
- ✅ No traces — nothing saved on the host PC after you exit
- ✅ API key never exposed — hidden inside Cloudflare Worker
- ✅ Protected — secret token blocks unauthorized access to your Worker
- ✅ Portable — run from a USB or a single memorized command
- ✅ Free — Cloudflare free tier (100k requests/day) + Groq free tier
cmd-chatbot/
├── worker.js # Cloudflare Worker middleware code
├── chatbot.bat # Windows CMD chatbot script
└── README.md # This file
- Go to console.groq.com
- Sign up and go to API Keys
- Click Create API Key and copy it
- Go to cloudflare.com and sign up free
- Dashboard → Workers & Pages → Create Worker
- Name it anything (e.g.
chatbot) - Click Deploy then Edit Code
- Delete the default code and paste the contents of
worker.js - Click Deploy
- Go to Settings → Variables and Secrets → add these two:
| Variable Name | Value |
|---|---|
GROQ_API_KEY |
Your Groq API key |
ACCESS_TOKEN |
A secret word you choose (e.g. superman24) |
- Click Deploy again
Open chatbot.bat and update these two lines:
set TOKEN=your_secret_token_here ← replace with your ACCESS_TOKEN
set WORKER_URL=https://your-worker-name.your-subdomain.workers.dev ← your Worker URLDouble click chatbot.bat or run in CMD:
chatbot.batYou type a message in CMD
↓
bro.bat sends it to your Cloudflare Worker via curl
↓
Worker verifies your secret token
↓
Worker calls Groq AI API with your message
↓
Groq returns a response
↓
Worker sends back plain text
↓
curl prints it directly in CMD
- Your Groq API key is never in the bat file — it lives inside Cloudflare's encrypted environment variables
- The ACCESS_TOKEN blocks anyone who finds your Worker URL from using your API credits
- The bat file clears the screen on exit leaving no chat history on the host PC
| Layer | Technology |
|---|---|
| Client | Windows CMD + curl (built-in) |
| Middleware | Cloudflare Workers (free tier) |
| AI Model | Groq — llama-3.3-70b-versatile |
Arun Balaji. V 🔗 linkedin.com/in/arun-balaji-v | 📧 arunbalajiii2004@gmail.com
MIT — free to use and modify