ochyai/vibe-local
Free AI coding environment: Ollama + Python
What it solves
vibe-local solves the problem of learning to code when you have no internet connection and no budget for paid AI services. It turns a Mac into a free, offline AI coding tutor: you chat with a local language model in your terminal and it writes code for you. This makes agent-based coding practice possible for students, workshop participants, and beginners even in network-restricted classrooms or remote areas.
How it works
You install it with a single copy-paste command, then run vibe-local in a new terminal. The launcher detects your Mac’s RAM, picks a suitable local model (from a table of options like qwen3.6 or gpt-oss), and generates Ollama model aliases with appropriate context lengths. It then opens a terminal UI (the OpenCode TUI by default) that connects to the local model through Ollama. The chat interface lets you switch between Plan and Build modes with Tab, and you can ask one-off questions with -p. For offline situations it uses only local models; with --auto it will use cloud Claude Code when online. There is also an optional built-in Python engine (--vibe-coder) with a zero-dependency design that supports local RAG (retrieval-augmented generation) and XML tool-call fallback for models that don't support native tool calls.
Who it’s for
This is built for learners, students, and educators in offline or low-resource settings. It specifically targets: instructors running offline workshops where they support learners with AI agents, students without paid plans who want to practice agent coding, and beginners who want to learn terminal operations through natural language. The README also includes a “simple Japanese” section aimed at absolute beginners, with safety warnings and a gentle explanation of how to approve commands.
Highlights
- No network, no cost: runs entirely on local models via Ollama, with a single-command install for Mac (and community-provided scripts for Windows/Linux).
- Automatic model routing (v2.2): small models answer casual chat instantly, while coding tasks go to larger models; can be disabled with
--no-router. - Fast startup: preloads the model in the background, keeps it resident for 2 hours, and includes a
--fastmode for lightweight use. - RAG support in the built-in Python engine: uses sqlite3 and Ollama embeddings to inject relevant codebase context into prompts.
- Safety built-in: defaults to ask-before-every-action mode; warns about dangerous commands (
sudo,chmod,dd, etc.) and recommends rejecting anything you don’t understand. An-yflag exists for advanced users but is discouraged. - Multiple interfaces: default OpenCode TUI, optional Claude Code CLI compatibility (
--classic), and a classroom mode where a teacher’s Mac serves models and students attach over LAN.
Related
- Project
- Project
- Project