Nexus Cortex
A headless, multi-provider AI agent harness — embed it as a library, script it from the CLI, or run it as a stateful agent server.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
npx -y [email protected]Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
claude mcp add nexus-cortex -- npx -y nexus-cortex@4.137.13รันในเทอร์มินัล
{ "mcpServers": { "nexus-cortex": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดNexus Cortex is the engine underneath the agent — not another interactive terminal app, but the harness you build on. One orchestrator drives many models across many providers through a pluggable adapter layer, with sub-agents, MCP, sandboxed artifacts, a permission engine, context management, and append-only session history built in.
Run it three ways: as a library (import { CortexOrchestrator }), as a headless CLI (cortex "…"), or as a stateful HTTP agent server.
Release 1 is the headless harness —
core,executors,server,cli. The interactive React/Ink terminal UIs (@nexus-cortex/tui) land in Release 2.
Driving it from your own agent harness? Cortex is built to run as an autonomous sub-agent that another agent configures and prompts headlessly — often more precisely than a human at a UI can. The bundled
cortex-subagentskill is the operational formula: the three headless entry points, the config levers worth setting, how to write a self-contained autonomous brief, budgets, and orchestrator-side verification.
npm install -g nexus-cortex
cortex setup
cortex setup is the first-run wizard: pick the providers you intend to use, paste their API keys, then choose the action
model (does the work), a cheap helper (compaction, summaries), the stronger mentor (plans and judges finishes), the vision
hand-off and the web-tools backend. It writes everything to ~/.cortex/.env, then sends one tiny request to each chosen model so
you know it works before you start. One DeepSeek key is enough: the defaults run every role on deepseek-flash.
Running cortex before setup in a terminal starts the wizard for you. Prefer to script it? One provider key is all it takes:
cortex config set DEEPSEEK_API_KEY sk-... # writes ~/.cortex/.env (or export it — the environment wins)
Then just talk to it — the server auto-starts on first use, and headless runs auto-approve tools:
cortex "What is this project?" # multi-turn; the session persists across calls
cortex agent --cwd ./my-project "add a --version flag and run the tests" # one-shot autonomous run (alias: cortex run)
What you get out of the box: every role on deepseek-flash (served by DeepSeek-V4.1-Flash-1017), the standard lever profile
(the harness's proven failure-path and steering levers, interactive and headless; CORTEX_PROFILE=off restores the bare defaults),
and web page reads via WebFetch. Web search and browse turn on when a search-capable key is present (Gemini, Anthropic or xAI)
— cortex setup offers the choice. See how everything resolved with cortex config get or GET /health/config on the server.
Claude also works with a Claude.ai Pro/Max OAuth subscription instead of an API key — see docs/authentication.md. Config precedence and every lever: docs/configuration.md.
The server the CLI auto-starts persists in the background and self-stops after 60s idle. To run a long-lived, interactive server yourself, use cortex-server — it stays up until you stop it, and (being a real terminal) prompts for tool approval there.
Cortex ships a library of agents, skills, and commands. Browse the bundled set in ~/.cortex/builtin/ (a read-only reference that re-syncs to your installed version automatically). To add your own, drop files into the matching folder in your home dir — they load alongside (and override) the builtins:
~/.cortex/agents/ your agent profiles (.md with YAML front-matter)
~/.cortex/skills/ your skills
~/.cortex/commands/ your slash commands
~/.cortex/system-messages/ your custom system prompts
~/.cortex/builtin/ read-only copy of everything that ships — look here for examples
These folders are created for you on first run, each with a short README. Agent profiles should use model: inherit (the default) — the agent then runs on whatever model the orchestrator is using, and falls back gracefully if a pinned model's provider key isn't configured.
Most of Nexus Cortex is the layer that steers a cheap model through hard, long tasks — the part a bare API loop does not have:
CORTEX_PROFILE=standard (shipped) turns on the proven safe set;
bench-tb4 reproduces our benchmark bundle; off is the bare frame. cortex config get shows every lever's resolved value and source.Results and how to reproduce them: docs/REPRODUCING_BENCH_RESULTS.md and docs/RESULTS_2026-09_TERMINAL_BENCH.md. Every published number names the harness version, the profile and the model weights date.
cortex models list for the live set.npm i -g nexus-cortex → cortex "…".Task) with per-agent permissions, MCP tool integration (incl. a zero-config headless browser), a sandboxed-artifact toolset (run + inspect real web apps), git/PR tooling, a policy-based permission engine, token-budget + prompt-cache context management, and append-only JSONL sessions with file checkpoints.GitHistoryStore) makes that store a repo you own, and it keeps itself current: cortex config set CANON_AUTO_SYNC true syncs after every turn (debounced), cortex canon watch captures sessions any other harness writes on disk. See Canon.Contributions welcome — see CONTRIBUTING.md.
Built clean-room as a multi-provider TypeScript agent harness.
A headless, multi-provider AI agent harness. One install gives you the `cortex` CLI and HTTP server: npm i -g nexus-cortex.
{ "mcpServers": { "nexus-cortex": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
Nexus Cortex ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-14 A headless, multi-provider AI agent harness. One install gives you the `cortex` CLI and HTTP server: npm i -g nexus-cortex.