Tech / [23]

Factory Router: How to Use factoryRouterGuidance in Droid

Factory Router picking pricey models in Droid? Here's how I set up factoryRouterGuidance on an individual plan, with the file and the commands.

Disclosure: I applied to the Factory Guild, Factory’s ambassador program.

I went through my Droid logs the other day and found something that really bugged me! Every time my Standard Usage ran out, Factory Router (auto mode, the one that picks the model for you) grabbed Kimi K3 to keep working. Kimi K3, of all models, the most expensive open model in the catalog.

The reason was sitting in a line of the log itself: hasOrgGuidance: "false". Nobody had told the router that cost mattered to me. The setting that fixes this is called factoryRouterGuidance, and the documentation gives it one line and no example. So I’ll show you what I did, with the file and the commands.

1. What Factory Router did when my limit ran out

Hang on, let me explain. Factory Router picks the model for each Droid task, and in the model selector it shows up as Auto Model. Factory says that in production it cuts aggregate cost by 63% compared with running everything at frontier-model rates. It also weighs prompt caching heavily when it chooses (I wrote about cache hits here before).

On the individual plans, usage is counted in rolling windows of 5 hours, 7 days and 30 days. You burn Standard Usage first. When that runs out, you can keep going on Droid Core, a pool of open models with separate limits.

But every model has a multiplier. GLM-5.3-Flash weighs 0.06×, DeepSeek V4.1 Flash weighs 0.12× and Kimi K3 weighs 1.2×. Do the math: for the same token volume, Kimi K3 eats 10 times more of your limit than DeepSeek V4.1 Flash and 20 times more than GLM-5.3-Flash.

The router went for Kimi K3 because its score was high and there was no cost guidance at all. It’s like sending someone to the grocery store without a list. They come back with the brand they think is best, and the bill is higher (it happens, lol).

My router was going to the store without a list.

2. What factoryRouterGuidance is and why I had no dashboard for it

In the settings.json reference, factoryRouterGuidance is described as guidance text for Factory Router model selection, tagged as an Enterprise setting. Next to it sits factoryRouterRules, for conditional rules. And the docs stop there: no sample text, no format for the rules.

These keys are organization settings, and the dashboard where you edit them (Enterprise Controls) comes with the Business and Enterprise plans. I’m on an individual plan, so I don’t have that dashboard.

The way out is on the managed settings page: a system-managed settings.json. It was built for IT to push policy to company machines, it uses the same format as organization settings and, when it exists, it counts as the organization policy on that machine. On Linux the path is /etc/factory/settings.json. My Droid runs on a VPS, so that’s where I put it.

3. Step by step: factoryRouterGuidance in /etc/factory/settings.json

My file has four parts. Here it is, in full:

{
  "modelPolicy": {
    "allowedModelIds": [
      "claude-opus-5-5",
      "claude-sonnet-5-5",
      "claude-haiku-4-5-20251001",
      "gpt-6.1-sol",
      "gpt-6-luna",
      "gpt-5.6-terra",
      "gpt-5.4",
      "gpt-5.4-fast",
      "gpt-5.4-mini",
      "gpt-5.4-mini-fast",
      "gemini-3.1-pro-preview",
      "gemini-3.8-flash",
      "grok-4.7",
      "inkling",
      "mistral-medium-3.5",
      "glm-5.3-flash",
      "glm-5.3",
      "kimi-k3",
      "qwen3.8-max",
      "nemotron-3-ultra",
      "deepseek-v4.1-flash",
      "minimax-m3"
    ],
    "allowAllFactoryModels": false,
    "requireExplicitOptInModelIds": [
      "kimi-k3"
    ],
    "blockedModelIds": [
      "claude-fable-5.1",
      "claude-fable-5",
      "claude-opus-5-fast",
      "claude-opus-4-8-fast",
      "claude-opus-5-5-fast",
      "claude-opus-5",
      "claude-opus-4-8",
      "claude-opus-4-7",
      "claude-opus-4-6",
      "claude-opus-4-5-20251101",
      "claude-sonnet-5",
      "claude-sonnet-4-6",
      "claude-sonnet-4-5-20250929",
      "gpt-6-astra",
      "gpt-5.5",
      "gpt-5.5-fast",
      "gpt-5.5-pro",
      "gpt-5.6-sol",
      "gpt-5.6-sol-fast",
      "gpt-6-sol",
      "gpt-5.6-luna",
      "gpt-5.2",
      "gemini-3.7-flash",
      "gemini-3.6-flash",
      "gemini-3.5-flash",
      "gemini-3-flash-preview",
      "grok-4.6",
      "grok-4.5",
      "glm-5.2",
      "glm-5.2-fast",
      "glm-5.1",
      "kimi-k2.5",
      "deepseek-v4-flash-0731",
      "deepseek-v4-pro",
      "minimax-m2.7"
    ],
    "allowCustomModels": true,
    "isFastModelsAllowed": true
  },
  "factoryRouterGuidance": "Custo importa: para tarefas rotineiras prefira glm-5.3-flash (0.06x) ou deepseek-v4.1-flash (0.12x). Para orquestracao e validacao prefira qwen3.8-max ou glm-5.3. Evite kimi-k3 (1.2x) e modelos premium (claude/gpt) exceto pedido explicito do usuario ou tarefa que exija capacidade de fronteira."
}

