nexgenr

中文文档
1.2.0发布于 2026/11/04MITES Module

NexgenR — terminal AI coding agent

原始使用文档
文档目录7 节
  1. Install
  2. Configure
  3. Quick start
  4. What it talks to
  5. Features
  6. Not included in this build
  7. License

nexgenr

NexgenR CLI is a terminal AI coding agent wired to the NexgenR red-team surface.

Install

Requires Node.js 22.19.0 or later.

npm install -g nexgenr

Or with pnpm:

pnpm add -g nexgenr

Configure

NexgenR signs in with an API key. There is no OAuth and no device flow:

export NEXGENR_API_KEY="<your key>"
# optional, defaults to https://redteam.nexgen.systems/v1
export NEXGENR_BASE_URL="https://redteam.nexgen.systems/v1"
nexgenr login                       # reads NEXGENR_API_KEY
nexgenr login --api-key <your key>  # or pass it explicitly

The same key works on both surfaces; the header is what changes:

SurfaceSend the key asRejected
/v1/… inference and catalogAuthorization: Bearer <key> or x-api-key: <key>x-bf-vk answers 401 here
/mcp gatewayx-bf-vk: <key> or Authorization: Bearer <key>—

The key must be provisioned for the vllm provider and the model you use (nexgen-redteam or refuseless-redteam). Without that grant GET /v1/models answers 200 with an empty catalog and chat fails with 400 modelo-desconocido.

nexgenr login writes ~/.nexgenr/config.toml with the redteam provider and its two models, nexgen-redteam (262 144 tokens of context, the default) and refuseless-redteam (1 048 576 tokens), and ~/.nexgenr/mcp.json with the gateway. It does not call the catalog: the model list is static.

Quick start

cd your-project
nexgenr -p "Summarize this repository"
nexgenr            # interactive terminal UI

What it talks to

CapabilityEndpoint
Chat, streaming onlyPOST /v1/chat/completions
Model catalogGET /v1/models
Health and published limitsGET /health, no credential
MCP gatewayPOST /mcp — 24 tools (8 Brave_Search, 16 Crawl4AI)

POST /v1/completions and POST /v1/embeddings are in the edge allowlist but the engine answers 404: POST /v1/chat/completions is the only inference route.

Limits, as published by GET /health: 4 requests in flight per consumer with 429 and Retry-After: 10 beyond that, a 12 MiB request body, and 262 144 tokens of context. A prefill can take minutes, so requests stream and wait up to 3 600 s for the first byte.

Features

  • Terminal UI, headless -p mode, ACP server, and a local REST/WS API (nexgenr web).
  • Sessions persisted under ~/.nexgenr/sessions, with wire.jsonl as the source of truth.
  • Permissions and approvals with manual, yolo, and auto modes.
  • Agent Skills, MCP servers, subagents, goals, cron tasks, and Swarm fan-out.
  • Provider/model configuration for any OpenAI-, Anthropic-, or Gemini-compatible endpoint.

Not included in this build

  • Remote Control (requires a relay service).
  • CDN-based auto-update; upgrade with npm install -g nexgenr@latest.
  • The bundled browser UI; nexgenr web serves the API plus a minimal landing page.
  • SSO: NexgenR signs in with an API key only.

License

MIT. See LICENSE and NOTICE for the upstream attribution.

版本与发布记录

nexgenr 共发布 10 个版本,首次发布于 2026/10/30;过去 12 个月发布了 10 个版本。

版本发布日期距今
1.2.0latest2026/11/04今天
1.1.32026/11/04今天
1.1.22026/11/014 天前
1.1.12026/11/014 天前
1.1.02026/10/305 天前
1.0.32026/10/305 天前

关于 nexgenr 的常见问题

nexgenr 是什么?

NexgenR — terminal AI coding agent

如何安装 nexgenr?

在项目目录运行 npm install nexgenr,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 nexgenr,可以用 npx nexgenr 直接运行。

nexgenr 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/nexgenr 是否存在。

nexgenr 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

nexgenr 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

nexgenr 可以商用吗?

nexgenr 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

nexgenr 还在维护吗?

最新版本 1.2.0 发布于 2026/11/04(今天);至今共发布 10 个版本,其中过去 12 个月发布了 10 个;首次发布于 2026/10/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。