NorthStar AI · v1.0.0

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.

one Python fileruns offlineWindows · macOS · LinuxOpenAI-compatible API

Illustration of the NorthStar AI chat window

Features

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.

Get started

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.

terminal
# 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
01
OllamaUsed first if Ollama is running. Pulls the right model for you.
02
llama.cppRuns quantized GGUF models fast on a normal CPU.
03
TransformersThe fallback that works almost anywhere PyTorch does.
PresetModelPicked when
SmallQwen2.5 0.5Bunder 7 GB RAM
BalancedQwen2.5 1.5B7–15 GB RAM
LargeQwen2.5 3B15 GB RAM or more
Developer API

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.

bot.py
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)
Privacy first

Your data never leaves your computer.

  • Every chat, document and setting is stored in the northstar_data folder 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.