百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

nyx-local-ai

> 开发工具
开源

适用于 VS Code 和 Cursor 的本地 AI 编码代理。Ollama、LM Studio 和您的推理集群。Cursor 级代理用户体验 — 离线、私有、零代币成本。

188 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

适用于 VS Code 和 Cursor 的本地 AI 编码代理。Ollama、LM Studio 和您的推理集群。Cursor 级代理用户体验 — 离线、私有、零代币成本。

Nyx — Local AI

Feels like Cursor. Runs entirely on your hardware. Costs nothing per token.

Nyx in 30 seconds — click for the MP4 version

Open agentic coding models have caught up. DeepSeek V4, GLM 5.2, Qwen Coder — open weights now deliver flagship-class agentic performance, and quantized builds run on hardware you can put under your desk: a DGX Spark, a Mac Studio, a Blackwell workstation, even a 128 GB MacBook. What's been missing is the front end: an agent panel that treats those models as first-class citizens instead of a dropdown afterthought.

Nyx is that panel. A local-first coding agent in its own editor sidebar that looks and behaves like a native agent panel — file-edit diff cards, checkpoints, approvals, @-mentions, semantic search, MCP tools, a job queue, project memory — but every request goes to your machines. No account, no cloud, no telemetry, no per-token bill.

Review every change before it lands Manage your whole inference fleet

Status: v0.29.0. Local-first and fully offline-capable (the only optional network use is web fetching/search, the one-time OCR language-data download, and the first-time download of a vision/embedding model, all under your control).


Open models caught up — your hardware is ready

The recipes for running flagship-class open models locally are public and surprisingly convenient. Point any of these at Nyx's machine manager and you have a Cursor-grade agent that never leaves your network:

  • DeepSeek V4 Flash (284B MoE, 13B active, 1M context) — antirez/llama.cpp-deepseek-v4-flash targets a 128 GB MacBook with 2-bit routed experts; the cchuter/llama.cpp feat/v4-port-cuda fork + teamblobfish GGUF quants cover Apple Silicon (Metal) and NVIDIA Ada/Blackwell.
  • GLM 5.2 — Unsloth's GGUF quants run 2-bit on a 256 GB Mac Studio or a single high-VRAM GPU box (run guide); LM Studio serves the same quants from a desktop app.
  • DGX Spark — NVIDIA's official dgx-spark-playbooks provide step-by-step setups for serving open models on Spark devices; expose any OpenAI-compatible endpoint (vLLM, SGLang, llama-server) and add it as a machine.
  • Everything else — ollama (ollama pull qwen2.5-coder:32b), llama.cpp (llama-server -m model.gguf), LM Studio: all speak the OpenAI API, all auto-discovered by Nyx.

The result: agentic coding with zero marginal cost, full privacy, and hardware you already own doing the work. Nyx handles the part the serving stacks don't — the agent UX and the quirks of local models.


Why Nyx? The niche we occupy

There are excellent AI coding extensions — Cline, Roo Code, Continue.dev, Twinny. For all of them, local models are one provider entry in a dropdown: they are designed around cloud frontier models, and running them against Ollama means hand-crafted Modelfiles, brittle tool calling, and agents that derail when a 7B model gets the JSON slightly wrong.

Nyx inverts that: local inference is the product, not the fallback.

  1. Built for your own hardware fleet. A first-class machine manager for multiple LAN endpoints (a DGX cluster, a Mac Studio, a llama.cpp box) with per-host model discovery, capability probing (/api/show → tools / vision / thinking badges), auto-detected context lengths, per-machine temperature/num_ctx — and automatic failover to another machine serving the same model. No other extension has a concept of machines.
  2. Engineered for imperfect local models. Tool calls are recovered from whatever the model emits — OpenAI tool_calls, raw/fenced JSON, function-style text, or DeepSeek DSML markup; arguments get JSON repair; edit_file matches whitespace-tolerantly; small models get a reduced tool set; the prompt prefix stays byte-stable so the server's KV cache keeps working. The failure modes that break other agents on local models are our core engineering target.
  3. Cursor-grade agent UX, fully offline. Checkpoints with Edit & rerun, approval cards that show the diff before applying, @-mentions, a persistent job queue, project memory, semantic codebase search, MCP tools — with no account, no telemetry, no cloud upsell. The only network calls are the ones you explicitly trigger.
  4. A companion, not a replacement. Nyx is designed to live in Cursor's secondary side bar, next to the native agent — cloud agent for the hard problems, Nyx for everything that must stay on your metal.

If you have serious local hardware and want an agent that treats it seriously, that's the gap Nyx fills.


Highlights

  • Zero setup. Detects local models on start. ollama pull → it shows up in the picker.
  • Guided first-run. The empty state diagnoses your setup (Ollama reachable? coding model installed? index built?) and fixes each gap with one click — including a one-click qwen2.5-coder:7b pull.
  • Git-aware agent. Read-only git_diff / git_log tools answer "what did I just change?" without run_command approval friction.
  • Inline quick edit. Select code → Cmd/Ctrl+Alt+K → describe the change → review the diff → apply. No chat roundtrip; checkpoints and backups apply as usual.
  • Batch queue (overnight mode). ▶ Run all queued jobs sequentially — optionally verifying each with a command fix-until-green — and get a session report with the net diff at the end.
  • Privacy report. The button lists every host the session contacted (your machines + explicitly fetched URLs), so the "no cloud calls" promise is checkable, not just claimed.
  • Benchmark-based routing (opt-in). With nyx.benchmarkRouting, the judgment-best benchmarked model plans and the edit-precision winner executes.
  • Native diff view. "Open diff" links in approval cards and the review view open the editor's real diff (session start ↔ current file).
  • Active-file context. The file you're editing (±30 lines around the cursor) rides along automatically — small enough for local context budgets, off via nyx.includeActiveFile.
  • Chat handoff (both directions). Copy Chat as Markdown (Handoff) puts the whole session on the clipboard for Cursor's agent, a PR, or an issue — and Import Handoff from Clipboard brings a Cursor conversation into Nyx to continue it locally.
  • Editor-tab mode & focus toggle. Open Nyx as a full editor tab next to Cursor's agent (Open Nyx in Editor Tab), and flip between code and Nyx with one key (Cmd/Ctrl+Alt+N — both directions). A violet brand identity — ✦ NYX badge, accent line, tabs, meter (configurable via nyx.accentColor) — keeps the two worlds visually distinct; clicking the badge opens About (version, GitHub, update check).
  • Terminal as context. Attach the active terminal's output with one command, or let the agent read it via the read_terminal tool — "fix the error in my terminal" just works.
  • Workspace map. A compact repo map (~400 tokens) rides along with every agent request, so models stop guessing where files live.
  • Warm model keep-alive. After each turn Nyx re-arms Ollama's keep-alive (default 30m), so the model stays loaded and follow-up turns skip the reload pause.
  • MCP client. Connects to the MCP servers from your ~/.cursor/mcp.json / .cursor/mcp.json (stdio + HTTP) and offers their tools to the agent — e.g. codebase-memory-mcp for graph-based code memory. Governed by the same per-tool permissions (mcp:/).
  • Semantic codebase search. A fully local embedding index (nomic-embed-text, int8-quantized, structure-aware chunking, live file-watcher updates) powers the semantic_search tool: find code by meaning, not just by regex. Works with Ollama and OpenAI-compatible hosts (LM Studio, llama.cpp, vLLM) via a /v1/embeddings fallback; coverage limits are configurable (nyx.indexMaxFiles / nyx.indexMaxChunks) and warn when hit.
  • Tab autocomplete. Inline ghost text from a local FIM model (qwen2.5-coder:7b) — the piece that used to require a second extension. Opt-in via the Nyx Tab status-bar toggle.
  • Browser automation. Headless driving of your installed Chrome/Edge: navigate, read pages as numbered interactive elements, click, type, and screenshot through the vision toolchain.
  • Task plans. The agent maintains a visible ○/▸/✓ plan card for multi-step tasks, persisted with the chat.
  • Verify-before-report. Behavioral claims must be reproduced with a real test before the agent may report them — no more pattern-matched phantom bugs.
  • Model eval harness. Benchmark any endpoint on tool-call success, edit precision, and bug-judgment false positives (node .harness/eval.mjs).
  • Machine manager. Add labeled endpoints (e.g. "2× DGX Spark Cluster", "Mac Studio"), discover their models per-host, and set per-model aliases and per-machine temperature / context length — all from the sidebar. API keys live in the editor's secret storage, never in settings.
  • Model capability badges. Ollama models are probed via /api/show: tools, vision, thinking — and their true context length is detected automatically.
  • Agent mode with a rich tool set, or Chat mode for plain streaming chat.
  • Checkpoints. Every user message snapshots the files the agent later touches. Hover a message → Edit & rerun restores the files, rewinds the chat, and puts the message back in the composer. Errors offer a one-click Retry.
  • Review before it happens. edit_file / write_file approvals show the proposed diff before anything is applied; destructive-looking commands are flagged; Always allow skips future prompts for that tool in the current chat.
  • File-edit diff cards. Edits render inline as path +N −M cards with a colored diff preview; click the filename to open it in the editor. Edits go through WorkspaceEdit, so open editors and undo history stay intact.
  • @-mentions. Type @ in the composer to fuzzy-search workspace files and inline them as context.
  • Live command output. run_command streams stdout/stderr into the tool card while it runs; background: true starts dev servers & long jobs the agent can poll (check_process) and stop (kill_process) — and Stop actually kills running processes.
  • Job queue. Type while the agent is busy to queue follow-up jobs; reorder, edit, clear, or ▶ Send now to jump one ahead (interrupting the current run); they run sequentially and survive window reloads (host-side queue).
  • URL fetch & web search. Drop a link in your message to auto-fetch its text and images; the agent can also web_search and fetch_url on its own.
  • Safe large-file editing. Paged reads, targeted edit_file, automatic backups, and a shrink guard so files are never silently destroyed.
  • Temporary test scripts. run_script writes and runs a throwaway bash/python/node script (in a temp dir) to test or verify things.
  • Cursor rules & skills. Reads .cursor/rules/*.mdc, AGENTS.md, .cursorrules, and SKILL.md files.
  • Permissions. Per-tool allow / ask / deny policy. Reads are allowed; edits and shell commands ask first.
  • Context management. Live "Context %" meter with automatic + manual compaction, so a session can run effectively forever.
  • Attachments. Attach files/folders from the explorer, the editor, or a picker.
  • Vision & PDF toolchain. Non-vision models can still "see": PDF text extraction, offline OCR, and a local vision model for image descriptions.
  • tokens/sec indicator for a feel o

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptlm-studiolocal-aiollamavscode-extension

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具