docs › Strategy Builder in your browser
Strategy Builder in your browser
Your strategies, the builder, the strategy factory and the chat in one local web page, plus a Watch it cook button that opens a read-only dexterm window on one strategy's paper run with the strategy overlay. It runs on your own machine only. Paper only; not financial advice.
dexterm autotrade web opens the Strategy Builder in your browser. It is the same strategies, factory and chat you have in the terminal, laid out on one page, served from your own machine. Nothing in it is hosted anywhere, and it loads nothing from the internet.
Read this first. Everything here is paper and simulated. A strategy is a set of rules, not an edge. The factory's generated candidates are tagged GENERATED, and most of them fail their tests. dexterm never holds a key and never signs or sends a transaction, and nothing on this page can change that.
Open it#
dexterm autotrade web # opens your browser
dexterm strategies web # the same command
dexterm autotrade web --no-open # print the link, do not open a browser
The command prints a link like http://127.0.0.1:<port>/?t=…. That link works once: opening it starts your session (a cookie only this page can read) and the address bar drops the one-time part. To open it again, or in another browser, press n in the terminal for a fresh link. A fresh link ends the old session, so only one browser is signed in at a time. Press q to stop the server.
What is on the page#
Strategies. Every strategy you have: the presets, your own and the factory's GENERATED candidates. For each one you see where it is on the ladder (draft, backtested, forward-tested, always-on paper), its rules in plain words, and its numbers exactly as dexterm's own stats return them: the held-out test of a generated candidate, the factory's evidence window (entries, mean per entry, its 95% range, at twice the costs, without the top 3, rug rate), the backtest and its held-out half, the paper forward test and a running paper account. A dash means there is no number; nothing is estimated or rounded up. Different rows come from different windows and samples, so never rank strategies on one column, and treat small samples as meaning nothing. Cooking now shows the strategy's paper bags (HELD and SOLD), its last entries and exits and which exit-ladder rungs were hit.
Builder. Start from any strategy and change it by form: the entry gates, sizing, the exit ladder (take-profit rungs at a gain or at a market cap, the moonbag that rides after them, the stops) and the caps. A live check validates every change and shows the diff and whether the edit is tighter or looser. Pressing Create proposal writes a proposal, the same kind the chat and the Q screen use; nothing changes until you press Apply. A looser edit asks a second time, like the less-safe popup on the Q screen. Presets and generated strategies are copied into a new strategy of yours. The mode stays paper, and the paper book, the Claude budget and real mode are not editable here. From the builder you can also run a backtest on your recorded history and start or stop a paper forward test.
Factory. The strategy factory: its last run, the schedule, today's Claude calls and spend against your caps, the candidates by stage, lessons.md, and Pause, Resume, Run now and Retire. Each one shows what it would do first and happens only when you press Confirm. If you stopped the factory with FACTORY-STOP on your terminal, the page shows it and cannot remove it: run dexterm autotrade factory resume in your terminal. A pause from the page is a separate pause marker that Resume lifts.
Chat. The same assistant and tools as the in-app chat, on your own Claude, capped per message. Ask it to list your strategies, explain a candidate, or turn a paper always-on strategy on or off. When it wants to change something it shows a preview card with Confirm and Cancel, and nothing happens until you press Confirm. Token names and feed text are treated as untrusted data, never as instructions.
What the chat cannot do: real mode, arming or promotion; your real-mode limits, the paper book or the daily Claude budget; signing or sending anything; removing FACTORY-STOP; applying a change you did not confirm. A strategy edit it suggests, caps included, is a proposal you apply yourself.
Watch it cook#
The Watch it cook button opens a new terminal window running dexterm in watch mode on the strategy you picked:
dexterm autotrade watch <id> --open-overlay
The window shows the strategy overlay: its rules, its open paper bags (HELD) and the last closed ones (SOLD), its entries and exits as the run ledgers record them, its paper equity and the ladder rungs hit. The same view opens in your browser as the overlay strategy scene, which you can also add to OBS as a browser source (see overlay). If a spectator session is already running, the window attaches to it instead of starting a second one, and the page says so.
The watch window only observes: it cannot arm, size, sign, send, start or stop anything, or change a cap. Press q to close it, or n for a fresh overlay link.
Which terminal opens: on macOS, Terminal; on Linux, the first of x-terminal-emulator, gnome-terminal, kitty, konsole or xterm; on Windows, Windows Terminal, or a command window. If none can be opened, the page shows the exact command with a Copy button so you can run it yourself.
The security model in plain words#
- Your machine only. The server listens on
127.0.0.1on a free port and refuses requests that do not come from your machine or that name any other host (this blocks DNS-rebinding tricks). - One-time link, one session. The link's ticket works once and only for two minutes. It becomes a cookie the page's own scripts cannot read, and it is never sent to another site.
- Every change is checked. A change must come from this page (the origin is checked) and carry the session's own anti-forgery token. Chat, launch, backtest and change requests are rate-limited.
- No path to real money. No page action and no chat tool can reach real mode, arming, your real-mode limits, bankrolls, the daily Claude budget, signing or sending. A strategy's own caps and its per-session Claude settings change only through a proposal you apply, and a looser one asks twice. Every change goes through the same paper paths as the terminal: proposals you apply, previews you confirm, paper forward tests.
- One fixed command. Watch it cook can only start
dexterm autotrade watch <id>, with an id that must be one of your strategies right now. Nothing typed into the page becomes part of a command. - Nothing secret leaves. No response carries a key, a wallet secret, your Helius key, a bot token or your environment. Addresses are shortened the same way as the spectator stream, and text from feeds and models is shown as plain text, never as page code. The page loads nothing from the internet.
Paper and simulated; not financial advice.