SquidWings

Topic · Local AI

Local AI with Ollama and LM Studio

AI models can run on your own laptop. Your data stays put, there is no API bill, and the agent keeps working when the internet drops. Here is how to connect one, and where the limits are.

Updated 5 December 2026 · Source: the README on GitHub

01Why run AI locally

  • Privacy: documents and code are not sent to any server.
  • No API fees, however much you use it.
  • It keeps working offline, except for features that need the internet, such as web research.

02Connect Ollama

Install Ollama from ollama.com, then pull a model from its library:

Terminal
$ ollama pull <model-name>

Then fill in .env, or add the same provider on the Router page:

.env
API_BASE_URL=http://localhost:11434/v1
API_KEY=ollama

API_KEY must still be set, but any value works. Test it with ./linux.sh health.

03Connect LM Studio

In LM Studio, load a model and start its local server. The address is http://localhost:1234/v1; use it as API_BASE_URL with any API_KEY.

04What is always local in SquidWings

FeatureRuns with
OCR for images and scanned PDFsRapidOCR on the CPU, about 3 seconds a page
Speech and video transcriptionfaster-whisper
Reading Office files and PDFsA Rust worker on your laptop
Chat data, memory and filesA data folder on your laptop, one folder per chat

05Honest limits

  • Small local models are weaker at tool-heavy coding. The harness watches cheap tiers more closely, but it does not close the gap in ability. See agent harness.
  • You need about as much RAM as the model file, plus room for the context.
  • Models without tool calling can still use tools: the harness reads tool calls from their reply text.

06Common questions

Can an AI agent run without the internet?

Yes, with a local model in Ollama or LM Studio. OCR and transcription are local too. Web research and automatic updates still need the internet.

Which local model should I use?

Pick one that fits in your laptop's RAM and, if possible, supports tool calling. Start small, then move up a size if the results fall short.

Can I mix local and online models?

Yes. Add both on the Router page, then lock the local model for data that must not leave the laptop and use the others for the rest.

Ready to try it? Follow the install guide. Read also: AI agents, agent harness, cheap AI, Claude Code alternative.