Skip to content
@nl2shell

nl2shell

Natural language terminal interaction. Stop memorizing commands — just say what you need.

NL2Shell

Stop memorizing commands. Just say what you need.

NL2Shell turns plain English into terminal commands — instantly, locally, privately. No API keys. No cloud dependency. A fine-tuned 0.8B parameter model that runs on a Raspberry Pi.

$ nl2shell "find all Python files larger than 1MB modified this week"
> find . -name "*.py" -size +1M -mtime -7

The Problem

Every developer has typed "how to tar.gz a folder" into a search engine. ChatGPT works but requires internet, costs money, and sends your workflow context to someone else's server. Shell commands have cryptic syntax that even experienced developers look up constantly.

Our Approach

We fine-tuned Qwen3.5-0.8B (a hybrid DeltaNet architecture) using QLoRA on 12,834 curated natural-language-to-bash pairs. The result is a model small enough for edge devices but accurate enough for daily use.

Key properties:

  • Runs fully offline after a one-time 400MB download
  • Sub-second inference on Apple Silicon, ~1s on Raspberry Pi 5
  • Covers Linux, macOS, git, Docker, Kubernetes, cloud CLIs
  • MIT licensed — use it however you want

Repositories

Repo What Stack
nl2shell Core ML — model training, datasets, benchmarks Python, PyTorch, Unsloth, QLoRA
nl2shell-web Product website + MCP server at nl2shell.com Next.js, React, Tailwind, Supabase
vox Voice-powered CLI — talk to your terminal Python, Ollama, speech recognition
sandbox-bash-mcp Sandboxed command execution via MCP protocol Node.js, Docker, MCP
collab Visual agent workspace with infinite canvas Electron, TypeScript, xterm.js

How It All Fits Together

                          You (plain English)
                               |
                    +----------+----------+
                    |          |          |
                  [web]      [vox]    [collab]
                  browser    voice    desktop
                    |          |          |
                    +-----+----+----------+
                          |
                   [nl2shell model]
                    local via Ollama
                          |
                   [sandbox-bash-mcp]
                    safe execution
                          |
                       terminal

nl2shell is the brain — the fine-tuned model that translates natural language to shell commands.

Three interfaces feed into it:

  • nl2shell-web — browser-based, includes an MCP server so AI agents can call it programmatically
  • vox — speak commands aloud, get shell output. Fully offline via Ollama
  • collab — desktop app with infinite canvas for managing multiple terminal sessions visually

sandbox-bash-mcp provides safe execution — commands run in isolated Docker containers with session persistence, so generated commands can be tested before running on your real system.

Quick Start

Option 1: Try it in the browser Visit nl2shell.com

Option 2: Install the CLI (recommended)

curl -fsSL https://nl2shell.com/install.sh | sh
nl2shell "list all running docker containers sorted by memory"

Option 3: Run the model directly

ollama run hf.co/AryaYT/nl2shell-0.8b "show disk usage by directory"

Option 4: Voice mode

pip install vox-cli
vox "find large log files"

For AI Agents (MCP Integration)

NL2Shell exposes three tools via the Model Context Protocol:

Tool Purpose
leshell_translate Convert natural language to a shell command
leshell_execute Run a command in a sandboxed session
leshell_explain Explain what a command does

Point your MCP client at https://nl2shell.com/api/mcp to use them.

See agents.txt and llms.txt for full agent integration specs.

Model Details

Property Value
Base model Qwen3.5-0.8B
Parameters 859M
Architecture Hybrid DeltaNet (25% softmax attention, 75% linear recurrent)
Training method QLoRA (4-bit NF4, rank 16, alpha 32)
Training data 12,834 NL-to-bash pairs (dataset)
GGUF sizes 400MB (q4_k_m) / 650MB (q8_0)
License MIT
HuggingFace AryaYT/nl2shell-0.8b
Live demo HuggingFace Spaces

Contributing

We welcome contributions across all repositories. Each repo has its own CONTRIBUTING.md with setup instructions.

Good first issues are labeled good first issue across the org.

Areas where help is most needed:

  • Training data: domain-specific command pairs (Kubernetes, AWS, networking)
  • Benchmarking: testing on different hardware (especially ARM, Windows WSL)
  • Integrations: editor plugins, shell completions, IDE extensions

Links


Built by Arya Teja. Part of the LeSearch AI ecosystem.

Popular repositories Loading

  1. nl2shell nl2shell Public

    NL2Shell — Natural Language to Shell/Bash commands. Fine-tuned Qwen3.5-0.8B (859M params) for instant command generation. Runs on edge devices via GGUF.

    Python

  2. vox vox Public

    Talk to your terminal. Natural language to shell commands, powered by a local AI model.

    Python

  3. nl2shell-web nl2shell-web Public

    NL2Shell Web — Stop using ChatGPT for shell commands. Type plain English, get terminal commands instantly.

    TypeScript

  4. sandbox-bash-mcp sandbox-bash-mcp Public

    MCP server for sandboxed bash execution with session persistence

    JavaScript

  5. .github .github Public

    NL2Shell organization profile and community health files

Repositories

Showing 5 of 5 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…