Starting with v1.4.4, you can switch between local (Ollama) and cloud LLM providers from the interactive CLI settings menu.
python main.py --interactive
In interactive mode:
settings
Which category would you like to modify?
> llm
=== LLM Settings ===
Available providers:
β’ ollama - Local models (no API key required)
β’ openai - GPT-3.5 / GPT-4 (API key required)
β’ anthropic - Claude 3 (API key required)
β’ groq - Mixtral / LLaMA (API key required, free tier available)
LLM Provider [ollama]: groq
[OK] Provider changed: groq
Warning: Groq requires an API key.
Set GROQ_API_KEY in your .env file.
The CLI automatically suggests provider-specific models.
Ollama:
Ollama models: qwen2.5:3b, qwen3:8b, deepseek-r1:8b, llama3:7b
LLM Model [qwen3:8b]: deepseek-r1:8b
OpenAI:
OpenAI models: gpt-3.5-turbo, gpt-4, gpt-4-turbo
LLM Model [gpt-3.5-turbo]: gpt-4
Anthropic:
Anthropic models: claude-3-opus-20240229, claude-3-sonnet-20240229, claude-3-haiku-20240307
LLM Model [claude-3-sonnet-20240229]: claude-3-opus-20240229
Groq:
Groq models: mixtral-8x7b-32768, llama2-70b-4096, gemma-7b-it
LLM Model [mixtral-8x7b-32768]: llama2-70b-4096
Save settings? (y/n) [y]: y
[OK] Configuration saved: config.json
Restart agent to apply changes? (y/n) [y]: y
[cyan]Reloading configuration...[/cyan]
[cyan]Reinitializing agents...[/cyan]
.env fileEdit .env in the project root:
# OpenAI
OPENAI_API_KEY=sk-proj-your_key_here
# Anthropic
ANTHROPIC_API_KEY=sk-ant-your_key_here
# Groq
GROQ_API_KEY=gsk_your_key_here
python main.py --setup-keys
Then follow the prompts for secure API key setup.
|βββ-|ββ-|ββ|ββ-|ββββββ| | Ollama | Fast (local) | Free | Simple | Development, privacy-focused workflows | | Groq | Very fast | Free tier available | API key | Production workloads focused on latency | | Claude 3 | Fast | Paid | API key | Production workloads focused on output quality | | GPT-4 | Medium | Paid (higher cost) | API key | Complex reasoning and high-accuracy tasks |
Temperature (0.0-1.0) [0.7]:
Max Tokens / Context Size (1000-32000) [16000]:
.env:cat .env | grep API_KEY
python -c "from dotenv import load_dotenv; load_dotenv(); import os; print(os.getenv('GROQ_API_KEY'))"
sk-proj-...sk-ant-...gsk_...Validate the key in the provider dashboard.
.env:# Incorrect
GROQ_API_KEY="gsk_..."
# Correct
GROQ_API_KEY=gsk_...
pip install openai anthropic groq