Local AI logo
Open source from HeyElsa

Private AI chat that runs on your computer

Local AI answers with charts, timelines and diagrams. Use local models through Ollama, or cloud models with your own key. Your chats stay on your computer, encrypted with your passcode.

MIT License. Needs Node 20.6 or newer.

What it does

One chat window for local and cloud models

Answers you can see

Models answer with charts, timelines and diagrams when a picture explains it better than text.

Local models

Install Ollama and download a model from the model button. Answers stay on your computer, with no fallback to the cloud.

Cloud models, your key

Infero, OpenRouter, Groq and five more providers, or any OpenAI-compatible server. You only need one key.

Images and video

Attach images and videos to a question, or switch to Image or Video mode to make them. You see an estimated cost first.

Voice

Ask out loud instead of typing, and have answers read back to you in a voice you choose.

Web search

Turn on the globe and the model can search when it needs to, up to 3 searches per question.

What stays private

You always know where a message goes

The line under the message box names the destination of your next message before you send it. The app itself has no analytics, no telemetry and no accounts.

Always on your computer

  • Chats, attachments, generated files and your keys.
  • Chats and files are encrypted with AES-256-GCM, using a key protected by your passcode.
  • The server listens only on 127.0.0.1 and rejects requests from other websites.
  • Libraries and fonts are stored locally, so loading the page contacts nobody.

Sent out when you use a cloud model

  • Your messages and attachments go to the provider named under the message box.
  • Infero, the default provider, is run by HeyElsa. What you send to Infero models goes to HeyElsa, under Infero’s privacy policy.
  • Every other provider has its own policy. Read it before you add its key.
  • A failed request is never retried with another provider.

Limits. Browser extensions with access to the app can read what the page shows. Encryption protects files on disk while the app is locked, not against malware running while it is unlocked. Your provider keys stay in .env, outside the encryption. The privacy notice and security notes have the details.

Privacy controls

Decide what leaves and what is kept

Private mode
Blocks every cloud request in the server, and stays on after a restart. Web search, Image, Video and voice input are off.
Passcode and lock
Always on. Nothing can use the app without your passcode, including other programs and accounts on the computer. It locks on restart, on request and after idle time. A forgotten passcode cannot be recovered.
Hide personal details
On by default for cloud models. Replaces typed email addresses, phone numbers, card and bank numbers, US Social Security numbers and API keys with placeholders, then restores them in the answer. Pattern matching can miss things, and names, addresses, images and voice are not covered.
Temporary chat
Not saved or listed. Its files are erased when you leave it.
Automatic deletion
Removes chats that have not been updated for 1, 7, 30 or 90 days. Delete everything removes all chats and files at once.
Models

Bring one key, or none

Provider What it adds
Ollama Models that run on your computer. No key.
Infero Default Open-weight chat models, image making and voice. Run by HeyElsa.
MiniRouter Web search, video and its own model catalogue.
OpenRouter Web search and its own model catalogue.
Groq Very fast open-weight models, and voice.
Cerebras Very fast open-weight models.
Together AI Open-weight models, image models and voice.
Fireworks Open-weight models.
DeepInfra Open-weight models, image models and voice.
Custom endpoint Any OpenAI-compatible server, such as a company gateway, vLLM or LiteLLM.

Keys are saved on your computer, readable only by your user account, and are never sent to the browser. Only MiniRouter and OpenRouter can search the web, so a question asked with web search on goes to one of them. The app says so before you send.

Start

Running in three steps

Terminal
git clone https://github.com/HeyElsa/local-ai.git
cd local-ai
npm install
npm start
  1. 01

    Run the commands. You need Node 20.6 or newer.

  2. 02

    Open localhost:4317. Choose a 4-number passcode and enter the setup code that npm start printed in the terminal.

  3. 03

    Add a model. Paste a provider key, or install Ollama and download a local model from the model button.

Frequently asked questions

Is Local AI free?

Yes. The app is open source under the MIT License. If you use cloud models, the provider charges you through your own key. Local models through Ollama need no key.

Can I use it without sending anything to the cloud?

Yes. Install Ollama and download a model, and answers stay on your computer with no fallback to the cloud. Private mode blocks every cloud request in the server.

What does HeyElsa see?

The app sends nothing to HeyElsa by itself. HeyElsa also runs Infero, the default cloud provider, so what you send to Infero models goes to HeyElsa under Infero's terms and privacy policy. You can use other providers or only local models instead.

What happens if I forget my passcode?

A forgotten passcode cannot be recovered. The passcode protects the key that encrypts your chats and files.

What do I need to run it?

Node 20.6 or newer and a browser. For cloud models you need a key from one provider. For local models you need Ollama.

Local AI is released under the MIT License and provided as is, without warranty of any kind. Using it means you accept its terms of use.