title: CloudSlash - BYOK Language Models Reference description: Bring your own API key. CloudSlash routes DEVI through whatever model you configure: GPT-4, Claude, Gemini, or Ollama running locally. The fastest way to con...
BYOK Language Models¶
Bring your own API key. CloudSlash routes DEVI through whatever model you configure: GPT-4, Claude, Gemini, or Ollama running locally.
Interactive Setup¶
The fastest way to configure your AI provider:
The wizard walks you through:
- Provider: Ollama, OpenAI, Anthropic, Gemini, Groq, or custom endpoint
- API key: provider-specific input with placeholder hints
- Model: selected from the live list fetched from your provider
If your provider is unreachable (wrong key, network issue), model selection is skipped. Fix the key and re-run cs config.
Cloud Providers¶
Gemini¶
Or via environment:
OpenAI¶
Anthropic¶
Claude
Groq¶
cs config set ai.provider groq
cs config set ai.api_key "gsk_..."
cs config set ai.base_url "https://api.groq.com/openai/v1"
Local Inference¶
Ollama
Run inference completely air-gapped with no external data egress.
- Install and start Ollama:
- Pull a model:
- Configure CloudSlash:
CloudSlash auto-detects Ollama at http://localhost:11434. To use a custom endpoint:
Manual Configuration¶
All settings live in ~/.cloudslash/config.yaml:
ai:
provider: gemini
model: gemini-2.5-pro
gemini_key: "AIza..."
# For Ollama:
# provider: ollama
# model: llama3.2
# ollama_endpoint: "http://localhost:11434"
# For custom OpenAI-compatible endpoints:
# provider: other
# model: my-model
# api_key: "..."
# base_url: "https://my-endpoint.com/v1"
Verification¶
Check that your AI backend is reachable:
The doctor command validates the configured provider, checks API key presence, and tests endpoint connectivity.