npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@akon-labs/nexus-cli

v0.1.9

Published

GitNexus-native coding agent CLI

Downloads

1,362

Readme

Nexus CLI

The GitNexus-native coding agent.

Nexus is a minimal terminal coding harness that ships connected to your GitNexus knowledge graph. Adapt it to your workflows, not the other way around, without forking and modifying internals. Extend it with TypeScript Extensions, Skills, Prompt Templates, and Themes. Bundle those into Nexus Packages and share them via npm or git.

Nexus runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps.

Table of Contents


Quick Start

npm install -g --ignore-scripts @akon-labs/nexus-cli

--ignore-scripts disables dependency lifecycle scripts during install. Nexus does not require install scripts for normal npm installs.

Start Nexus. The first interactive launch opens the GitNexus browser sign-in flow:

nexus

Inside a session, /login signs in to GitNexus again. Configure the model provider separately:

/byok
/model

For headless GitNexus authentication, set GITNEXUS_TOKEN. Model API keys can still be set through provider environment variables such as ANTHROPIC_API_KEY.

Then just talk to nexus. By default, nexus gives the model four tools: read, write, edit, and bash. The model uses these to fulfill your requests. Add capabilities via skills, prompt templates, extensions, or nexus packages.

Platform notes: Windows | Termux (Android) | tmux | Terminal setup | Shell aliases


Providers & Models

For each built-in provider, nexus maintains a list of tool-capable models. Configured provider catalogs refresh automatically; run nexus update --models to force an immediate refresh. Use /byok to configure a subscription, API key, or local Ollama model, then select a model via /model (or Ctrl+L).

Subscriptions:

  • Anthropic Claude Pro/Max
  • OpenAI ChatGPT Plus/Pro (Codex)
  • GitHub Copilot

API keys:

  • Anthropic
  • Ant Ling
  • OpenAI
  • Azure OpenAI
  • DeepSeek
  • NVIDIA NIM
  • Google Gemini
  • Google Vertex
  • Amazon Bedrock
  • Mistral
  • Groq
  • Cerebras
  • Cloudflare AI Gateway
  • Cloudflare Workers AI
  • xAI
  • OpenRouter
  • Vercel AI Gateway
  • ZAI Coding Plan (Global)
  • ZAI Coding Plan (China)
  • OpenCode Zen
  • OpenCode Go
  • Hugging Face
  • Fireworks
  • Together AI
  • Baseten
  • Kimi For Coding
  • MiniMax
  • Xiaomi MiMo
  • Xiaomi MiMo Token Plan (China)
  • Xiaomi MiMo Token Plan (Amsterdam)
  • Xiaomi MiMo Token Plan (Singapore)

Nexus also supports the llama.cpp router server. Configure it with /byok llama.cpp, manage downloads and loaded models with /llama, then select a loaded model with /model. See docs/llama-cpp.md for setup and usage.

See docs/providers.md for other provider setup instructions.

Custom providers & models: Add providers via ~/.nexus/agent/models.json if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See docs/models.md and docs/custom-provider.md.


Interactive Mode

The interface from top to bottom:

  • Startup header - Shows common shortcuts, loaded AGENTS.md files, prompt templates, skills, and extensions
  • Messages - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI
  • Editor - Where you type; border color indicates thinking level
  • Footer - Working directory, session name, total token/cache usage ( input, output, R cache read, W cache write, CH latest cache hit rate), cost, context usage, current model. Totals include assistant responses, usage reported by tools, and summary generation.

The editor can be temporarily replaced by other UI, like built-in /settings or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). Extensions can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.

Editor

| Feature | How | |---------|-----| | File reference | Type @ to fuzzy-search project files | | Path completion | Tab to complete paths | | Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) | | External editor | Ctrl+G opens externalEditor, $VISUAL, $EDITOR, Notepad on Windows, or nano elsewhere | | Clipboard | Ctrl+V to paste an image or text (Alt+V on Windows), or drag images onto terminal | | Bash commands | !command runs and sends output to LLM, !!command runs without sending |

Standard editing keybindings for delete word, undo, etc. See docs/keybindings.md.

Commands

Type / in the editor to trigger commands. Extensions can register custom commands, skills are available as /skill:name, and prompt templates expand via /templatename.

| Command | Description | |---------|-------------| | /login | Sign in to GitNexus | | /byok [provider\|ollama] | Configure a cloud provider, API key, or local Ollama model | | /logout | Remove stored model-provider credentials | | /gitnexus-status | Show the GitNexus connection status | | /llama | Download, load, and unload llama.cpp router models | | /model | Switch models | | /scoped-models | Enable/disable models for Ctrl+P cycling | | /settings | Thinking level, theme, message delivery, transport | | /resume | Pick from previous sessions | | /new | Start a new session | | /name <name> | Set session display name | | /session | Show session info (file, ID, messages, tokens, cost) | | /tree | Jump to any point in the session and continue from there | | /trust | Save project trust decision for future sessions (restart required) | | /fork | Create a new session from a previous user message | | /clone | Duplicate the current active branch into a new session | | /compact [prompt] | Manually compact context, optional custom instructions | | /copy | Copy last assistant message to clipboard | | /export [file] | Export session to HTML or JSONL file | | /import <file> | Import and resume a session from a JSONL file | | /share | Upload as private GitHub gist with shareable HTML link | | /reload | Reload keybindings, extensions, skills, prompts, themes, and context files | | /quit | Quit nexus |

Keyboard Shortcuts

Customize shortcuts via ~/.nexus/agent/keybindings.json. See docs/keybindings.md for the full list.

Commonly used:

| Key | Action | |-----|--------| | Ctrl+C | Clear editor | | Ctrl+C twice | Quit | | Escape | Cancel/abort | | Escape twice | Open /tree | | Ctrl+L | Open model selector | | Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward | | Shift+Tab | Cycle thinking level | | Ctrl+O | Collapse/expand tool output | | Ctrl+T | Collapse/expand thinking blocks | | Ctrl+X | Copy the last assistant message |

Message Queue

Submit messages while the agent is working:

  • Enter queues a steering message, delivered after the current assistant turn finishes executing its tool calls
  • Alt+Enter queues a follow-up message, delivered only after the agent finishes all work
  • Escape aborts and restores queued messages to editor
  • Alt+Up retrieves queued messages back to editor

On Windows Terminal, Alt+Enter is fullscreen by default. Remap it in docs/terminal-setup.md so nexus can receive the follow-up shortcut.

Configure delivery in settings: steeringMode and followUpMode can be "one-at-a-time" (default, waits for response) or "all" (delivers all queued at once). transport selects provider transport preference ("sse", "websocket", or "auto") for providers that support multiple transports.


Sessions

Sessions are stored as JSONL files with a tree structure. Each entry has an id and parentId, enabling in-place branching without creating new files. See docs/session-format.md for file format.

Management

Sessions auto-save to ~/.nexus/agent/sessions/ organized by working directory.

nexus -c                  # Continue most recent session
nexus -r                  # Browse and select from past sessions
nexus --no-session        # Ephemeral mode (don't save)
nexus --name "my task"    # Set session display name at startup
nexus --session <path|id> # Use specific session file or ID
nexus --fork <path|id>    # Fork specific session file or ID into a new session

Use /session in interactive mode to see the current session ID before reusing it with --session <id> or --fork <id>.

Branching

/tree - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.

  • Search by typing, fold/unfold and jump between branches with Ctrl+←/Ctrl+→ or Alt+←/Alt+→, page with ←/→
  • Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all
  • Press Ctrl+X to copy the selected message
  • Press Shift+L to label entries as bookmarks and Shift+T to toggle label timestamps

/fork - Create a new session file from a previous user message on the active branch. Opens a selector, copies the active path up to that point, and places the selected prompt in the editor for modification.

/clone - Duplicate the current active branch into a new session file at the current position. The new session keeps the full active-path history and opens with an empty editor.

--fork <path|id> - Fork an existing session file or partial session UUID directly from the CLI. This copies the full source session into a new session file in the current project.

Compaction

Long sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.

Manual: /compact or /compact <custom instructions>

Automatic: Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via /settings or settings.json.

Compaction is lossy. The full history remains in the JSONL file; use /tree to revisit. Customize compaction behavior via extensions. See docs/compaction.md for internals.


Settings

Use /settings to modify common options, or edit JSON files directly:

| Location | Scope | |----------|-------| | ~/.nexus/agent/settings.json | Global (all projects) | | .nexus/settings.json | Project (overrides global) |

See docs/settings.md for all options.

Project Trust

On interactive startup, nexus asks before trusting a project folder that contains project-local settings, resources, or project .agents/skills and has no saved decision for the folder or a parent folder in ~/.nexus/agent/trust.json. Trusting a project allows nexus to load .nexus/settings.json and .nexus resources, install missing project packages, and execute project extensions.

Before the trust decision, nexus loads only context files, user/global extensions, and CLI -e extensions so they can handle the project_trust event. Project-local extensions, project package-managed extensions, and project settings are loaded only after the project is trusted. This split also applies when switching to a session from a different cwd whose trust has not been resolved in the current process.

Non-interactive modes (-p, --mode json, and --mode rpc) do not show a trust prompt. Without an applicable saved trust decision, they use defaultProjectTrust from global settings: ask (default) and never ignore those project resources, while always trusts them. Pass --approve/-a or --no-approve/-na to override project trust for one run.

If no extension or saved decision applies, defaultProjectTrust controls the fallback behavior. Set it to "ask", "always", or "never" in ~/.nexus/agent/settings.json, or change it with /settings.

nexus config and package commands use the same project trust flow, except nexus update never prompts. Pass --approve to trust project-local settings for one command or --no-approve to ignore them.

Use /trust in interactive mode to save a project trust decision for future sessions, including trust for the immediate parent folder. It writes ~/.nexus/agent/trust.json only; the current session is not reloaded, so restart nexus for changes to take effect.

Telemetry and update checks

Nexus has two separate startup features:

  • Update check: disabled until a Nexus release feed is configured with NEXUS_LATEST_VERSION_URL. Disable a configured feed with NEXUS_SKIP_VERSION_CHECK=1.
  • Provider attribution headers: optional headers sent with OpenRouter, Cloudflare, and direct NVIDIA NIM requests. Controlled by enableInstallTelemetry in settings.json or NEXUS_TELEMETRY=0.

Nexus does not send install or update pings.

Use --offline or NEXUS_OFFLINE=1 to disable all startup network operations described here, including update checks and package update checks.


Context Files

Nexus loads AGENTS.md (or CLAUDE.md) at startup from:

  • ~/.nexus/agent/AGENTS.md (global)
  • Parent directories (walking up from cwd)
  • Current directory

If a directory contains AGENTS.override.md, Nexus loads it instead of AGENTS.md or CLAUDE.md from that directory. Context files from other directories are still concatenated.

Use for project instructions (AGENTS.md/CLAUDE.md), conventions, common commands. All matching files are concatenated.

Disable context file loading with --no-context-files (or -nc).

System Prompt

Replace the default system prompt with .nexus/SYSTEM.md (project) or ~/.nexus/agent/SYSTEM.md (global). Append without replacing via APPEND_SYSTEM.md.


Customization

Prompt Templates

Reusable prompts as Markdown files. Type /name to expand.

<!-- ~/.nexus/agent/prompts/review.md -->
Review this code for bugs, security issues, and performance problems.
Focus on: {{focus}}

Place in ~/.nexus/agent/prompts/, .nexus/prompts/, or a nexus package to share with others. See docs/prompt-templates.md.

Skills

On-demand capability packages following the Agent Skills standard. Invoke via /skill:name or let the agent load them automatically.

<!-- ~/.nexus/agent/skills/my-skill/SKILL.md -->
# My Skill
Use this skill when the user asks about X.

## Steps
1. Do this
2. Then that

Place in ~/.nexus/agent/skills/, ~/.agents/skills/, .nexus/skills/, or .agents/skills/ (from cwd up through parent directories) or a nexus package to share with others. See docs/skills.md.

Extensions

TypeScript modules that extend nexus with custom tools, commands, keyboard shortcuts, event handlers, and UI components.

