Agents and LLMs
Nexus works next to the coding agent you already use. The agent keeps its own model and login; it hands work to Nexus through the goal-intake MCP server, and you confirm the work in the vault console. This page covers finding and connecting agents, and what Nexus does with local models and cloud keys.
nexus has had no external security review. Do not describe it as production-ready.
What is detected
The dashboard’s Setup tab and nexus agents list look for these, and write nothing while looking:
| Agent | Found by | Connect writes |
|---|---|---|
| Claude Code | claude on PATH, ~/.claude |
~/.claude.json → mcpServers.nexus |
| Codex CLI | codex on PATH, $CODEX_HOME |
$CODEX_HOME/config.toml (default ~/.codex) |
| Gemini CLI | gemini on PATH, ~/.gemini |
~/.gemini/settings.json → mcpServers.nexus |
| Cursor | cursor on PATH, ~/.cursor |
~/.cursor/mcp.json → mcpServers.nexus |
| VS Code | code on PATH, its user folder |
<Code user folder>/mcp.json → servers.nexus |
| Windsurf | windsurf, ~/.codeium/windsurf |
~/.codeium/windsurf/mcp_config.json |
| Qoder | qoder on PATH, ~/.qoder |
found only: use nexus connect qoder in a project |
| OpenCode | opencode, ~/.config/opencode |
found only |
| Continue | ~/.continue |
found only |
Also listed:
- Local models: Ollama on
127.0.0.1:11434and LM Studio on127.0.0.1:1234, with the models each serves. Only loopback is asked, with a short timeout. - Cloud keys: which well-known variables are set (
ANTHROPIC_API_KEY,OPENAI_API_KEYand others). Only the names are read. A value never reaches the dashboard, a log or a file.
Connect an agent, no command needed
In the dashboard, Setup → Agents → Connect next to the agent. It shows the exact change to the
agent’s config file; Apply writes it. Then restart the agent. Disconnect removes only the
nexus entry, the same way.
From a terminal, the same thing:
nexus agents list
nexus agents connect claude-code # shows the change
nexus agents connect claude-code --yes # writes it
or the wrapper scripts in the repository root, which ask before writing:
.\connect-agent.ps1 claude-code
./connect-agent.sh claude-code
Every write:
- touches only the
nexusentry and keeps the rest of the file, its indentation and line endings; - is refused if the file changed after you saw the diff (the agent may have rewritten it: try again);
- keeps a backup beside the file,
<file>.nexus-backup-<stamp>, with the same permissions; - is logged to
<home>/logs/agents.logand to the audit chain; - refuses a file with comments, or a
nexusserver that Nexus did not write.
The entry has no --home unless your home is fixed by --home or NEXUS_HOME, so it keeps working
after you move your data.
This registers the intake server for every project. To also write the routing rule (the block that
tells the agent when a prompt belongs to the company) into one project, use nexus connect; see
Linking a coding agent.
Local models and cloud keys
Today the dashboard shows them; it does not yet use them as the company’s own model. The
company’s model is the one in config.json (Anthropic, key by handle in the vault), and model calls
go through vaultd’s egress, which has no grant for a local endpoint yet. The provider for
OpenAI-compatible endpoints (Ollama, LM Studio, vLLM) exists in packages/runtime and is tracked as
HV-126.
Until then, the agent you connect brings its own model, hosted or local: Nexus governs the work, not the token stream.
What is not claimed
- Detection is a best guess: an agent installed in an unusual place is missed, and a leftover config folder counts as installed.
- The config shapes for Gemini CLI, Cursor, VS Code and Windsurf follow their documentation. Codex and Cursor entries were written and read back on Windows; no client was restarted against them in testing.
- A rule in a file is a rule the agent is asked to follow. Nexus cannot intercept a prompt the agent never sends; it guarantees that a goal which does arrive is a draft until you confirm it.