oneidea.ai
← Getting Started In AI  /  Offline AI

Offline AI

Set up a free AI coding assistant that runs on your own computer. Follow this page top to bottom — it takes most beginners 45–90 minutes including downloads. You'll install three free tools and finish by having a simple web page written for you by AI running locally.

Let's find the right setup for your computer

Answer two quick questions and we'll show you which instructions to follow and suggest an AI model to try. Don't worry if you're unsure — we'll help you find the answers.

How do I find my RAM?

RAM is the memory your computer uses while programs are running. It isn't the same as the storage space used for files.

Windows:

  1. Open Settings (press the Windows key, type Settings, press Enter).
  2. Select System.
  3. Select About.
  4. Find Installed RAM.

Mac:

  1. Open the Apple menu (Apple logo, top-left of the screen).
  2. Select About This Mac.
  3. Find Memory. On Macs this figure is the computer's unified memory — that's the one to use here.

Linux:

Use your system-information application if available. Optionally open a terminal and enter:

free -h

Look at the Mem: row's total column. free -h shows sizes like 15Gi (= about 16GB).

Question 1 — which type of computer are you using?
Question 2 — how much memory (RAM) does your computer have?

Use a new practice folder for your first project. Keep backups of important files, review changes before accepting them, and don't allow an AI assistant to run commands you don't understand.

Before you begin: 3 quick checks

  1. Your computer runs Windows, macOS or Linux and has permission to install software. If a work computer asks for an admin password you don't have, install on a personal machine instead.
  2. Internet access for the initial downloads (the tools and the AI model download over the internet once; after that, answering questions happens on your machine — but see our privacy note below, because parts of these tools can still contact the internet).
  3. Memory and disk space. As a rough guide: the model we suggest for 16GB machines downloads about 5GB and installing the two apps takes a few hundred MB. Downloads over a normal home connection take roughly 5–20 minutes; the whole setup, typically 45–90 minutes. These vary — a lot depends on your connection and computer.

Wondering if your computer is powerful enough? The hardware guide explains it in plain English — but you don't need it before continuing. If your computer is 8GB or less, read the gentle warning the selector above will show you and consider the online AI guide instead.

The three tools, in plain English

VS Code — your workspace

The application where you view, create and edit project files. Think of it as a smart word processor for code — but for building software.

Ollama — your local AI engine

The application that downloads and runs AI models on your computer. You type to it and it answers — all on your machine.

Kilo Code — your AI assistant

The VS Code extension that connects your workspace to your local model, so the AI can read and write files in your project while you watch.

YOU
 |
 v
KILO CODE
(Inside VS Code)
 |
 v
OLLAMA
 |
 v
LOCAL AI MODEL
(On your computer)

All three tools are installed on the same computer in this tutorial — nothing is being sent to a server for processing.

Step 1 — Install your workspace (VS Code)

Windows

  1. What to click: open code.visualstudio.com/download and click the big blue Windows download button.
  2. What happens: a file named like VSCodeUserSetup-x64-*.exe downloads.
  3. Run it from your browser's download bar. Accept the licence, keep all default ticks — especially ‘Add to PATH’ and the ‘Open with Code’ options.
  4. How you know it worked: VS Code opens (a purple-blue icon, dark window). If a ‘Get Started’ tab appears, that's normal — close it or read it, your choice.
  5. If it doesn't work: if Windows SmartScreen appears, click More info → Run anyway (VS Code is signed by Microsoft). If the installer says you lack permission, you're on a managed computer — switch to a personal one.

Step 2 — Install and test your AI model (Ollama)

Qwen3 8B is the model this page suggests for most beginners; the selector above may have suggested a different (smaller) one based on your RAM. The exact identifier is shown in each command block below — you don't need to remember it.

