Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Use cloudflare/clef-flash as the default decision model

Claude68d914a47f0b
diff --git a/docs/providers-and-models.md b/docs/providers-and-models.md
index ce3412cc2..7e2e16335 100644
--- a/docs/providers-and-models.md
+++ b/docs/providers-and-models.md
@@ -84,7 +84,7 @@ action) so the chat model does not have to. Settings asks one question first:
`decision-config.js` resolves it, and `decisionFeatureEnabled()` is the single
check every caller makes. For On, select OpenRouter (the default), TypeSafe directly, or a local/custom System One
endpoint. OpenRouter's model list comes from its decision-model catalog and includes
-all publishers. The new default is `perplexity/pplx-decider-v1-27b`; existing
+all publishers. The default is `cloudflare/clef-flash`; existing
TypeSafe keys, enabled features and scheduler thresholds stay on their original
provider until changed. Provider keys are stored separately.
diff --git a/src/chrome/src/agent/decision-config.js b/src/chrome/src/agent/decision-config.js
index 0666a9d38..b3e1fb433 100644
--- a/src/chrome/src/agent/decision-config.js
+++ b/src/chrome/src/agent/decision-config.js
@@ -1,5 +1,5 @@
import { D1_MODEL_ID, D1_CONSENT_KEY, D1_CONSENT_VERSION } from '../providers/d1-config.js';
-export const DEFAULT_DECISION_MODEL = 'perplexity/pplx-decider-v1.1-27b';
+export const DEFAULT_DECISION_MODEL = 'cloudflare/clef-flash';
// Auto (the default) uses a decision model only when one is already on hand,
// On uses the configured one for every decision, Off never uses one.
export const DECISION_MODE_KEY = 'decisionMode';
diff --git a/src/firefox/src/agent/decision-config.js b/src/firefox/src/agent/decision-config.js
index 2b50841ca..bc3bcb3d6 100644
--- a/src/firefox/src/agent/decision-config.js
+++ b/src/firefox/src/agent/decision-config.js
@@ -1,5 +1,5 @@
import { D1_MODEL_ID, D1_CONSENT_KEY, D1_CONSENT_VERSION } from '../providers/d1-config.js';
-export const DEFAULT_DECISION_MODEL = 'perplexity/pplx-decider-v1.1-27b';
+export const DEFAULT_DECISION_MODEL = 'cloudflare/clef-flash';
// Auto (the default) uses a decision model only when one is already on hand,
// On uses the configured one for every decision, Off never uses one.
export const DECISION_MODE_KEY = 'decisionMode';
diff --git a/test/completion-verifier.mjs b/test/completion-verifier.mjs
index 7ece18dbd..03b62257c 100644
--- a/test/completion-verifier.mjs
+++ b/test/completion-verifier.mjs
@@ -33,7 +33,7 @@ for (const build of ['chrome', 'firefox']) {
});
test(`${build}: new defaults and legacy/local configuration`, () => {
assert.equal(config.resolveDecisionConfig().model, config.DEFAULT_DECISION_MODEL);
- assert.equal(config.DEFAULT_DECISION_MODEL, 'perplexity/pplx-decider-v1.1-27b');
+ assert.equal(config.DEFAULT_DECISION_MODEL, 'cloudflare/clef-flash');
assert.equal(config.resolveDecisionConfig().config.inputCostPerMillionUsd, .02);
const legacy = config.resolveDecisionConfig({ typesafeApiKey: 'legacy', systemOneEnabled: true, systemOneWatchEnabled: true });
assert.equal(legacy.provider, 'typesafe'); assert.equal(legacy.url, 'https://api.typesafe.ai/v1/systemone');
diff --git a/test/systemone-fast.mjs b/test/systemone-fast.mjs
index 0e73f2d50..28f359303 100644
--- a/test/systemone-fast.mjs
+++ b/test/systemone-fast.mjs
@@ -41,7 +41,7 @@ for (const build of ['chrome', 'firefox']) {
assert.equal(requests.length, 2);
for (const request of requests) {
assert.equal(request.url, 'https://api.webbrain.one/v1/decisions');
- assert.equal(request.body.model, 'perplexity/pplx-decider-v1.1-27b');
+ assert.equal(request.body.model, 'cloudflare/clef-flash');
assert.equal(request.headers['X-WebBrain-Device-Id'], 'decision-test-device');
assert.equal(request.headers['X-WebBrain-Help-Improve'], '0');
assert.equal(request.headers['X-WebBrain-Client'], 'extension');
diff --git a/test/systemone-ui.mjs b/test/systemone-ui.mjs
index c287dfc6b..f98631550 100644
--- a/test/systemone-ui.mjs
+++ b/test/systemone-ui.mjs
@@ -62,7 +62,7 @@ try {
window.testRequests.push(msg);
const result = msg.action === 'get_providers' ? { providers: { llamacpp: { label: 'llama.cpp', category: 'local', baseUrl: 'http://localhost:8080/v1', model: 'local-model', configured: true }, openai: { label: 'OpenAI', category: 'cloud', apiKey: '', model: 'gpt-4o-mini' } }, active: 'llamacpp' }
: msg.action === 'test_system_one' ? { success: true, model: msg.settings?.decisionModel || 'jev-1.13.0', visionVerified: msg.settings?.decisionProvider === 'openrouter' }
- : msg.action === 'list_decision_models' ? { success: true, models: [{ id: 'perplexity/pplx-decider-v1.1-27b', name: 'Decider', supportsVision: true, inputRate: .02, outputRate: 0 }, { id: 'another/publisher', name: 'Another decision model', supportsVision: false, inputRate: .1, outputRate: 0 }] } : {};
+ : msg.action === 'list_decision_models' ? { success: true, models: [{ id: 'cloudflare/clef-flash', name: 'Decider', supportsVision: true, inputRate: .02, outputRate: 0 }, { id: 'another/publisher', name: 'Another decision model', supportsVision: false, inputRate: .1, outputRate: 0 }] } : {};
callback?.(result); return Promise.resolve(result);
} },
commands: { getAll: async () => [] }, tabs: { create: async () => ({}) },
@@ -151,7 +151,7 @@ try {
await page.waitForFunction(count => testRequests.filter(r => r.action === 'test_system_one').length === count, tests + 1);
assert.equal(await page.evaluate(() => testRequests.at(-1).settings.decisionMode), 'on');
await page.locator('#decision-provider').selectOption('openrouter');
- assert.equal(await page.locator('#decision-model').inputValue(), 'perplexity/pplx-decider-v1.1-27b');
+ assert.equal(await page.locator('#decision-model').inputValue(), 'cloudflare/clef-flash');
assert.equal(await page.locator('#system-one-api-key').inputValue(), '', 'TypeSafe key must not be copied into OpenRouter');
assert.equal(await page.locator('#toggle-decision-done').isChecked(), true);
await page.locator('#system-one-api-key').fill('synthetic-openrouter-key');