A prompt router using rules for complexity, privacy and cost. Routing requires no model call.
P0xter routes prompts. PHLASMA Studio runs structured CAD and cloth jobs and saves geometry and check records. The separate tower CAD loop calls the same local Qwen model P0xter uses. Direct dispatch from P0xter to Studio is planned.
The purpose is to spend one person's subscriptions and local machines sensibly: plain arithmetic is meant to go to a calculator and not a model, private and routine work stays on a local model, and nothing is billed without a switch being turned on.
Three things are kept apart on this page. The configured policy is what the rules say should happen. The 23 passing tests exercise that policy against local mocks, not real models. Live behaviour was recorded on 29 and 30 November, and two more requests were recorded on 1 December and are shown below. In one of them an arithmetic question written as a sentence was not caught by the calculator rule and was answered by the local model, so the calculator route has no live recording on this page. Answer quality has not been measured, so nothing here claims that the chosen route gives the best answer.
A prompt enters the private server.
Check arithmetic, privacy, task complexity and available routes.
Arithmetic the rule recognises goes to the calculator. Both recorded requests below were answered by the workstation’s local model.
Current configuration. The subscription route is switched off. The second local host is planned.

An arithmetic question in a sentence. The router scored it easy and kept it on the local model. The calculator route was not used for this one. Route line as recorded: Tower 4090, free, 15.8 s. The running app is still labelled PHLASMA Router in its header; it is P0xter, the program this page describes.

A routine question, answered by the local model in 7.1 s. Project notes were attached, so the answer opens with a line about them.
Both were typed into the running app on Auto and captured from the app itself. Each cost nothing and stayed on the workstation. Route and result records · How they were captured
A classifier model would spend tokens to save tokens. The router scores each prompt with fixed rules instead: length, and patterns such as a request for a proof, a design, hard engineering or depth. A score of 2 makes a prompt medium and 5 makes it hard.
The order of preference is fixed. A deterministic tool goes first when it can answer exactly. Local machines take routine and private work. A subscription route is used only for harder work, only when the prompt is not private and only while its allowance has room. A separately billed route is never chosen automatically. If a route fails, the prompt can only move to another route that satisfies the same data and spending rules.
| Prompt | Tier, score | Route chosen | Reason given |
|---|---|---|---|
| what is 18% of 2450? | easy, −2 | Calculator | Plain arithmetic, no model. Answer: 18% of 2450 = 441. |
| what is a mortise | easy, −2 | Local model | Routine task, kept on your own machine. |
| Summarise this note in two sentences… | easy, −2 | Local model | Routine task, kept on your own machine. |
| What is my bank account routing number format? | easy, −2 | Local model | Private pattern matched, kept on your own machine. |
| Prove that the XPBD stretch constraint converges… | hard, 5 | Local model | Harder task, but no subscription route was available. |
| Debug this race condition, think carefully and find the root cause… | hard, 6 | Local model | Harder task, but no subscription route was available. |
Computed on 1 December 2026 with the calculator and the local model marked available, the second local machine not set up and the subscription route off, matching the recorded state of the live instance. These six rows are computed by the policy code, not recorded from the running app, and model answers are not shown in the table. The calculator row is the only evidence of that route here.
| Part | What it does |
|---|---|
| Client | Phone or browser, an installed web app of static files. HTTPS inside a private network, access code on every call. |
| Server | One Python process on the standard library HTTP server. |
| Jobs | One thread per prompt, events buffered so a client can re-attach. |
| Policy | Rule scoring, tier chains, cost arithmetic. |
| Backends | OpenAI-compatible HTTP, the Anthropic SDK, command-line tools. |
| Store | SQLite: conversations, messages, cost and outcome per answer. |
| Config | Settings, keys and access code, all on the host. |
One process, SQLite, threads. One user and a handful of prompts a minute. There is nothing to operate beyond one file and one folder.
The server holds the keys and makes the calls. The phone never has a key, and the local model stays on localhost.
A task outlives the client. Answers stream as lines over plain HTTP, and a phone that slept can re-attach to a running job.
Subscriptions are used through their own unmodified command-line tools. The router never reads, stores or forwards a subscription login.
Every route is marked free, plan or metered. Metered routes cannot run until paid use is switched on, and never without a price. Before each metered call the worst case is checked against a daily and a monthly limit. Subscription routes have a cap per day and per week, and stop being used once a provider reports a limit. Nothing spills into paid use.
| Option | Why not now |
|---|---|
| A web framework and a separate front-end build | A second runtime for six screens and about ten routes. |
| PostgreSQL, a vector store, a job queue | No concurrent writers, no retrieval yet, one host. |
| A routing library | Two wire formats cover every provider in use. |
| Calling providers from the browser | Keys on the phone and no server-side tasks. Never. |
p0xter.com is the standalone P0xter site. mothron.com covers Mothron, the planned local model for the DGX Spark, which is not built.
One user, one host, one process. The scoring rules are hand-written and have not been measured against outcomes. Apart from the two recorded requests, no live usage figures are published. The subscription route and the second machine are not in use, so every computed example above ends on the calculator or the local model, and both recorded requests ended on the local model.