Windows

  1. Download the installer from ollama.com/download/windows. The file is OllamaSetup.exe. What happens: a normal Windows installer wizard appears — click Install, no options to choose.
  2. Open the right terminal: press the Windows key, type PowerShell, press Enter (the blue window is PowerShell; Command Prompt's black window also works).
  3. Check Ollama is running by entering this command (click the block to select it, then right-click to copy):
ollama --version

What should happen: a version number appears, like ollama version 0.13.x. Ollama runs in the background after install — you'll see its small alpaca icon in the system tray (bottom-right, may be under the ^ arrow).

If it doesn't work: ‘not recognised’ usually means the terminal was open before the install — close PowerShell and open a new one.

About the download: the model Qwen3 8B is about 5GB. On a normal connection that's usually 5–20 minutes. It's a one-time download per model — afterwards it works offline (though Ollama itself, like any app, may still make network calls — see our privacy section below).

Download and start the model with this command (the selector's model may be smaller — whatever it suggested, use that one; the block updates automatically):

ollama run qwen3:8b

What happens: first, a progress bar downloads the model (this is the big download — leave it running). Then the prompt changes to >>> — you're now chatting with the model on your machine.

Try it: type Why is the sky blue? Answer in one sentence. and press Enter. A short answer appears in a few seconds (or slower on older computers — that's normal).

Leave the conversation: type /bye and press Enter (this exits chat but Ollama keeps running in the background — that's what you want).

If it doesn't work: ‘model not found’ means a typo — retype the exact command from the block above. ‘Error: could not connect’ means Ollama isn't running — on Windows, restart the Ollama app from the Start menu; on Mac, open the Ollama app again; on Linux, run ollama serve.

Step 3 — Connect your AI assistant (Kilo Code)

  1. Open VS Code. Click the Extensions icon — four squares in the left sidebar (or press Ctrl+Shift+X on Windows/Linux, Cmd+Shift+X on Mac).
  2. Type Kilo Code in the search box, press Enter.
  3. Click Install on the Kilo Code result (its icon is a blue K). What happens: ‘Installing’ shows briefly.
  4. A Kilo Code icon appears in the left sidebar (a little rocket). Click it — a panel opens with first-run setup.
  5. Connect it to your local model: when the panel asks for a provider, look for a settings gear icon in the Kilo Code panel → open Providers. Choose Ollama from the provider list (it's under ‘Local & Self-Hosted’).
  6. Model: in the model field, enter the exact model from step 2: ollama/qwen3:8b (the ‘ollama/’ prefix is required — it tells Kilo Code your model is a local Ollama model). No password or key is needed — it's running on your machine.
  7. Context size (worth setting, plain-English version): local models only ‘see’ a limited amount of text at a time. In the same settings, find ‘Context Window Size (num_ctx)’ and set it to 32768 if your machine has 16GB+; leave it on default on smaller/older machines.
  8. Test it: type in the Kilo Code chat box: Hello — can you see this project? A reply from your local model appears. You're connected.
  9. If it doesn't work: see Stuck? Start here below — especially items 5 and 7.

Full current documentation lives at kilo.ai/docs/ai-providers/ollama — if the interface you see differs from these labels (Kilo updates regularly), trust the official docs and follow its steps.

Your first success: one complete exercise

Before real projects, walk through one simple task end to end. This is the moment the guide exists for.

Goal: ask your local AI to create a simple web page that says “Hello! This is my first AI project.”

  1. Create a fresh practice folder: in your Documents folder, make a new folder called my-first-ai-project (right-click → New Folder on Windows, or Finder: File → New Folder on Mac).
  2. Open it in VS Code: VS Code → File → Open Folder… → choose the new folder → Open. Trust the folder if VS Code asks (‘Yes, I trust the authors’ — it's your own folder).
  3. Ask Kilo Code to create the page: in the Kilo Code chat, type: Create a simple web page called index.html that shows the text "Hello! This is my first AI project." as a heading. Press Enter.
  4. Review what it proposes: the assistant will show a file it wants to create (usually index.html) with a Save or Approve button. Click the file name to read it — it should be short and readable HTML. When you're satisfied, click Save/Approve. Nothing happens until you approve — that's the safety model.
  5. See it in a browser: open File Explorer/Finder, open your my-first-ai-project folder, and double-click index.html — it opens in your web browser.
  6. Confirm the result: you should see your heading. It ran on your computer.

Congratulations — you've run your first local AI coding assistant!

You installed three tools, downloaded a model, connected everything, and had a model write working code on your own machine. That's the whole foundation — everything past this is practice.

One honest note: your model answered locally — the model ran on your computer. But “ran locally” isn't the same as “every part of every app stays offline”: VS Code, extensions and Ollama's optional services can each contact the internet for updates or features. If hard offline isolation matters for your use case, that's an advanced setup — check the official guidance or ask a professional.

Where to go next: try asking it to explain a piece of your own code, or modify the page (ask: Add a blue subtitle under the heading). Bigger ideas and stronger models: the online AI guide.

Stuck? Start here

The Ollama command isn't recognised
Likely cause: the terminal was open before Ollama was installed, so it doesn't know the new command yet. Safe first fix: close the terminal completely and open a new one, then re-run the command. On Mac, if the alpaca menu-bar icon is showing, Ollama is running — just the terminal needs restarting. Still stuck? Ollama troubleshooting docs.
My model won't download
Likely cause: interrupted connection, not enough disk space, or a typo in the model name. Safe first fix: check the exact spelling (it's easier to copy the command from this page than retype), confirm roughly 10GB free disk space, and run the command again — downloads resume from where they stopped. Ollama docs.
My computer is running very slowly
Likely cause: the model is using most of your memory — normal for big models on modest machines. Safe first fix: close other apps (especially browsers with many tabs), or switch to a smaller model: ollama run qwen3:4b (about 2.5GB). If still slow, your machine may simply not have enough memory — that's the hardware ceiling, not a mistake on your part.
Ollama seems to have stopped
Likely cause: the app or the background process exited (updates or sleep can cause it). Safe first fix: Windows: open the Ollama app from the Start menu. Mac: open the Ollama app again. Linux: run ollama serve in a terminal. Then re-run your command.
Kilo Code cannot connect to Ollama
Likely cause: Ollama isn't running, or wrong model format in the config. Safe first fix: run ollama --version in a terminal — if that fails, fix Ollama first (see item 4). If it succeeds, check in Kilo Code that the model is written ollama/qwen3:8b — with the ollama/ prefix. See the official Kilo Code Ollama docs.
My downloaded model doesn't appear
Likely cause: the picker lists common models; a just-downloaded model may not refresh automatically. Safe first fix: type the model name manually in the model field, exactly as downloaded — e.g. ollama/qwen3:8b. Kilo Code accepts typed names even when the picker list looks stale.
Kilo Code asks for a login or API key
Likely cause: the provider is set to a cloud option (OpenAI, Anthropic…) instead of Ollama. Safe first fix: Kilo Code settings → Providers → choose Ollama — it needs no key because it runs on your machine. Cloud providers are the ones that want keys.
My computer does not have enough memory
Likely cause: the model size exceeds what your machine can load — normal and common. Safe first fix: switch to a smaller model (see the hardware guide, or try ollama run qwen3:4b). If nothing loads, an 8GB-or-less machine realistically can't run useful coding models — the online guide needs no special hardware.
My model answers questions but cannot reliably edit files
Likely cause: smaller local models are much weaker at multi-step agentic features than cloud models — this is expected, not a setup problem. Safe first fix: keep requests small and specific (one file, one change), use simple prompts, keep chats short. For heavier work, cloud models in the online guide are the stronger tool. The official Kilo Code docs make the same point plainly.
How do I stop Ollama or remove a model?
To remove one model: run ollama rm qwen3:8b (replace with the model you want to remove; frees that disk space). To stop Ollama: Windows: right-click the tray icon → Quit. Mac: click the menu-bar alpaca icon → Quit. Linux: pkill ollama. To remove Ollama entirely: uninstall it from your system's normal app settings — it's a normal application. Ollama FAQ.

Alternative: Prefer a more visual way to run AI? Try LM Studio

Beginners should choose Ollama or LM Studio — not both. They do the same job in different ways. Ollama suits the guided three-step path above; LM Studio is more visual, with point-and-click model browsing. If you'd rather click than type, use this section instead of Step 2 and give Kilo Code its address instead.

Show me the LM Studio route
  1. Download LM Studio from lmstudio.ai/download for your OS. Install as normal. (macOS: Apple Silicon and Intel are both supported; Windows: 64-bit.)
  2. Open LM Studio → use its search to find a model — the same Qwen3 8B (search ‘Qwen3 8B’) is suggested for 16GB machines; pick the smallest ‘Q4’ quant variant for a first download, which is roughly the same ~5GB. The download tab shows the size before you commit.
  3. Start the local server: left sidebar → Developer tab (a terminal-style icon) → select the downloaded model → Start Server. It serves a compatible interface on http://localhost:1234 by default.
  4. Connect Kilo Code: Kilo Code → Providers → choose LM Studio — the default address matches what LM Studio shows. No key needed.
  5. Keep LM Studio open whenever you're using AI in VS Code — unlike Ollama, the local server needs the app running. That's the main practical difference.
  6. If it doesn't work: if Kilo Code can't connect, check LM Studio's app window — the server status is shown at the top. Full setup lives at lmstudio.ai/docs.

Practical safety and privacy

  • What stays local: your model's answers are generated on your computer — prompts and responses don't go to a cloud for inference. That's the point of this setup.
  • What may still touch the internet: initial installs and model downloads (obviously), application updates, telemetry/settings sync features in VS Code and extensions, and optional Kilo Code cloud features. If you need strict offline operation for sensitive work, that's an advanced configuration — verify each tool's settings before relying on it.
  • What AI gets wrong: local models are smaller than cloud ones and make mistakes — in code especially. Review every change before accepting it. Kilo Code shows you exactly what it wants to change before it does it — that review step is your safety net.
  • Never disable security protections (antivirus, SmartScreen, Gatekeeper) to make an install work, and never expose your local AI server to the internet. If a step seems to require either, stop and seek help instead.
Important disclaimer: the guides on this page are provided for information only. If you choose to install or use any software, extension or AI model described here, you do so entirely at your own risk and you are responsible for any and all issues that may arise — including, but not limited to, data loss, hardware problems, security or privacy incidents, software conflicts, unexpected costs, and results produced by AI systems. Always back up your files before installing software, and review everything an AI produces before relying on it.