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

RepoWhatStack
nl2shellCore ML — model training, datasets, benchmarksPython, PyTorch, Unsloth, QLoRA
nl2shell-webProduct website + MCP server at nl2shell.comNext.js, React, Tailwind, Supabase
voxVoice-powered CLI — talk to your terminalPython, Ollama, speech recognition
sandbox-bash-mcpSandboxed command execution via MCP protocolNode.js, Docker, MCP
collabVisual agent workspace with infinite canvasElectron, 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:

ToolPurpose
leshell_translateConvert natural language to a shell command
leshell_executeRun a command in a sandboxed session
leshell_explainExplain 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

PropertyValue
Base modelQwen3.5-0.8B
Parameters859M
ArchitectureHybrid DeltaNet (25% softmax attention, 75% linear recurrent)
Training methodQLoRA (4-bit NF4, rank 16, alpha 32)
Training data12,834 NL-to-bash pairs (dataset)
GGUF sizes400MB (q4_k_m) / 650MB (q8_0)
LicenseMIT
HuggingFaceAryaYT/nl2shell-0.8b
Live demoHuggingFace 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 nl2shellPublic

    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 voxPublic

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

    Python

  3. nl2shell-web nl2shell-webPublic

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

    TypeScript

  4. sandbox-bash-mcp sandbox-bash-mcpPublic

    MCP server for sandboxed bash execution with session persistence

    JavaScript

  5. .github .githubPublic

    NL2Shell organization profile and community health files

  6. bench benchPublic

    Reproducible benchmark harness for the nl2shell:0.8b NL→shell model. Stratified holdouts, multi-metric scoring, per-tag diagnostics.

    Python

Repositories

Showing 6 of 6 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…