21Ai for Windows
==================

Write in Banglish, English or Bangla in any app and paste polished text.
The AI runs on this PC, or on the office server (team package).

Install
-------
Had an older version (EkushAI, Kothix or BanglaAI)? Setup removes it for you (its tray app, Start menu
shortcut and startup entry). Your settings and sign-in carry over.

1. Extract the zip (right-click > Extract All). Do not run it from inside the zip.
2. Double-click install.cmd in the extracted folder.
   - If you see "Windows protected your PC": click More info > Run anyway.
     (The app is not code-signed, so Windows does not recognise it yet.)
3. When setup finishes, the 21Ai icon appears in the system tray
   (bottom right, under ^).

Team package (folder contains server.txt): setup only installs the app and
connects it to the office server. No Ollama or model download; it takes about
a minute. It only works on the office network.

Without server.txt, setup does everything on this PC:
   - Installs and starts Ollama
   - Downloads a model (gemma3:12b, about 8 GB, with 16 GB RAM; otherwise gemma3:4b)
   - Requires Windows 10/11 64-bit, 12 GB of free disk space and internet access

Using 21Ai
--------------
- Click in any text box and tap Ctrl twice quickly (Ctrl Ctrl).
- Type what you want to say and press Enter. You can edit the result.
- Press Ctrl+Enter (or Use) to paste it into the original text box.
- The panel stays open when you click elsewhere. Close it with Esc (from any
  app), Cancel, or Use/Copy. Tap Ctrl Ctrl again to return to the open panel.
- Select someone else's message (chat, email, web page) and tap Ctrl Ctrl to
  see its meaning (choose the language in Settings). Type your reply idea, or press Enter with an
  empty box for a suggested reply. Copy (Ctrl+Enter) puts the reply on the
  clipboard; paste it with Ctrl+V.
- Copy buttons: next to the input box (your text) and in the result corner.
- The gear button in the panel opens Settings.
- Right-click the tray icon for Settings, Launch at Login and Quit.

Output language
---------------
Choose the output language from the globe menu in the panel (English, Bangla,
Hindi, Arabic and more). Manage the list in Settings > Output languages.
You can type in any language; the AI detects it automatically.

Choosing the AI
---------------
Click the AI name at the bottom left of the panel (or right-click the tray icon):
- Bangla AI (gemma3:12b): the default. Runs on the office server; your text stays there.
- Gemini Flash-Lite / Gemini 3.8 Flash: Google's AI, better with Banglish.
  Text is sent to Google, so use Bangla AI for confidential content.
  Requests per minute are limited; if you hit the limit, wait a minute.
- Grok: xAI's AI. Requires credits on the xAI account.
- 21Ai Cloud: uses your 21Ai account and plan. Choose it in
  Settings > AI and sign in with your email and password. Hits left are shown
  there; renew from the dashboard on the 21Ai website.

Troubleshooting
---------------
- "Can't reach the server": make sure the server is on and you are on the
  office network. The server address is in Settings.
- "Ollama isn't running" (local install): open Ollama from the Start menu.
- The panel opens under the mouse pointer. To open it at the text cursor:
  tray icon > Settings > "Open the panel at".
- To report a problem: tray icon > "Show debug log", then send its contents.
- Ctrl Ctrl does nothing: left-click the tray icon to open the panel.
  Windows does not allow the shortcut in apps running as administrator
  (Task Manager, etc.).
- If your antivirus blocks 21Ai: the app listens for its keyboard shortcut
  and sends Ctrl+V, which some antivirus tools flag. Add an exception for:
  %LOCALAPPDATA%\Programs\21Ai\21Ai.exe

Uninstall
---------
In this folder, Shift + right-click > "Open PowerShell window here", then run:
   .\install.cmd -Uninstall
(Ollama is separate; remove it from Settings > Apps.)
