Skip to content

[Feature Request] Multi model support #21

Description

@omsenjalia

🤖 Feature Request: Multi-Model Support (Ollama + Cloud Models)
Problem
agentchattr is locked to Claude Code, Codex, and Gemini CLI. No way to use local models or mix models by task.
Proposed solution
Add Ollama and OpenAI-compatible endpoint support as a new agent type in config.toml:

[agents.mistral]
type = "ollama"
model = "mistral-nemo"
ollama_url = "http://localhost:11434"
color = "#f97316"
label = "Mistral"
roles = ["review", "summarize"]

[agents.qwen]
type = "openai_compat"
base_url = "https://api.ollama.ai/v1"
api_key_env = "OLLAMA_CLOUD_KEY"
model = "qwen2.5-coder:32b"
roles = ["codegen", "refactor"]

These agents join the same chat room, respond to @mentions, and participate in agentic loops like any other agent — no CLI subprocess needed, just a polling wrapper calling the model API.
Why it's useful

Route cheap/fast tasks (triage, summaries) to a local 3B model instead of burning cloud tokens
Keep sensitive code fully local via Ollama
Assign models by role: one for codegen, one for review, one for routing
Works in air-gapped environments

Implementation surface
Mostly contained to agents.py (new OllamaAgent class) and a new wrapper_api.py for the trigger loop. config.toml schema would need type, model, base_url, api_key_env, and optionally roles. MCP tools are already model-agnostic so mcp_bridge.py wouldn't need changes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions