Your first task
A focused tutorial: install → verify → run a real consensus vote → wire it into your editor. About 5 minutes if you have Node 24; less if everything’s already installed.
This is the canonical new-user path. If you want platform-specific install details, jump to INSTALLATION.md. If you want every knob enumerated, jump to CONFIGURATION.md. For Claude Code plugin install specifically, see PLUGIN_INSTALL.md. Everything below stays on the canonical “first 5 minutes” path.
CLI vs MCP — read this first. The standalone CLI surface (
vote,orchestrate,review) is a useful subset you can run from any terminal. The full control plane — therunentry point plus the 47 MCP tools — lives behindsetupand an MCP-aware editor (Claude Code, Cursor, etc.). If you’re an MCP user, the one command to learn isrun "<goal>": it’s read-only by default (passexecute: trueto actually run), and the MetaOrchestrator picks the strategy for you, so you rarely pick a pipeline tool by hand. Noterunis MCP-only — it is not a CLI command.
1. Install
npm install -g nexus-agentsIf you hit
EACCESon Linux/macOS, configure a user-local npm prefix instead of usingsudo(details).For Claude Code, you can install as a plugin instead:
/plugin marketplace add nexus-substrate/nexus-agents /plugin install nexus-agents@nexus-substrate
2. Verify
nexus-agents doctorPrints a health table (illustrative example output — your versions and counts will differ):
Nexus Agents Doctor =================== Checking environment... ✓ Node.js version: v24.x.x ⚠ API keys configured: 0 of 3 Set ANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_AI_API_KEY Checking CLI installations... ✓ Claude CLI Version: 2.x Auth: CLI auth ✓ Codex CLI Version: 0.x Auth: CLI auth ⚠ Gemini CLI Auth: Not authenticated Fix: geminiRead-only; safe to run any time. To try a walkthrough before configuring CLI authentication:
nexus-agents tourThe tour shows illustrative cached fixtures and makes no live model calls. It requires no API keys or authenticated CLI. Add
--non-interactiveto skip the prompts between steps. Try nexus-agents with the tour walks through it step by step.For the live vote below, you need at least one authenticated Claude Code or Codex CLI. Gemini and OpenCode do not serve voter seats. No separate API keys are required.
3. Run a real consensus vote (no API keys needed)
nexus-agents vote --quick --proposal "Use SQLite over JSON files for the outcome store"Three voter roles (
architect,security,scope_steward) deliberate through your authenticated Claude Code or Codex CLIs. Expected output:Nexus Agents Consensus Vote ============================ Collecting votes from 3 agents (timeout: 300s each)... Proposal: Use SQLite over JSON files for the outcome store Votes ✓ Software Architect: APPROVE (86%) ✓ Security Engineer: APPROVE (74%) ✓ Scope Steward: APPROVE (91%) Summary Approve: 3 Reject: 0 Abstain: 0 Approval: 100.0% Threshold: simple_majority Result: APPROVED Completed in ~30sThat’s the smoke task. The verdict prints; the vote tally and per-voter confidence are recorded. For the richer 7-voter version (which also demonstrates mixed APPROVE/REJECT outcomes and graceful error handling), see the project site hero.
4. Wire into your editor (optional but recommended)
nexus-agents setupAuto-configures nexus-agents as an MCP server in Claude Code, Cursor, OpenCode, Gemini, and Codex (whichever you have). Restart the editor; the 47 MCP tools (
orchestrate,consensus_vote,research_synthesize,verify_audit_chain, …) become available to whatever agent you’re already using.setupwrites/updates up to seven things — each opt-outtable with the corresponding--skip-*flag. The full breakdown is in the project README; if you’d rather configure one CLI at a time, runsetup --interactive(the default).
5. Try a real task
Your first run covers this step in full: it shows the routing decision
runreturns, the live vote, and how to verify the audit chain afterwards.After
setup, ask your MCP-aware agent:Use the nexus-agents
runtool to decide whether to use SQLite over JSON files for the outcome store, withrequiresConsensus: trueandexecute: true.The tool arguments are:
{ "goal": "Should we use SQLite over JSON files for the outcome store?", "requiresConsensus": true, "execute": true }runselects the consensus strategy for this goal and executes it, returning the decision and vote details. To inspect only the routing decision and recommended tool, omitexecuteor set it tofalse.runis an MCP tool; ask your agent to call it.For standalone CLI usage:
# Run a real orchestration task (uses an API key if available) export ANTHROPIC_API_KEY=your-key nexus-agents orchestrate "Explain the architecture of this codebase"The multi-stage CompositeRouter picks the right CLI, the right expert persona, and the right model based on task analysis. The trace goes to
<repo>/.nexus-agents/traces/for later replay.nexus-agents writes per-repo state to
<repo>/.nexus-agents/(auto-gitignored and created on first use) and shared, cross-repo state to~/.nexus-agents/. Runnexus-agents doctorto see the resolved paths for your environment.
Where to go next
| Want to … | Read |
|---|---|
| Chain tools into a goal (research → vote → build) | COMPOSE_YOUR_FIRST_PIPELINE.md |
| Understand the consensus voting strategies | CONSENSUS_PROTOCOLS.md |
| Understand the routing pipeline | ROUTING_SYSTEM.md |
| Configure model preferences, custom experts, sandbox modes | CONFIGURATION.md |
| Wire an editor we don’t auto-detect | ../guides/HARNESS_COMPATIBILITY.md |
| Run the full dev pipeline (research → plan → vote → implement → QA) | run_ MCP tool — see ../ENTRYPOINTS.md |
| Inspect the audit chain | verify_ MCP tool, or the JSONL under <repo>/.nexus-agents/audit/ |
| Browse the research registry | ../research/RESEARCH_INDEX.md |
| See every CLI command + MCP tool | ../ENTRYPOINTS.md |