CoreLayer Docs
Configuration

Model Providers

Configure AI model providers for Jarvis routing.

CoreLayer's Model Gateway routes requests across multiple AI providers. You can configure one or more providers and let Jarvis select the best model for each task.

Supported Providers

ProviderTypeModels
GroqCloud (fast inference)Llama 3.3, Mixtral, Gemma
OpenRouterMulti-provider gatewayMiMo, Claude, GPT-4, Llama, Mistral
OllamaLocalAny Ollama-compatible model
OpenAI-compatibleAnyAny provider with OpenAI-compatible API

Configuration

Via Control Center

  1. Open Settings → Models
  2. Click Add Provider
  3. Select provider type
  4. Enter API key and model preferences

Via Config File

{
  "models": {
    "providers": [
      {
        "name": "groq",
        "type": "groq",
        "apiKey": "YOUR_GROQ_API_KEY",
        "defaultModel": "llama-3.3-70b-versatile"
      },
      {
        "name": "openrouter",
        "type": "openrouter",
        "apiKey": "YOUR_OPENROUTER_API_KEY",
        "defaultModel": "mimo/mimo-v2.5"
      },
      {
        "name": "ollama",
        "type": "ollama",
        "endpoint": "http://localhost:11434",
        "defaultModel": "llama3.2"
      }
    ]
  }
}

Model Routing

When multiple providers are configured, the Model Gateway selects based on:

  • Task complexity — complex reasoning routes to more capable models
  • Latency requirements — time-sensitive requests prefer Groq or local models
  • Cost optimization — routine tasks use cheaper providers
  • Availability — fallback if a provider is down

Environment Variables

You can use environment variables instead of hardcoding API keys:

GROQ_API_KEY=your_groq_api_key_here
OPENROUTER_API_KEY=your_openrouter_api_key_here

Reference them in config:

{
  "apiKey": "${GROQ_API_KEY}"
}

Next Steps

On this page