Documentation

Everything you need to know about RuneSpoke Hub

AI Provider Configuration

Configure and manage AI providers in RuneSpoke Hub. Support for Claude, GPT-4, Gemini, and more with intelligent routing and cost optimization.

BYOAI (Bring Your Own AI)

RuneSpoke Hub supports multiple AI providers with intelligent routing, cost optimization, and unified API access.

  • Use your own API keys and credits
  • Intelligent model selection and routing
  • Cost tracking and optimization
  • Fallback and redundancy support

Supported AI Providers

Anthropic Claude

Anthropic Claude

Claude 3.5 Sonnet, Claude 3 Opus

Advanced reasoning and code generation with excellent instruction following and safety features.

Best for:Code review, complex reasoning
Context:200K tokens
Cost:$3-15/1M tokens
OpenAI GPT

OpenAI GPT

GPT-4o, GPT-4 Turbo, GPT-3.5

Powerful language model with excellent general knowledge and coding capabilities.

Best for:General coding, explanations
Context:128K tokens
Cost:$2.5-30/1M tokens
Google Gemini

Google Gemini

Gemini Pro, Gemini Ultra

Multimodal AI with strong performance on reasoning and code generation tasks.

Best for:Multimodal, fast inference
Context:1M tokens
Cost:$1.25-7/1M tokens
GitHub Copilot

GitHub Copilot

Codex-based code completion

Specialized for code completion and generation with GitHub integration.

Best for:Code completion, IDE integration
Context:8K tokens
Cost:$10-19/month

Configuration Guide

Step 1: Add API Keys

Configure your AI provider API keys in the RuneSpoke Hub settings.

# Environment Variables
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
GOOGLE_AI_API_KEY=AI...
GITHUB_TOKEN=ghp_...

Step 2: Model Selection

Configure which models to use for different tasks.

Code Generation

Claude 3.5 Sonnet

Code Review

GPT-4o

Quick Tasks

Gemini Pro

Step 3: Routing Rules

Set up intelligent routing based on task type, cost, and performance.

Complex ReasoningClaude 3.5 Sonnet → GPT-4o
Code CompletionGitHub Copilot → Claude 3.5
Fast QueriesGemini Pro → GPT-3.5

Advanced Features

Smart Routing

Automatically route requests to the best model based on context, cost, and performance requirements.

Cost Optimization

Track usage and costs across providers. Set budgets and get alerts when limits are reached.

Fallback & Redundancy

Configure fallback providers for high availability. Automatic failover when providers are unavailable.

Analytics & Monitoring

Detailed analytics on model performance, response times, and cost breakdowns across all providers.

Best Practices

Model Selection Tips

  • Use Claude 3.5 Sonnet for complex code analysis and reasoning tasks
  • Use GPT-4o for general programming questions and explanations
  • Use Gemini Pro for fast, cost-effective queries with large context
  • Use GitHub Copilot for IDE-integrated code completion

Cost Management

  • Set monthly budgets for each provider
  • Use cheaper models for simple tasks
  • Monitor usage patterns and optimize routing
  • Enable caching for repeated queries

Next Steps

Now that you understand AI provider configuration, explore these related topics: