LunisLunis

Documentation

Everything about how Lunis works, from install to the classroom. For the full source and issue tracker, see the GitHub repo.

Overview

Lunis is an offline learning server for schools with no reliable internet. You install it on one Windows or Ubuntu computer. That machine runs a web app, an AI tutor, and a translator, all locally. Students connect to it over Wi-Fi from tablets, phones, or laptops and open it in a browser — nothing is installed on their devices, and nothing needs an internet connection once the server is set up.

Lunis is built to be given away. It's for schools and learning centres that can't pay for software, running on older computers they already have.

Non-commercial only
Lunis is not sold, and it is not used to make money — the video lessons it installs carry a license that requires this. See Content & licensing.

Features

14 features across four areas. Everything below ships in the base install — nothing is a paid add-on.

Core learning
FeatureWhat it does
Reading Hub85 illustrated books, levelled kindergarten to grade 4, each with a comprehension quiz.
Homework HelperA chat tutor that answers in plain language, powered by a language model on the server.
Video lessons127 captioned math lessons for grades K–8.
Ask about this lessonA question box on each lesson that answers from that lesson's own transcript.
Assessment
FeatureWhat it does
Lesson quizzesA short quiz attached to each video lesson.
Unit testsLonger tests covering a whole topic.
Teacher testsTeachers write their own tests, assign them, and see results.
Classroom management
FeatureWhat it does
Teacher dashboardClass overview, per-student progress, and test results.
Activity historyA calendar view of what each student did and when.
Classes & join codesStudents join with a short code; teachers approve or reject requests.
Access & accounts
FeatureWhat it does
AchievementsBadges for finishing books, lessons, and quizzes.
Read aloudText on screen can be spoken for early readers.
Four languagesEnglish, French, German, and Spanish — interface, books, and tutor.
Accounts & progressEach student has a login; progress is stored on the server.

Device tiers

Everything except the AI tutor is fast on any machine, since it's just files sent over a local network. The tutor is what decides which tier a device needs.

LowMediumHigh
CPU2 cores, no AVX24 cores, AVX28+ cores
RAM4 GB8 GB16 GB
Free storage4 GB8 GB8 GB
First answer after boot~2 min~2 min<1 min
Simple question30–60s~30s<10s
Comfortable class size3–55–1015+
Reference machine
The Medium column is a real 2012 Intel i5 laptop with 8 GB of RAM — nothing exotic. Two things matter more than the rest: RAM over cores (the model needs about 2.5 GB resident, or the machine starts swapping), and AVX2 (a CPU without it runs the model at roughly half speed).

Requirements & install

  • One computer to be the server: a laptop or PC running Windows 10 or 11, or Ubuntu. 8 GB of memory is comfortable; 4 GB works.
  • Internet during the install only — about 2.5 GB to download. After that, none.

Student devices need nothing but a web browser. Any phone, tablet, Chromebook, or laptop works.

Plug the computer in and leave 30 to 60 minutes. Most of that is downloading the AI model, the translator, and the video lessons. Both installers are on the latest GitHub release.

Windows

  1. Download LunisSetup.exe.
  2. Double-click it. If Windows says “Windows protected your PC,” click More info, then Run anyway.
  3. Click Next through the setup. When Windows asks for permission, click Yes.
  4. The last page shows the Wi-Fi name, the password, and the address. Write them on the board.

Ubuntu

  1. Download lunis-installer-ubuntu.run.
  2. Open Terminal and type the command below.
  3. Type your password when it asks.
  4. At the end it shows the Wi-Fi name, the password, and the address. Write them on the board.
bash ~/Downloads/lunis-installer-ubuntu.run

That's all. Lunis starts by itself every time the computer is turned on.

No internet at the school?
You can install from an offline bundle on a USB stick or SD card, or build from the source code. See WINDOWS_SERVER.md for Windows or SERVER_SETUP.md for Ubuntu.

First run

1
Open the address
The installer shows it on its last screen. Open it in a browser on the server itself, or on any device on the same network.
2
Pick a language
Only shown the very first time anyone opens Lunis on this server — it sets the default for the whole install.
3
Create your teacher account
Choose “Create an account,” then pick a username and password. This becomes the first teacher account.
4
Create your first class
Made from the dashboard. Lunis generates a short join code for it automatically.
5
Hand out the join code
Give students the access code and the server address — that's all they need to get in.

Connecting student devices

The server makes its own Wi-Fi, so no router and no internet are needed.

Lunis server
port 8090
Wi-Fi, no internet needed
Phone
Tablet
Laptop
  1. On the student's device, join the Wi-Fi the installer showed (Lunis, unless you chose another name) with its password.
  2. If the phone warns that the network has no internet, choose Stay connected.
  3. Open the browser and go to the address: http://lunis.lan on an Ubuntu server, or http://192.168.137.1:8090 on a Windows server.

A Windows server takes up to 8 devices at once. For more, or if the computer has no Wi-Fi, use any Wi-Fi router (it needs no internet) and open http://<server-ip>:8090.

For students

Signing in

A student picks “I'm a Student,” then signs in or creates an account. To join a class they enter the join code the teacher gave them; the teacher approves the request from the dashboard.

Reading Hub

A student picks a level, then a book cover. Each book opens one spread at a time, picture and text together, with a read-aloud button for readers still learning to decode. A short quiz at the end marks the book complete and counts toward a badge.

Homework Helper

The student picks a subject and grade by tapping a card, then types a question in their own words. The conversation stays on screen, so a follow-up doesn't mean repeating yourself. On the reference machine, a simple question takes about 30 seconds to answer.

Video lessons

Browsed by grade, then topic. Each lesson plays with captions; a question box underneath answers using that lesson's own transcript. A short quiz follows the video.

Tests & achievements

Tests a teacher has assigned appear on the student's home screen and are marked as soon as they're submitted. Badges are earned for finishing books, lessons, and quizzes.

Changing language

The language selector switches the whole interface, the books, and the tutor. A student's choice is remembered.

For teachers

The dashboard

The dashboard has three sections: Overview, Progress, and Tests.

Classes and students

Create a class and it's given a join code. Students who enter it appear as pending requests for you to approve or reject. You can also add a student directly, set their grade, remove a student, or regenerate the join code.

Progress

Shows each student and what they've completed — lessons watched, books finished, quiz scores. Activity history is a calendar, so you can see which days a student worked and open any day to see exactly what they did.

Tests

Build a test by writing questions and answers, then assign it to specific students. Results come back as students submit.

Settings

Covers the teacher password and how long student records are kept before being cleared.

Content & licensing

The educational content comes from three outside sources, all of which allow redistribution.

SourceTitlesLicense
African Storybook Project, via Global ASP30CC BY 4.0
Pratham Books / StoryWeaver, via Global ASP25CC BY 4.0
Project Gutenberg30Public domain

The 127 video lessons are math content for grades K–8 from Khan Academy, licensed CC BY-NC-SA 4.0 — shareable and adaptable with credit, but never sold or relicensed. Quizzes, lesson notes, and unit tests are original, written to accompany the lessons they follow. French, German, and Spanish text is produced by LibreTranslate running on the server.

The Lunis code itself is MIT-licensed. Full details for every source are in the repo's NOTICE.md.

Troubleshooting

That's Windows SmartScreen, which shows for new installers. Click More info, then Run anyway.
The model is loading into memory on the first question after the server starts. It stays loaded after that.
Usually not enough memory. Run free -g on the server — if very little is free, the model is being swapped in and out of RAM.
Check the device is on the same Wi-Fi. On the server, run hostname -I to confirm the address, and check a firewall isn't blocking port 8090. Some networks stop devices from talking to each other — running the server as its own hotspot avoids that.
On Ubuntu, run nmcli connection show --active and look for Lunis-Hotspot. On Windows, py server\lunis_service.py hotspot shows the state and any error. Some Wi-Fi cards can't run a hotspot at all — use a router instead.
Android may keep Chrome off the local network. Allow Nearby devices (or “Local network”) in Chrome's app permissions, then close Chrome fully and reopen it.
The translator builds its cache the first time each language is used. Check it's running with systemctl --user status lunis-translate.
The download can fail on a weak connection. Retry with python3 scripts/fetch_content.py --download.

FAQ

Only to install. After that, no.
Yes. The server runs on Windows 10, Windows 11, or Ubuntu, each with its own one-click installer.
No. Accounts, progress, and answers are files on the server. There's no cloud account and nothing is sent anywhere.
No. Lunis and the Khan Academy lessons it installs are both non-commercial only.
Yes — Lunis talks to its AI engine over an OpenAI-compatible API, so you can point it at another model by changing the config.
For reading, videos, and quizzes, dozens. The AI tutor is the limit — see device tiers above.
Ready to install it?
Download links and install help live on the Install page.
Go to Install