export default function (nexus: ExtensionAPI) {
  nexus.registerTool({ name: "deploy", ... });
  nexus.registerCommand("stats", { ... });
  nexus.on("tool_call", async (event, ctx) => { ... });
}

The default export can also be async. nexus waits for async extension factories before startup continues, which is useful for one-time initialization such as fetching remote model lists before calling nexus.registerProvider().

What's possible:

  • Custom tools (or replace built-in tools entirely)
  • Sub-agents and plan mode
  • Custom compaction and summarization
  • Permission gates and path protection
  • Custom editors and UI components
  • Status lines, headers, footers
  • Git checkpointing and auto-commit
  • SSH and sandbox execution
  • MCP server integration
  • Make nexus look like Claude Code
  • Games while waiting (yes, Doom runs)
  • ...anything you can dream up

Place in ~/.nexus/agent/extensions/, .nexus/extensions/, or a nexus package to share with others. See docs/extensions.md and examples/extensions/.

Themes

Built-in: dark, light. Themes hot-reload: modify the active theme file and nexus immediately applies changes.

Place in ~/.nexus/agent/themes/, .nexus/themes/, or a nexus package to share with others. See docs/themes.md.

Nexus Packages

Bundle and share extensions, skills, prompts, and themes via npm or git.

Security: Nexus packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.

nexus install npm:@foo/nexus-tools
nexus install npm:@foo/[email protected]      # pinned version
nexus install git:github.com/user/repo
nexus install git:github.com/user/repo@v1  # tag or commit
nexus install git:[email protected]:user/repo
nexus install git:[email protected]:user/repo@v1  # tag or commit
nexus install https://github.com/user/repo
nexus install https://github.com/user/repo@v1      # tag or commit
nexus install ssh://[email protected]/user/repo
nexus install ssh://[email protected]/user/repo@v1    # tag or commit
nexus remove npm:@foo/nexus-tools
nexus uninstall npm:@foo/nexus-tools          # alias for remove
nexus list
nexus update                               # update nexus only
nexus update --all                         # update nexus and packages
nexus update --extensions                  # update packages only
nexus update --models                      # refresh model catalogs only
nexus update --self                        # update nexus only
nexus update --self --force                # reinstall nexus even if current
nexus update npm:@foo/nexus-tools             # update one package
nexus config                               # enable/disable extensions, skills, prompts, themes

Packages install to ~/.nexus/agent/git/ (git) or ~/.nexus/agent/npm/ (npm). Use -l for project-local installs (.nexus/git/, .nexus/npm/). Git @ref values are pinned tags or commits; pinned packages are skipped by nexus update --extensions and nexus update --all, so use nexus install git:host/user/repo@new-ref to move an existing package to a new ref. Git packages install dependencies with npm install --omit=dev by default, so runtime deps must be listed under dependencies; when npmCommand is configured, git packages use plain install for compatibility with wrappers. If you use a Node version manager and want package installs to reuse a stable npm context, set npmCommand in settings.json, for example ["mise", "exec", "node@20", "--", "npm"].

Create a package by adding a nexus key to package.json:

{
  "name": "my-nexus-package",
  "keywords": ["nexus-package"],
  "nexus": {
    "extensions": ["./extensions"],
    "skills": ["./skills"],
    "prompts": ["./prompts"],
    "themes": ["./themes"]
  }
}

Without a nexus manifest, nexus auto-discovers from conventional directories (extensions/, skills/, prompts/, themes/).

See docs/packages.md.


Programmatic Usage

SDK

import { createAgentSession, ModelRuntime, SessionManager } from "@akon-labs/nexus-cli";

const modelRuntime = await ModelRuntime.create();
const { session } = await createAgentSession({
  sessionManager: SessionManager.inMemory(),
  modelRuntime,
});

await session.prompt("What files are in the current directory?");

For advanced multi-session runtime replacement, use createAgentSessionRuntime() and AgentSessionRuntime.

See docs/sdk.md and examples/sdk/.

RPC Mode

For non-Node.js integrations, use RPC mode over stdin/stdout:

nexus --mode rpc

RPC mode uses strict LF-delimited JSONL framing. Clients must split records on \n only. Do not use generic line readers like Node readline, which also split on Unicode separators inside JSON payloads.

