Hive.AI
OpenRouter-powered AI consensus platform - access 300+ models from 55+ providers through unified API with smart presets.
Installation
CLI Tool
npm install -g @hivetechs/hive-ai
Library (for developers)
npm install @hivetechs/hive-ai
Quick Start
CLI Usage
# 1. Configure license (unlocks tools & sets conversation limits)
hive-ai configure license
# 2. Setup OpenRouter API key & profiles
hive-ai setup
# 3. Run consensus
hive-ai consensus "What is the meaning of life?"
Claude Code Integration
Install and configure Hive AI for Claude Code in one command:
# Install globally and configure Claude Code MCP
hive-ai quickstart
# Start Claude Code and use consensus tools
claude
💡 Claude Code Users: After running consensus, press Ctrl+R to expand and view complete detailed results instead of the collapsed summary.
Setup Process:
- License Configuration: Unlocks Hive.AI tools and sets daily conversation limits based on your tier
- OpenRouter Setup: Configures API access to 300+ models from 55+ providers
- Profile Creation: Sets up 4-stage consensus pipeline with your preferred models
Library Usage
import { initializeDatabase, runConsensusPipeline } from '@hivetechs/hive-ai';
// Initialize
await initializeDatabase();
// Run consensus
const result = await runConsensusPipeline('What is the meaning of life?');
API Reference
Consensus Engine
import { runConsensusPipeline, validateConsensusPrerequisites } from '@hivetechs/hive-ai/consensus';
// Run consensus pipeline
const result = await runConsensusPipeline(question, conversationId);
// Validate setup
const validation = await validateConsensusPrerequisites();
Database Functions
import {
getDatabase,
createUser,
createConversation,
addMessage,
getUserTier,
checkDailyUsageLimit
} from '@hivetechs/hive-ai/database';
// Get database connection
const db = await getDatabase();
// User management
await createUser('user-id', 'user@example.com');
// Conversation tracking
const conversationId = await createConversation('conv-id');
await addMessage('msg-id', conversationId, 'user', 'Hello');
// Usage tracking
const tier = await getUserTier();
const usage = await checkDailyUsageLimit();
Features
- 4-Stage Consensus: Generator → Refiner → Validator → Curator
- 300+ Models: Access through OpenRouter API
- Unified Database: SQLite with ACID compliance
- Usage Tracking: Tier-based limits and monitoring
License Tiers
- Community: 10 conversations/day
- Pro: 100 conversations/day
- Enterprise: 1000 conversations/day
Requirements
Links