The Unified AI Gateway for the AIGNE Ecosystem
Formerly AI Kit - Now evolved into the comprehensive AIGNE Hub
AIGNE Hub is a unified AI gateway that manages connections to multiple LLM and AIGC providers, eliminating the complexity of handling API keys, usage tracking, and billing across different AI services. Built as a Blocklet using the AIGNE framework, it evolved from our AI Kit project to become the backbone of the entire AIGNE ecosystem.
Whether you're building applications with the AIGNE framework, using AIGNE Studio, or developing with the AIGNE CLI, AIGNE Hub seamlessly provides unified AI capabilities behind the scenes.
- π Self-Hosting Ready: Deploy your own instance for complete control and privacy
- π Multi-Provider Management: Connect to 8+ AI providers through one interface
- π Unified Security: Encrypted API key storage with fine-grained access controls
- π Usage Analytics: Comprehensive tracking and cost analysis
- π° Flexible Billing: Run internally or offer as a service with built-in credit system
- β‘ Seamless Integration: Works out-of-the-box with AIGNE framework applications
- OpenAI - GPT models, DALL-E, Embeddings
- Anthropic - Claude models
- Amazon Bedrock - AWS hosted models
- Google Gemini - Gemini Pro, Vision
- DeepSeek - Advanced reasoning models
- Ollama - Local model deployment
- OpenRouter - Access to multiple providers
- xAI - Grok models
- Doubao - Doubao AI models
- Poe - Poe AI platform
- And more providers being added...
Perfect for internal teams and organizations requiring data control:
- Deploy within your infrastructure
- No external billing - pay providers directly
- Keep all data within your security perimeter
- Ideal for corporate AI initiatives and development teams
Turn AIGNE Hub into a customer-facing AI service:
- Enable credit billing with Payment Kit integration
- Set custom pricing and profit margins
- Automatic user onboarding with starter credits
- Comprehensive billing and usage management
- Perfect for AI service providers and SaaS platforms
-
Deploy on Blocklet Server:
- Visit Blocklet Store and search for "AIGNE Hub"
- Click "Launch" and follow the installation wizard
-
Configure AI Providers:
- Access admin panel β Config β AI Providers
- Add your API keys for desired providers
- Start Using: Your AIGNE Hub is ready for team usage with OAuth or direct API access
- Enable Billing: Install Payment Kit, configure rates, and set up customer flows
// Using AIGNE Framework with AIGNE Hub
import { AIGNEHubChatModel } from "@aigne/aigne-hub";
const model = new AIGNEHubChatModel({
baseURL: "https://your-aigne-hub-url",
apiKey: "your-oauth-access-key",
model: "aignehub/gpt-3.5-turbo",
});
const result = await model.invoke({
messages: "Hello, AIGNE Hub!",
});
console.log(result);- Chat Completions: Conversational AI and text generation
- Image Generation: AI-powered image creation and editing
- Embeddings: Vector representations for semantic search
- Built-in Playground: Test models in real-time
- RESTful APIs: Standard HTTP endpoints for integration
- Credit-Based Billing: Flexible usage-based payments
- Custom Pricing: Set your own rates and profit margins
- Usage Tracking: Detailed consumption analytics
- Cost Analysis: Track spending across providers and models
- Payment Integration: Seamless credit purchases through Payment Kit
- OAuth Integration: Secure application access
- API Key Management: Encrypted storage with access controls
- User Management: Role-based permissions and access
- Audit Logging: Complete usage and access history
Built with modern technologies for reliability and performance:
- AIGNE Framework: Latest version with enhanced integration
- Node.js & TypeScript: Robust backend with full type safety
- React 19: Modern frontend with latest React features
- SQLite: Local data storage with Sequelize ORM
- Blocklet: Cloud-native deployment and scaling
We welcome contributions! Please see CONTRIBUTING.md for detailed guidelines on:
- Development setup and workflow
- Code style and testing requirements
- Adding new AI providers
- Submitting pull requests
- Documentation: AIGNE Hub Docs
- Community: ArcBlock Community
- Issues: GitHub Issues
This project is licensed under the Elastic License 2.0 License - see the LICENSE file for details.
Transform your AI development workflow with AIGNE Hub - the central nervous system for all your generative AI needs.