See docs/rpc.md for the protocol.


Philosophy

Nexus is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with extensions, skills, or installed from third-party nexus packages. This keeps the core minimal while letting you shape nexus to fit how you work.

MCP is built in. Nexus loads configured MCP servers through its built-in adapter while keeping extensions and skills available for workflows that do not need MCP.

No sub-agents. There's many ways to do this. Spawn nexus instances via tmux, or build your own with extensions, or install a package that does it your way.

No permission popups. Run in a container, or build your own confirmation flow with extensions inline with your environment and security requirements.

No plan mode. Write plans to files, or build it with extensions, or install a package.

No built-in to-dos. They confuse models. Use a TODO.md file, or build your own with extensions.

No background bash. Use tmux. Full observability, direct interaction.


CLI Reference

nexus [options] [@files...] [messages...]

Package Commands

nexus install <source> [-l]     # Install package, -l for project-local
nexus remove <source> [-l]      # Remove package
nexus uninstall <source> [-l]   # Alias for remove
nexus update [source|self|nexus]   # Update nexus only, or one package source
nexus update --all              # Update nexus and packages
nexus update --extensions       # Update packages only
nexus update --models           # Refresh model catalogs only
nexus update --self             # Update nexus only
nexus update --self --force     # Reinstall nexus even if current
nexus update --extension <src>  # Update one package
nexus list                      # List installed packages
nexus config                    # Enable/disable package resources

nexus config and project package commands accept --approve/--no-approve to trust or ignore project-local settings for one command. nexus update never prompts for project trust.

Modes

| Flag | Description | |------|-------------| | (default) | Interactive mode | | -p, --print | Print response and exit | | --mode json | Output all events as JSON lines (see docs/json.md) | | --mode rpc | RPC mode for process integration (see docs/rpc.md) | | --export <in> [out] | Export session to HTML |

In print mode, nexus also reads piped stdin and merges it into the initial prompt:

cat README.md | nexus -p "Summarize this text"

Model Options

| Option | Description | |--------|-------------| | --provider <name> | Provider (anthropic, openai, google, etc.) | | --model <pattern> | Model pattern or ID (supports provider/id and optional :<thinking>) | | --api-key <key> | API key (overrides env vars) | | --thinking <level> | off, minimal, low, medium, high, xhigh, max | | --models <patterns> | Comma-separated patterns for Ctrl+P cycling | | --list-models [search] | List available models |

Session Options

| Option | Description | |--------|-------------| | -c, --continue | Continue most recent session | | -r, --resume | Browse and select session | | --session <path\|id> | Use specific session file or partial UUID | | --fork <path\|id> | Fork specific session file or partial UUID into a new session | | --session-dir <dir> | Custom session storage directory | | --no-session | Ephemeral mode (don't save) | | --name <name>, -n <name> | Set session display name at startup |

Tool Options

| Option | Description | |--------|-------------| | --tools <list>, -t <list> | Allowlist specific tool names across built-in, extension, and custom tools | | --exclude-tools <list>, -xt <list> | Disable specific tool names across built-in, extension, and custom tools | | --no-builtin-tools, -nbt | Disable built-in tools by default but keep extension/custom tools enabled | | --no-tools, -nt | Disable all tools by default |

Available built-in tools: read, bash, edit, write, grep, find, ls

Resource Options

| Option | Description | |--------|-------------| | -e, --extension <source> | Load extension from path, npm, or git (repeatable) | | --no-extensions | Disable extension discovery | | --skill <path> | Load skill (repeatable) | | --no-skills | Disable skill discovery | | --prompt-template <path> | Load prompt template (repeatable) | | --no-prompt-templates | Disable prompt template discovery | | --theme <path> | Load theme (repeatable) | | --no-themes | Disable theme discovery | | --no-context-files, -nc | Disable AGENTS.md and CLAUDE.md context file discovery |

Combine --no-* with explicit flags to load exactly what you need, ignoring settings.json (e.g., --no-extensions -e ./my-ext.ts).

Other Options

| Option | Description | |--------|-------------| | --system-prompt <text> | Replace default prompt (context files and skills still appended) | | --append-system-prompt <text> | Append to system prompt | | --ui-mode <mode> | UI mode: regular (default) or experimental fullscreen | | --verbose | Force verbose startup | | -a, --approve | Trust project-local files for this run | | -na, --no-approve | Ignore project-local files for this run | | -h, --help | Show help | | -v, --version | Show version |

File Arguments

Prefix files with @ to include in the message:

nexus @prompt.md "Answer this"
nexus -p @screenshot.png "What's in this image?"
nexus @code.ts @test.ts "Review these files"

Examples

# Interactive with initial prompt
nexus "List all .ts files in src/"

# Non-interactive
nexus -p "Summarize this codebase"

# Non-interactive with piped stdin
cat README.md | nexus -p "Summarize this text"

# Named one-shot session
nexus --name "release audit" -p "Audit this repository"

# Different model
nexus --provider openai --model gpt-4o "Help me refactor"

# Model with provider prefix (no --provider needed)
nexus --model openai/gpt-4o "Help me refactor"

# Model with thinking level shorthand
nexus --model sonnet:high "Solve this complex problem"

# Limit model cycling
nexus --models "claude-*,gpt-4o"

# Read-only mode
nexus --tools read,grep,find,ls -p "Review the code"

# Disable one extension or built-in tool while keeping the rest available
nexus --exclude-tools ask_question

# High thinking level
nexus --thinking high "Solve this complex problem"

Environment Variables

| Variable | Description | |----------|-------------| | AI_AGENT | Set to nexus by the CLI and RPC entry points so generic tooling can attribute child processes to Nexus | | NEXUS_CODING_AGENT | Set to true by the CLI and RPC entry points so child processes can detect that they run inside Nexus | | NEXUS_CODING_AGENT_DIR | Override config directory (default: ~/.nexus/agent) | | NEXUS_CODING_AGENT_SESSION_DIR | Override session storage directory (overridden by --session-dir) | | NEXUS_PACKAGE_DIR | Override package directory (useful for Nix/Guix where store paths tokenize poorly) | | NEXUS_OFFLINE | Disable startup network operations, including update checks, package update checks, and install/update telemetry | | NEXUS_LATEST_VERSION_URL | Configure the Nexus JSON release-feed URL; no release feed is used by default | | NEXUS_SKIP_VERSION_CHECK | Skip the Nexus version update check at startup | | NEXUS_SKIP_LOGIN | Disable the GitNexus startup sign-in gate for CI and automated tests | | NEXUS_RAIL | Set to 0 to disable the GitNexus side rail in fullscreen mode | | NEXUS_TRACE | Set to 1 to enable GitNexus and text-mode tool tracing | | NEXUS_TELEMETRY | Override install/update telemetry and provider attribution headers. Use 1/true/yes to enable or 0/false/no to disable. This does not disable update checks | | GITNEXUS_TOKEN | GitNexus Hub token for headless or automated sign-in | | GITNEXUS_HUB_URL | Override the GitNexus Hub MCP endpoint | | NEXUS_CACHE_RETENTION | Set to long for extended prompt cache (Anthropic: 1h, OpenAI: 24h) | | VISUAL, EDITOR | Fallback external editor for Ctrl+G when externalEditor is unset; defaults to Notepad on Windows and nano elsewhere |

Commands run by the LLM-callable bash tool also receive current session metadata:

| Variable | Description | |----------|-------------| | NEXUS_SESSION_ID | Current session ID | | NEXUS_SESSION_FILE | Absolute session JSONL path; unset for ephemeral sessions | | NEXUS_PROVIDER | Currently selected model provider | | NEXUS_MODEL | Currently selected model ID | | NEXUS_REASONING_LEVEL | Current effective reasoning level |

These values are resolved when each command starts. See Environment Variables for semantics, examples, and custom-tool opt-out.


Contributing & Development

See CONTRIBUTING.md for guidelines and docs/development.md for setup, forking, and debugging.

License

MIT

See Also

  • @akon-labs/nexus-cli/ai: Core LLM toolkit
  • @akon-labs/nexus-cli/agent-core: Agent framework
  • @akon-labs/nexus-cli/tui: Terminal UI components