Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Commit 8cd323c

Browse files
committed
feat: add ollama cloud models
1 parent 04c7117 commit 8cd323c

4 files changed

Lines changed: 71 additions & 18 deletions

File tree

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Multi-model code review for [Claude Code](https://claude.com/claude-code). Run r
1414
├── Gemini ───────► reviews independently
1515
├── Qwen Code ────► reviews independently
1616
├── Mistral Vibe ─► reviews independently
17-
└── Ollama ───────► reviews independently (local)
17+
└── Ollama ───────► reviews independently
1818
└── Grok Build ───► coming soon
1919
2020
@@ -83,11 +83,23 @@ bun run unregister
8383
"command": "vibe --output text -p",
8484
"description": "Mistral Vibe (Devstral)"
8585
},
86-
"ollama": {
86+
"ollama-qwen": {
87+
"enabled": false,
88+
"command": "ollama run",
89+
"model": "qwen3-coder:480b-cloud",
90+
"description": "Ollama (Qwen3 Coder 480B)"
91+
},
92+
"ollama-devstral": {
93+
"enabled": false,
94+
"command": "ollama run",
95+
"model": "devstral-2:123b-cloud",
96+
"description": "Ollama (Devstral 2 123B)"
97+
},
98+
"ollama-local": {
8799
"enabled": false,
88100
"command": "ollama run",
89101
"model": "qwen2.5-coder:7b",
90-
"description": "Ollama local models"
102+
"description": "Ollama (Qwen 2.5 Coder 7B, local)"
91103
}
92104
},
93105
"prompt_file": "~/.config/conclave/prompt.md"
@@ -107,9 +119,9 @@ The `model` field is optional for most tools. If omitted, each tool uses its def
107119
| Gemini | `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-3-pro-preview`, `gemini-3-flash-preview` | [Gemini CLI](https://geminicli.com/docs/cli/model/) |
108120
| Qwen | `coder-model` (default), `vision-model` | [Qwen Code Docs](https://qwenlm.github.io/qwen-code-docs/) |
109121
| Mistral | Config-based (`~/.vibe/config.toml`) | [Mistral Vibe Docs](https://docs.mistral.ai/mistral-vibe/) |
110-
| Ollama | `qwen2.5-coder:7b`, `codellama:7b`, `deepseek-coder:6.7b`, `codegemma:7b` | [Ollama Library](https://ollama.com/search?c=code) |
122+
| Ollama | `qwen3-coder:480b-cloud`, `devstral-2:123b-cloud`, or any model from library | [Ollama Library](https://ollama.com/library) |
111123

112-
> **Note:** Ollama models use `:tag` syntax for parameter sizes (e.g., `qwen2.5-coder:7b`). 7B models need ~8GB RAM.
124+
> **Note:** Ollama cloud models use `:cloud` suffix and require `OLLAMA_API_KEY` environment variable. Get your API key at [ollama.com](https://ollama.com). You can also run local models (e.g., `qwen2.5-coder:7b`), but they are slow and require significant memory (~8GB+ RAM for 7B models).
113125
114126
> **Note:** Mistral uses command-line argument passing (not stdin), which has a ~200KB limit on macOS. Very large diffs may cause Mistral to fail while other tools succeed.
115127
@@ -130,7 +142,7 @@ Customize review instructions with template variables:
130142
| Gemini | `npm install -g @google/gemini-cli` |
131143
| Qwen | `npm install -g @qwen-code/qwen-code` |
132144
| Mistral | `pipx install mistral-vibe` |
133-
| Ollama | [ollama.com/download](https://ollama.com/download) then `ollama pull <model>` |
145+
| Ollama | [ollama.com/download](https://ollama.com/download); cloud: `export OLLAMA_API_KEY="key"` in `~/.zshrc`; local: `ollama pull <model>` |
134146

135147
## Usage
136148

config/tools.example.json

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,41 @@
3333
"command": "vibe --output text -p",
3434
"description": "Mistral Vibe (Devstral)"
3535
},
36-
"ollama": {
36+
"ollama-qwen": {
37+
"enabled": false,
38+
"command": "ollama run",
39+
"model": "qwen3-coder:480b-cloud",
40+
"description": "Ollama (Qwen3 Coder 480B)"
41+
},
42+
"ollama-devstral": {
43+
"enabled": false,
44+
"command": "ollama run",
45+
"model": "devstral-2:123b-cloud",
46+
"description": "Ollama (Devstral 2 123B)"
47+
},
48+
"ollama-local": {
3749
"enabled": false,
3850
"command": "ollama run",
3951
"model": "qwen2.5-coder:7b",
40-
"description": "Ollama local models"
52+
"description": "Ollama (Qwen 2.5 Coder 7B, local)"
53+
},
54+
"ollama-kimi": {
55+
"enabled": false,
56+
"command": "ollama run",
57+
"model": "kimi-k2:1t-cloud",
58+
"description": "Ollama (Kimi K2 1T)"
59+
},
60+
"ollama-glm": {
61+
"enabled": false,
62+
"command": "ollama run",
63+
"model": "glm-4.7:cloud",
64+
"description": "Ollama (GLM-4.7)"
65+
},
66+
"ollama-deepseek": {
67+
"enabled": false,
68+
"command": "ollama run",
69+
"model": "deepseek-v3.2:cloud",
70+
"description": "Ollama (DeepSeek V3.2)"
4171
}
4272
},
4373
"prompt_file": "~/.config/conclave/prompt.md"

tests/cli-live.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# WARNING: This runs real API calls and incurs costs.
66
# Only run when you need to verify tools are working end-to-end.
77
#
8-
# NOTE: Ollama models must be pulled locally first (e.g., `ollama pull qwen2.5-coder:7b`).
8+
# NOTE: Ollama cloud models require OLLAMA_API_KEY environment variable.
99

1010
set -eo pipefail
1111

@@ -88,7 +88,14 @@ test_tool "claude" "claude --print" true
8888
test_tool "gemini" "gemini -o text" true
8989
test_tool "qwen" "qwen -o text" true
9090
test_tool "mistral" "vibe --output text -p" false
91-
test_tool "ollama" "ollama run $MODEL_OLLAMA" true
91+
# Skip ollama cloud models if API key not set
92+
if [[ "$MODEL_OLLAMA" == *"-cloud"* ]] && [[ -z "$OLLAMA_API_KEY" ]]; then
93+
echo "Testing ollama..."
94+
echo " ○ ollama skipped (cloud model requires OLLAMA_API_KEY)"
95+
((skipped++))
96+
else
97+
test_tool "ollama" "ollama run $MODEL_OLLAMA" true
98+
fi
9299

93100
echo ""
94101
echo "Results: $passed passed, $failed failed, $skipped skipped"

tests/cli-models.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# WARNING: This runs many API calls (one per model) and incurs significant costs.
66
# Only run when validating README model documentation is accurate.
77
#
8-
# NOTE: Ollama models must be pulled locally first (e.g., `ollama pull qwen2.5-coder:7b`).
9-
# If not pulled, ollama will attempt to download them, which can be slow and cause timeouts.
8+
# NOTE: Ollama cloud models (`:cloud` suffix) require OLLAMA_API_KEY environment variable.
9+
# Get your API key at https://ollama.com
1010

1111
set -eo pipefail
1212

@@ -116,12 +116,16 @@ echo "--- Mistral ---"
116116
test_model "mistral" "default" "vibe --output text -p" false
117117
echo ""
118118

119-
# Ollama coder models (popular models from ollama.com/library, requires models to be pulled first)
120-
# See: https://ollama.com/search?c=code
121-
echo "--- Ollama (Coder Models) ---"
122-
test_model "ollama" "codegemma:7b" "ollama run codegemma:7b" true
123-
test_model "ollama" "codellama:7b" "ollama run codellama:7b" true
124-
test_model "ollama" "deepseek-coder:6.7b" "ollama run deepseek-coder:6.7b" true
119+
# Ollama models
120+
# Cloud models require OLLAMA_API_KEY, local models must be pulled first
121+
echo "--- Ollama ---"
122+
if [[ -n "$OLLAMA_API_KEY" ]]; then
123+
test_model "ollama" "qwen3-coder:480b-cloud" "ollama run qwen3-coder:480b-cloud" true
124+
test_model "ollama" "devstral-2:123b-cloud" "ollama run devstral-2:123b-cloud" true
125+
else
126+
echo " ○ cloud models skipped (OLLAMA_API_KEY not set)"
127+
((skipped+=2))
128+
fi
125129
test_model "ollama" "qwen2.5-coder:7b" "ollama run qwen2.5-coder:7b" true
126130
echo ""
127131

0 commit comments

Comments
 (0)