A terminal AI coding assistant that runs on your machine. Works with Ollama, Claude, OpenAI, or Groq. Built by TheAlxLabs, co-piloted by Nyx.
LocalCode is a single npm package. No config files, no daemons. Just a terminal.
npm install -g @localcode/cli. One command, Node 18+ required. Ollama optional.
First launch walks you through picking a provider, checking Ollama, and entering an API key if needed.
Ask anything. LocalCode reads files, writes patches, runs shell commands — always asking permission first.
Run /commit to generate a conventional commit message. Nyx is automatically added as co-author.
Every feature stays out of your way — until you need it.
Every file write, patch, or delete asks before executing. Press y yes, n no, or a to allow all for the session.
After every file edit you see the exact lines added and removed — inline, immediately, before the model continues.
TransparencySnapshot full session state before risky changes. /checkpoint before-refactor and restore with /restore.
Reference any file or folder inline: @src/auth.ts injects a file, @src/ injects the whole tree.
/commit reads your staged diff and writes a conventional commit message. Nyx co-authors every one.
Long sessions burn through context fast. /compact asks the model to summarize and replaces all messages with that summary.
Switch between Ollama, Claude, OpenAI, and Groq at runtime with /provider. Keys are stored per-provider.
Arrow keys navigate your message history just like a real shell. Your last 100 messages are kept per session.
UX/status shows provider, model, API key, message count, estimated token usage, and checkpoints at a glance.
Nyx is LocalCode's ASCII cat mascot. She lives in the header of every session, reacting in real time to what's happening — thinking when the model is working, lighting up green on success, going red on errors.
She's not just decoration. Every git commit made through /commit is tagged with her co-author signature, so she shows up as a real contributor on your GitHub repos.
Type / in the app to open the interactive command picker with full descriptions and usage hints.
/checkpoint before-refactorsession/context src/context/provider claudeproviders/apikey sk-ant-…providers/model qwen2.5-coder:7bprovidersSwitch at runtime with /provider <name>. API keys are stored per-provider and loaded from env automatically.
Node 18 or later required. Ollama is optional.
First run → setup wizard → provider → launch.