A terminal agent in one small file.

It uses the model on your own machine: no account, no key, and your work stays on it. It runs commands, reads and changes files, and asks before anything changes.

curl -fsSLo lokal https://download.guimadaleno.com/lokal/0.3.0/lokal && chmod +x lokal && ./lokal --install

Version 0.3.0, for Linux and WSL on x86-64. One file, which installs itself in ~/.local/bin and keeps itself up to date. Its SHA-256 is in SHA256SUMS.

Source on GitHub

Lokal 0.3.0 qwen3.8-27b > is the web container running?14:02 $ docker ps -a --filter name=web --format '{{.Names}} {{.Status}}' web Exited (0) 2 hours ago It's stopped: it exited 2 hours ago. ──────────────────────────────────────────────────────────────────────────────────────────────── > start it14:05 $ docker start web Starts the stopped container web. Run it? › Yes Yes, and don't ask again this session Yes, and don't ask again in this project No

Light

One static file of 3.1 MB. It starts in about 40 ms and holds under 3 MB of memory. Resize the window and it redraws at once. Nothing around it: no Node, no Python, no Docker.

Your model, your machine

Ollama, LM Studio, or any server that speaks the OpenAI API. Lokal finds the first two on its own, from WSL too.

Asks before it acts

Read-only commands run at once. Anything else waits for your yes, and every file change shows its diff first.

Set up a model

About five minutes, once, with either server.

  1. Install OllamaFrom ollama.com, on the machine that will run the model. Using WSL? It can run right inside it, as on any Linux.
  2. Download a model that can use toolsollama pull one whose ollama show lists tools. Lokal needs one to run commands and edit files, and picks it on its own.
  3. Give it room to workA context of 32k tokens or more, with the slider in the app's settings or OLLAMA_CONTEXT_LENGTH=32768 where Ollama runs: command output and files fill it up.
  4. Ollama on Windows, Lokal in WSL? Let it reach WindowsSet OLLAMA_HOST to 0.0.0.0:11434 among your Windows account's environment variables, then restart Ollama. WSL reaches it over the network; Lokal finds the address by itself.
  5. Run lokalThat's it: it finds Ollama on its own. To pin a server or a model, write them in ~/.config/lokal/config.
  1. Install LM StudioFrom lmstudio.ai, on the machine that will run the model.
  2. Download a model that can use toolsLM Studio marks the models that support tool use; Lokal needs one to run commands and edit files.
  3. Load it with room to workA context length of 32k tokens or more: command output and files fill it up.
  4. Start the serverIn the Developer tab, switch the server on. Lokal looks for it on port 1234.
  5. Using WSL? Let it reach WindowsTurn on "Serve on Local Network" in the server's settings. LM Studio runs on Windows, and WSL reaches it over the network; Lokal finds the address by itself.
  6. Run lokalThat's it. To pin a server or a model, write them in ~/.config/lokal/config.

What it won't do

Lokal is defined as much by what it refuses.