@bear_ai/nexus-flow
Version:
Universal AI orchestrator - portal to any flow (claude-flow, qwen-flow, copilot-flow) with queen bee coordination system
221 lines (159 loc) โข 6.5 kB
Markdown
# ๐ Nexus-Flow
**Universal AI Orchestrator - Portal to Any Flow with Queen Bee Coordination**
[](https://badge.fury.io/js/nexus-flow)
[](https://opensource.org/licenses/MIT)
[](https://nodejs.org/)
Nexus-Flow is a cutting-edge universal AI orchestration platform that seamlessly integrates multiple LLM providers through intelligent routing, Queen Bee coordination, and Hive Mind collaboration systems.
## โจ Features
### ๐ค **Multi-LLM Provider Support**
- **Claude (Anthropic)** - Advanced reasoning with hive-mind capabilities
- **Gemini (Google)** - Multimodal AI with A2A protocol support
- **Mistral AI** - Advanced function calling and agentic tools
- **Perplexity AI** - Web search and real-time research
- **Cohere** - Enterprise-grade analysis and RAG integration
### ๐ญ **Execution Modes**
- **๐ Portal Mode** - Intelligent single-flow routing
- **๐ Queen Bee Mode** - Centralized coordination and delegation
- **๐ Hive Mind Mode** - Multi-agent swarm collaboration
### ๐ **Simple Authentication**
- Web-based authentication (no complex OAuth setup)
- Support for API keys and environment variables
- Unified auth management across all providers
### โก **Advanced Workflows**
- Agentic workflow execution with multiple coordination strategies
- Built-in workflow templates for common tasks
- Real-time progress monitoring and event streaming
## ๐ Quick Start
### Installation
```bash
# Install globally for CLI access
npm install -g nexus-flow@alpha
# Or use directly with npx
npx nexus-flow@alpha --help
```
### Initial Setup
```bash
# Initialize configuration
nexus-flow init
# Authenticate with AI providers
nexus-flow auth login --flow all
# Check system status
nexus-flow status
```
### Basic Usage
```bash
# Simple task execution with automatic provider selection
nexus-flow portal "Create a FastAPI application with authentication"
# Research-focused task
nexus-flow portal "Research latest developments in AI agents"
# Advanced workflow with Queen Bee coordination
nexus-flow workflow run "Build a comprehensive market analysis" --mode queen-bee
# Hive Mind collaboration for complex objectives
nexus-flow workflow run "Design and implement a distributed system" --mode hive-mind
```
## ๐ Documentation
### Authentication
```bash
# Authenticate with specific providers
nexus-flow auth login --flow claude # Claude AI
nexus-flow auth login --flow gemini # Google Gemini
nexus-flow auth login --flow mistral # Mistral AI
nexus-flow auth login --flow perplexity # Perplexity AI
nexus-flow auth login --flow cohere # Cohere
# Check authentication status
nexus-flow auth status
# View authentication instructions
nexus-flow auth login --list
```
### Execution Modes
#### Portal Mode (Fast & Simple)
```bash
nexus-flow portal "Your task description"
nexus-flow portal "Generate Python code for data analysis" --type coding
nexus-flow portal "Research AI trends" --type research
```
#### Queen Bee Mode (Structured Coordination)
```bash
nexus-flow queen "Complex multi-step project"
nexus-flow queen "Build web application" --strategy adaptive
```
#### Hive Mind Mode (Collaborative Intelligence)
```bash
nexus-flow hive-mind "Research and implement new features"
```
#### Workflow Engine (Advanced Orchestration)
```bash
nexus-flow workflow run "Your objective" --mode portal
nexus-flow workflow run "Complex research project" --mode hive-mind --verify
nexus-flow workflow templates # List available templates
```
### Configuration
```bash
nexus-flow config set flows.claude.enabled true
nexus-flow config set queenBee.delegationStrategy adaptive
nexus-flow config get # View current configuration
```
## ๐ ๏ธ Provider Capabilities
| Provider | Code Generation | Research | Analysis | Function Calling | Web Search | Hive Mind |
|----------|----------------|----------|----------|------------------|------------|-----------|
| **Claude** | โญโญโญ | โญโญ | โญโญโญ | โญโญ | โ | โญโญโญ |
| **Gemini** | โญโญ | โญโญ | โญโญ | โญ | โ | โ |
| **Mistral** | โญโญ | โญ | โญ | โญโญ | โ | โ |
| **Perplexity** | โญ | โญโญโญ | โญ | โ | โญโญโญ | โ |
| **Cohere** | โญโญ | โญ | โญโญ | โญโญ | โญ | โ |
## ๐ง Advanced Features
### Programmatic Usage
```typescript
import { NexusEngine, WorkflowEngine } from 'nexus-flow';
const engine = new NexusEngine();
await engine.initialize();
// Execute a simple task
const result = await engine.executeTask('Create a REST API endpoint');
// Use workflow engine
const workflowEngine = new WorkflowEngine(engine.flowRegistry);
const execution = await workflowEngine.executeAgenticWorkflow({
objective: 'Build a comprehensive analysis',
mode: 'queen-bee'
});
```
### Custom Adapters
Extend nexus-flow with custom LLM providers:
```typescript
import { BaseFlowAdapter } from 'nexus-flow';
class CustomFlowAdapter extends BaseFlowAdapter {
// Implement your custom provider
}
```
## ๐ Performance & Monitoring
- **Real-time Metrics** - Track performance across all providers
- **Load Balancing** - Intelligent distribution of tasks
- **Health Monitoring** - Automatic failover and recovery
- **Cost Optimization** - Provider selection based on cost/performance
## ๐งช Alpha Release Notice
This is an **alpha release** (v0.1.0-alpha.0) of nexus-flow. While fully functional, it includes:
- โ
Core orchestration capabilities
- โ
Multi-provider integration
- โ
Authentication system
- โ
Workflow engine
- ๐ Active development and testing
- ๐ Documentation improvements ongoing
## ๐ค Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
### Development Setup
```bash
git clone https://github.com/nexus-flow/nexus-flow.git
cd nexus-flow
npm install
npm run build
npm test
```
## ๐ License
MIT License - see [LICENSE](LICENSE) file for details.
## ๐ Links
- **Documentation**: [Coming Soon]
- **Issues**: [GitHub Issues](https://github.com/nexus-flow/nexus-flow/issues)
- **Discussions**: [GitHub Discussions](https://github.com/nexus-flow/nexus-flow/discussions)
## ๐ Star History
If you find nexus-flow useful, please consider giving us a star on GitHub!
---
*Built with โค๏ธ by the Nexus-Flow community*