@wondermoveinc/nexus-cli
v0.1.1
Published
Nexus CLI - Universal AI Bridge for Claude and Gemini
Maintainers
Readme
Nexus CLI
A unified command-line AI assistant that integrates multiple AI CLI providers with advanced session management, real-time provider switching, and comprehensive tool integration.
Status: This is a proof-of-concept (POC) beta version (v0.1.1).
Current Providers
Features
- Seamless Provider Switching: Switch between Claude and Gemini providers while maintaining conversation context

- Universal Session Management: Cross-provider synchronization using Myers diff algorithm
- Auto Opus Integration: Automatic model switching for complex planning tasks
- Ask Model MCP Integration: Cross-model consultation with full context sharing - ask other AI models for reviews, second opinions, or specialized analysis
- MCP Wizard: Unified MCP server management for both Claude and Gemini providers
- Dashboard Interface: Comprehensive settings and usage statistics management
Installation
Global Installation (Recommended)
npm install -g @wondermoveinc/nexus-cliLocal Installation
npm install @wondermoveinc/nexus-cli
npx @wondermoveinc/nexus-cliRun Without Installing
npx @wondermoveinc/nexus-cliPrerequisites
- Node.js 20.0.0+
- Claude CLI installed or Claude API Key
- Gemini CLI installed or Google API Key
Quick Start
Install the package:
npm install -g @wondermoveinc/nexus-cliSet up Claude authentication (choose one):
Option A: Use Claude CLI authentication:
npm install -g @anthropic-ai/claude-code claude migrate-installer # Migrate to local to avoid autoupdater npm permission issues and make Nexus to work properly. claudeOption B: Set API key environment variable:
export ANTHROPIC_API_KEY="your-api-key-here"Set up Gemini authentication (choose one):
Option A: Use Gemini CLI authentication:
npm install -g @google/gemini-cli geminiOption B: Set API key environment variable:
export GEMINI_API_KEY="your-api-key-here"Start Nexus:
nexus
Usage Examples
Basic Conversation
nexus
> Explain the concept of dependency injection
[Claude provides explanation]Provider Switching and Shared Memory with full context
> Create a plan to implement feature A
[Claude response]
Ctrl+S # Switch to Gemini
> What are the potential drawbacks?
[Gemini builds on the previous conversation seamlessly]Advanced Planning
/dashboard
# Turn on the Auto Opus mode
# Turn on plan mode in Claude
> Plan a scalable e-commerce architecture
[Enhanced planning response with Auto Opus]
Ctrl+S # Switch to Gemini
> Is this plan accurate?
[Gemini validates on the plan]Opus model is only available on Claude Max plan
Cross-Model Consultation with Ask Model MCP
> Create a Python function to parse CSV files
[Claude provides implementation]
> Plan to fix this issue and get a review from Gemini using askmodel MCP
[Claude creates a plan and automatically asks Gemini for review with full context]
> Ask Genini to suggest optimizations for this code using askmodel
[Current model consults Gemini with the conversation context]
> Get a second opinion from Gemini on this architectural decision
[Seamlessly requests Gemini's analysis while preserving conversation history]Token Usage Monitoring
/dashboard
# Wait until Usage Statistics is loaded
Usage Statistics
🤖 Claude Usage (5-hour windows)
Plus: ▓▓▓▓▓▓▓▓▓▓ 9,290/7,000 (132.7%) ⚠️
Resets in: 4h 22m
Max 5x: ▓▓▓░░░░░░░ 9,290/35,000 (26.5%)
Resets in: 4h 22m
Max 20x: ▓░░░░░░░░░ 9,290/140,000 (6.6%)
Resets in: 4h 22m
Note: Token counts may differ from Claude's official calculation
(Cache tokens might be counted differently)
🔷 Gemini Usage
...Configuration
Environment Variables
GEMINI_API_KEY- Your Gemini API key (optional if usinggemini auth)ANTHROPIC_API_KEY- Your Claude API key (optional if usingclaude auth)
Commands
Ctrl+S- Switch between Claude and Gemini providersShift+Tab- Cycle through Claude permission modesShift+Enter- Insert newline (multiline input)/dashboard- Open settings and statistics interface/claude [model]- Switch Claude modelsESC- Cancel streaming or close overlays
Ask Model Commands
ask [model] to [request]- Consult another AI model with full conversation contextget review from [model]- Request code/plan review from specified modelask [model] using askmodel- Explicitly invoke the askmodel MCP tool
Development
Setup
git clone https://github.com/username/nexus-cli.git
cd nexus-cli
npm installScripts
npm run dev # Start development mode
npm run build # Build for production
npm run typecheck # Run TypeScript checks
npm test # Run test suite
npm run test:watch # Run tests in watch modeTesting
npm test # Run all tests
npm run test:unit # Run unit tests only
npm run test:integration # Run integration tests only
npm run test:coverage # Run tests with coverageKey Components
- Provider Services: Abstract interfaces for Claude and Gemini integration
- Session Manager: Universal session handling with cross-provider sync
- Ask Model MCP: Cross-model consultation system with context preservation
- Permission System: 4-tier security model for safe AI operations
- MCP Integration: Model Context Protocol server management
- Dashboard: Settings and statistics interface
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes
- Add tests for new functionality
- Ensure tests pass:
npm test - Run type checking:
npm run typecheck - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
Development Guidelines
- Follow TypeScript strict mode
- Write tests for new features
- Update documentation for API changes
- Use conventional commit messages
- Run all tests and type checks before submitting
Troubleshooting
Common Issues
Package not found after global install
npm config get prefix # Check npm global directory
export PATH="$(npm config get prefix)/bin:$PATH"Claude authentication issues
claude # Re-authenticate with Claude CLI
# OR
export ANTHROPIC_API_KEY="your-key" # Set API key directlyGemini authentication issues
gemini # Re-authenticate with Gemini CLI
# OR
export GEMINI_API_KEY="your-key" # Set API key directlyFor more detailed troubleshooting, see the troubleshooting guide.
License
MIT License - see the LICENSE file for details.
Contributor
Sunho Kim
Software Engineer Intern at Wondermove
Support
- Documentation: Full documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Changelog
See CHANGELOG.md for detailed release history.
