cd /news/ai-agents/neurogrid-terminal-coding-agent Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-131881] src=github.com β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Neurogrid Terminal Coding Agent

NeuroGrid released nrgrd, a terminal user interface coding agent that connects to any OpenAI-compatible inference endpoint, including NeuroGrid Marketplace deployments, vLLM, Ollama, and LM Studio. The tool runs an iterative tool-use loop that reads, searches, edits, and runs commands in a repository, gates file writes, shell commands, and MCP tools behind approval, and stores API keys in the OS credential store rather than config.json. nrgrd requires Python 3.11 or newer and runs on macOS, Linux, and Windows, installed via `uv tool install nrgrd` or pipx.

read5 min views1 publishedSep 16, 2026
Neurogrid Terminal Coding Agent
Image: Michielbdejong (auto-discovered)

nrgrd is NeuroGrid's Terminal User Interface (TUI) for interacting with AI models from your terminal, Claude Code style. Built on rich and prompt-toolkit, it points at any OpenAI-compatible inference endpoint β€” including a NeuroGrid Marketplace deployment (the URL + API key of the host you rented) β€” to chat, manage sessions, and run MCP tools.

  • Coding agent β€” An iterative tool-use loop (nrgrd.agent ) that reads, searches, edits, and runs commands in your repository until the task is done.
  • Workspace aware β€” Detects git, language, package manager, and test framework at startup, so the agent doesn't waste turns rediscovering your project.
  • Interruptible β€” Ctrl+C stops generation or a running tool without corrupting the conversation, keeping whatever was produced.
  • Named sessions β€” Several conversations per project: list, resume, rename, delete.
  • CLI mode β€”nrgrd "fix the failing tests" runs headless on the same runtime, for scripts and CI.
  • Native tools β€”list_files ,read_file ,write_file ,edit_file ,search ,shell ,git_status ,git_diff .
  • Permissions β€” Read-only tools run automatically; file writes, shell commands, and MCP tools ask for approval first (or "always allow" for the session).
  • Immersive TUI β€” Rich-rendered panels, streaming output, and slash-command completion.
  • Persistent sessions β€” Saves conversation context and history locally.
  • Any compatible endpoint β€” Behind aModelProvider abstraction: a NeuroGrid deployment, vLLM, Ollama, LM Studio, or anything else speaking the same API. All nrgrd needs is a URL, a key, and a model name.
  • Keys kept out of the config file β€” The API key lives in your OS credential store, and never appears in errors or logs.
  • Errors you can act on β€” Failures name the endpoint and model involved and say what to change.
  • Built-in MCP β€” Run and connect MCP servers straight from the terminal; their tools go through the same permission system.
  • CLI + TUI β€” Usenrgrd for the interactive interface ornrgrd-mcp for the MCP server.

nrgrd runs on macOS, Linux and Windows, with Python 3.11 or newer.

uv tool install nrgrd
nrgrd

uv tool install puts nrgrd on your PATH in its own environment, and downloads a suitable Python if you don't have one. Update with uv tool upgrade nrgrd. If you prefer pipx: pipx install nrgrd.

Don't have uv? See installing uv.

git clone https://github.com/NeuroGrid-AI-exchange/neurogrid-tui.git
cd neurogrid-tui
uv sync
uv run nrgrd
nrgrd                              # interactive TUI
nrgrd "explain this repository"    # one prompt, then exit
nrgrd --model qwen3-coder "fix the failing tests"
nrgrd --yes "run the tests"        # approve gated tools automatically (CI)
Command What it does
/help List every command
/config ,/config edit Show or change the connection
/con ,/models Check the endpoint, list its models
/tools ,/permissions Show tools and how each is gated
/session list ,/session new|resume|rename|delete <name> Manage sessions
/diff ,/context ,/compact Review changes, context usage, summarise
/mcp ,/mcp edit ,/mcp reload Manage MCP servers

The first time you run nrgrd it opens a Connect to a model screen and asks for the three things a NeuroGrid deployment hands you:

Endpoint   https://<your-deployment>/v1
API key    β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’
Model      qwen3-coder

It then queries the endpoint and lets you pick from the models it actually serves. Run /config edit to change any of this later.

The endpoint and model are saved to config.json in the application's config directory. The API key is not β€” it goes to your operating system's credential store (Keychain, Windows Credential Manager, or a Secret Service keyring). On machines with no usable keyring it falls back to an owner-only (0600) file, and /config tells you which is in use. A key left over in an older plaintext config.json is migrated out automatically on startup.

No environment variables are involved.

nrgrd/
β”œβ”€β”€ src/nrgrd/
β”‚   β”œβ”€β”€ app.py         # TUI entry point (rendering only)
β”‚   β”œβ”€β”€ agent/         # Agent runtime: loop, events, permissions β€” no TUI dependency
β”‚   β”œβ”€β”€ tools/         # Tool registry: filesystem, search, shell, git, MCP adapter
β”‚   β”œβ”€β”€ api/           # ModelProvider abstraction + the OpenAI-compatible one
β”‚   β”œβ”€β”€ config/        # Configuration and credential storage
β”‚   β”œβ”€β”€ context/       # Application state, models, token estimates
β”‚   β”œβ”€β”€ screens/       # The connect / onboarding screen
β”‚   β”œβ”€β”€ sessions/      # Session handling and storage
β”‚   β”œβ”€β”€ system/        # System prompts
β”‚   β”œβ”€β”€ theme/         # Color palette and styles
β”‚   β”œβ”€β”€ widgets/       # Custom visual components
β”‚   └── workspace/     # Filesystem tools, project discovery, MCP client
β”œβ”€β”€ docs/              # Reports and documentation
β”œβ”€β”€ tests/             # Agent/tool/permission tests (no TUI, no live endpoint needed)
└── pyproject.toml     # Dependencies and project metadata

The agent runtime never imports Rich or Textual β€” the TUI drives it by iterating agent.run(messages) and rendering the events it yields. That keeps the agent testable headlessly and reusable from a future CLI mode.

Push a version tag. CI runs the tests, builds, checks the built version matches the tag, and publishes to PyPI and GitHub Releases:

git tag v0.1.0
git push origin v0.1.0

The version comes from the tag; there is no version number to edit in pyproject.toml.

uv sync --dev

uv run pytest tests/

uv run ruff check src/
uv run mypy src/

MIT Β© NeuroGrid

── more in #ai-agents 4 stories Β· sorted by recency
── more on @neurogrid 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/neurogrid-terminal-c…] indexed:0 read:5min 2026-09-16 Β· β€”