The first part, allowedModelIds, is what’s allowed in the cart: 22 models. What stayed: the frontier models, the cheapest open ones and the GPT-5.4 family, which I kept because the log shows the router’s own classifier running on gpt-5.4-mini-fast (I didn’t want to risk it). But an allowlist is a gate closed to the future. With allowAllFactoryModels set to false, when Factory ships a new model, it won’t show up until I add its ID to the list. That’s what I asked for (“only these”), but it takes upkeep at every launch.

The second, requireExplicitOptInModelIds, deals with Kimi K3. It’s still in the allowlist, but with this key the router stopped grabbing that model on its own when I fall back to Core.

The third, blockedModelIds, is what stays out of the cart. I blocked 35 models with one simple rule: keep only the latest generation of each family. Out went everything at 4× and up, like the Fable models, GPT-6 Astra and GPT-5.5 Pro (12×). Out went the older Opus models, leaving only Opus 5.5. And out went the open models from past generations.

The fourth is the shopping list, factoryRouterGuidance. Mine is written in Portuguese: routine work goes to GLM-5.3-Flash or DeepSeek V4.1 Flash, and orchestration and validation go to Qwen3.8 Max or GLM-5.3. It also asks the router to avoid Kimi K3 and the premium models unless I ask for them or the task needs frontier capability.

To apply it and to undo it:

# apply (the file was prepared in /tmp)
sudo install -m 644 /tmp/factory-system-settings.json /etc/factory/settings.json

# full rollback
sudo rm /etc/factory/settings.json

According to the documentation, if this file is malformed, the organization policy resolves to empty and the failure goes to the log. Validate the JSON before you install it! And a blocked model is gone for everything on that machine, including when you want to pick it by hand.

IDs have to be exact. The documentation says an ID it doesn’t recognize is silently dropped, with no error at all. If a model you expected to see doesn’t show up (or one you blocked is still there), the first suspect is a typo in the ID. The second is an old session that was never restarted.

4. How I checked in the log that factoryRouterGuidance took effect

Check the log! In ~/.factory/logs/droid-log-single.log, hasOrgGuidance went from false to true. And the router’s eligible list kept shrinking until it looked like this:

claude-opus-5-5, gpt-6.1-sol, glm-5.3, deepseek-v4.1-flash, minimax-m3

The worst case now is Opus 5.5 (1.6×), with the guidance asking it to prefer the cheap open models.

I don’t have before-and-after usage numbers yet, only the log. Both lists are rules, but the guidance is a piece of advice in plain text, and I haven’t measured how much it changes the picks. Also notice that GLM-5.3-Flash, which I name in the guidance and which is in the allowlist, is not in the eligible list. DeepSeek V4.1 Flash is. I don’t know why yet.

5. FAQ

Does factoryRouterGuidance work on an individual plan?

On mine it worked through the /etc/factory/settings.json file: the log started showing hasOrgGuidance: "true". The documentation treats the key as an organization setting, and the Enterprise Controls dashboard is not part of the individual plans.

Where does this file live on macOS and Windows?

Per the documentation, on macOS it’s /Library/Application Support/Factory/settings.json and on Windows it’s C:\Program Files\Factory\settings.json. I only tested on Linux.

Are Factory Router and Auto Model the same thing?

Yes. The documentation says the router appears as Auto Model on some product surfaces and that the official name is Factory Router.

Write the list before you send the router to the store.

Cheers,
Fellipe Soares

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *