ASK ARCHIE COMPANION: START HERE

The Companion is one small program on your own computer. With it Ask Archie can:
  - render your LONG videos (over 90 seconds) on your computer and keep them there. This is free for everyone.
  - build with your own coding agent, and use your own local AI. These need the local coding unlock in Ask Archie.
  - open Archie's Emergency chat module, which works with no internet.

THREE STEPS. There is no npm install and no code to type.

TWO STAGES: pairing is only the first. Pairing (step 3) joins this computer to your account. The Companion has to be RUNNING (its window open, or started with your computer) for anything to work. If Ask Archie says Paired but not Ready, start it again (step 2): your connection is still valid.

1. Install Node.js (the "LTS" version) from https://nodejs.org if you do not have it. To check, open a terminal (PowerShell on Windows, Terminal on Mac or Linux) and run:  node -v  . A version number means you are ready.

2. Start it.
     Windows: double-click   Start Companion.cmd   (some unzip tools make a folder inside a folder: open the INNER folder, the one that contains companion.js and package.json, before you run anything).
     Mac or Linux: open a terminal in this folder and run   node companion.js

3. Your browser opens on askarchie.net asking you to confirm that this computer may connect to your account (you must be signed in there). Confirm it. The Companion badge at the top of Ask Archie turns green and says Ready.

WANT IT TO START BY ITSELF? Double-click   Start with Windows - turn on.cmd   (or run: node companion.js startup on). From then on it starts, with no window, whenever you sign in to your computer, so "Render on my computer" just works. Turn it off with   Start with Windows - turn off.cmd   (or: node companion.js startup off). On a Mac the same command makes a login item; the Mac version is provided but we have not tested it.

VIDEOS: render long videos with the Render button in the Video Editor (or Render on my computer). If it says ffmpeg, the free video tool, is missing, run:   node companion.js ffmpeg   . On Windows it can fetch it for you after asking. Finished videos are saved in your Videos folder, in Ask Archie Renders.

CODING (needs the local coding unlock): optional extras like the tray icon need one more step, "npm install", but the Companion works without them.

ARCHIE'S EMERGENCY CHAT MODULE: to talk to the AI on your own computer with no internet, run this in the same folder (it needs Ollama or LM Studio with a model, and works with the cable pulled):
       node companion.js chat
It opens a chat window. Nothing you type leaves your computer. To put a shortcut on your Windows Desktop run: node companion.js chat --shortcut

TO STOP: press Ctrl+C in the window, or press Stop device in Settings. Your connection stays valid: start it again whenever you like. If you ever need to connect it again (Revoke in Settings), just start it: the browser opens again.
