Explore and discover AI providers, their models, and capabilities supported by Rawi.
# List all supported providers
rawi provider --list
# Show models for a specific provider
rawi provider --list-models openai
# Interactive provider explorer
rawi provider| Option | Description |
|---|---|
-l, --list |
Display all supported AI providers |
-m, --list-models <provider> |
Show available models for a specific provider |
--help |
Show command help and examples |
Get an overview of all supported AI providers:
rawi provider --listShows:
- Provider names and icons
- Current status (configured/available)
- Key features and capabilities
- Setup requirements
View available models for a specific provider:
# OpenAI models
rawi provider --list-models openai
# Anthropic models
rawi provider --list-models anthropic
# Local Ollama models
rawi provider --list-models ollamaRun without options for an interactive explorer:
rawi providerThis opens an interactive menu to:
- Browse providers
- View model details
- Compare capabilities
- Get setup instructions
| Provider | Icon | Models | Key Features |
|---|---|---|---|
| OpenAI | 🔵 | GPT-4, GPT-3.5 | Industry leading, versatile |
| Anthropic | 🟣 | Claude-3, Claude-2 | Safety-focused, long context |
| 🔴 | Gemini Pro, PaLM | Multimodal, code-optimized | |
| Azure OpenAI | 🔷 | GPT-4, GPT-3.5 | Enterprise, compliance |
| Amazon Bedrock | 🟠 | Multiple models | AWS integration, variety |
| xAI | ⚫ | Grok models | Real-time, conversational |
| Provider | Icon | Models | Key Features |
|---|---|---|---|
| Ollama | 🟢 | Llama2, Mistral, CodeLlama | Privacy, offline, fast |
| LM Studio | 🔗 | Various local models | GUI, model management |
🔵 OpenAI
├─ Models: gpt-4, gpt-4-turbo, gpt-3.5-turbo
├─ Context: Up to 128k tokens
├─ Features: Function calling, vision, code interpreter
├─ Setup: API key required
└─ Cost: Pay-per-use
🟣 Anthropic
├─ Models: claude-3-opus, claude-3-sonnet, claude-3-haiku
├─ Context: Up to 200k tokens
├─ Features: Constitutional AI, safety-focused
├─ Setup: API key required
└─ Cost: Pay-per-use
🟢 Ollama
├─ Models: llama2, mistral, codellama, phi, gemma
├─ Context: Varies by model
├─ Features: Completely offline, privacy-first
├─ Setup: Local installation required
└─ Cost: Free (compute only)
When viewing models for a provider:
rawi provider --list-models openaiOutput includes:
- Model name and version
- Context window size
- Capabilities (text, code, vision)
- Recommended use cases
- Performance characteristics
- Cost information
Most cloud providers require:
- Account registration
- API key generation
- Configuration in Rawi
# Configure after getting API key
rawi configure --profile myprofileFor Ollama and LM Studio:
- Install the software locally
- Download/pull models
- Ensure service is running
# Example Ollama setup
ollama pull llama2
ollama serve
# Then configure in Rawi
rawi configure --profile localBefore configuring, explore what's available:
rawi provider --list
rawi provider --list-models anthropicCompare models across providers:
# Check OpenAI options
rawi provider --list-models openai
# Compare with Anthropic
rawi provider --list-models anthropic
# Consider local alternatives
rawi provider --list-models ollamaFind providers with specific features:
- Vision capabilities
- Long context windows
- Code generation
- Multilingual support
#!/bin/bash
# Check if local provider is available
if rawi provider --list-models ollama | grep -q "llama2"; then
echo "Using local Ollama"
rawi ask --profile local "Hello world"
else
echo "Falling back to OpenAI"
rawi ask --profile cloud "Hello world"
fi# Auto-configure based on available providers
for provider in openai anthropic ollama; do
if rawi provider --list-models $provider >/dev/null 2>&1; then
echo "$provider is available"
# Configure if desired
fi
doneconfigure— Set up providers after explorationinfo— See currently configured providersask— Use specific providers for conversations
If a provider doesn't appear in the list:
- Check your internet connection (for cloud providers)
- Verify local installations (Ollama, LM Studio)
- Update Rawi to the latest version
When --list-models returns empty:
- Cloud providers: Check API key configuration
- Ollama: Ensure models are pulled and service is running
- LM Studio: Verify models are downloaded and server is active
For cloud providers:
# Test connectivity
curl -I https://api.openai.com/v1/models
# Check configuration
rawi info --profilesFor local providers:
# Test Ollama
curl http://localhost:11434/api/tags
# Check if service is running
ps aux | grep ollamaNext Steps: