Your own private AI, on your own PC.
NorthStar AI is a chat assistant that runs entirely on your computer. Teach it your documents, websites and notes, and it answers with sources. Nothing is ever sent to the cloud.
Your project is due on March 3rd1. From your notes, two things are left:
• Finish the final report2
• Record the demo video2
Want me to draft a short schedule for the
Illustration of the NorthStar AI chat window
Everything a good assistant does, kept at home.
NorthStar starts a small local web server and opens a chat page in your browser. Everything it needs lives in one folder next to the script.
Streaming chat
Answers stream in word by word, with Markdown, tables and code blocks. Conversations are saved so you can rename, revisit or delete them.
Knowledge base
Upload PDFs, Word documents, HTML and text files, add notes, or point it at a website to crawl. It finds the right passages and cites them in its answers.
Smart search
Semantic search with a local embedding model, combined with SQLite full-text search, so it finds what you mean, not just exact words.
API & keys
Create API keys and plug NorthStar into your own apps and bots. The /v1/chat/completions endpoint works with the OpenAI SDKs.
Fits your hardware
Picks a model size from how much RAM you have, runs at low priority, and unloads the model after 30 idle minutes to give your memory back.
Make it yours
Rename the assistant, rewrite its personality, change temperature and context size, or bring any model from Ollama or Hugging Face.
One file. One command.
All you need is Python. The first run sets everything up by itself.
Run the script
Open a terminal next to northstar.py and run it with Python.
It sets itself up
It creates a private .venv and installs what it needs. First run only.
It gets a model
It downloads a local Qwen2.5 model sized for your PC, or uses Ollama if you have it.
Start chatting
The chat page opens in your browser at 127.0.0.1:8765.
# start NorthStar (opens the website) $ python northstar.py [NorthStar] Creating a private Python environment... [NorthStar] Packages ready. # manage it $ python northstar.py status $ python northstar.py restart $ python northstar.py stop # start without opening the browser $ python northstar.py --no-browser
| Preset | Model | Picked when |
|---|---|---|
| Small | Qwen2.5 0.5B | under 7 GB RAM |
| Balanced | Qwen2.5 1.5B | 7–15 GB RAM |
| Large | Qwen2.5 3B | 15 GB RAM or more |
Drop it into anything that speaks OpenAI.
Create a key on the API & Keys page, then point any OpenAI client at NorthStar. Answers can use your knowledge base automatically, and there are endpoints to search it and add text, URLs and files to it.
Interactive docs are built in at /api/docs.
from openai import OpenAI client = OpenAI( base_url="http://127.0.0.1:8765/v1", api_key="YOUR_NORTHSTAR_KEY", ) reply = client.chat.completions.create( model="northstar", messages=[{"role": "user", "content": "Summarize my notes"}], ) print(reply.choices[0].message.content)
Your data never leaves your computer.
- Every chat, document and setting is stored in the
northstar_datafolder next to the script. - The chat page only accepts requests from your own computer, and blocks other websites from talking to it.
- The API only works with keys you create, and keys are stored as hashes.
- After the first download, it keeps working with no internet at all.