Recommended Free Tools
Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
For remote website automation, connect Cloudflare Code Mode to Browser Run through its Chrome DevTools Protocol (CDP) connector. Code Mode lets a model write and run a small program that composes typed tool calls, handles intermediate results and returns a focused answer. It is not the same as @cloudflare/codemode/browser, which runs code against tools in the visitor’s own browser and does not control a remote browser.
This guide joins Cloudflare’s Code Mode and Browser Run documentation into an implementation path. Both products are marked as evolving—Code Mode is experimental and Browser Run is beta—so confirm package names, bindings and session options in the current Code Mode documentation and Browser Run documentation before deployment.
What Code Mode does—and what it does not do
In ordinary tool use, a model calls a tool, receives its result, then decides what to call next. Code Mode changes that interaction: the model writes code against typed methods, and the code can make several dependent calls, branch, loop, filter data and return only the useful result. Intermediate values can stay inside that execution instead of being sent back to the model after every operation.
Free tools Windows power users keep installed
One-click scans. No signup required.
That is useful when a task has meaningful control flow or when a large tool catalog should not be loaded into context all at once. For one straightforward action with a small, fixed set of tools, direct tool calls are usually simpler. Code Mode is an orchestration layer; it does not grant browser access by itself. Cloudflare’s remote-browser path is Browser Run, using CDP.
#1 Best Overall
- Compact Mouse: With a comfortable and contoured shape, this Logitech ambidextrous wireless mouse feels great in either right or left hand and is far superior to a touchpad
- Durable and Reliable: This USB wireless mouse features a line-by-line scroll wheel, up to 1 year of battery life (2) thanks to a smart sleep mode function, and comes with the included AA battery
- Universal Compatibility: Your Logitech mouse works with your Windows PC, Mac, or laptop, so no matter what type of computer you own today or buy tomorrow your mouse will be compatible
- Plug and Play Simplicity: Just plug in the tiny nano USB receiver and start working in seconds with a strong, reliable connection to your wireless computer mouse up to 33 feet / 10 m (5)
- Better than touchpad: Get more done by adding M185 to your laptop; according to a recent study, laptop users who chose this mouse over a touchpad were 50% more productive (3) and worked 30% faster (4)
Choose the right Cloudflare browser integration
| Integration | Use it for | Execution boundary |
|---|---|---|
| Browser Run with CDP | Inspecting or interacting with a live remote page through a browser session. | Code runs against the Browser Run session through the CDP connector. |
@cloudflare/codemode/browser |
Using tools and page state owned by the visitor’s own browser, such as local page context. | Code runs in a sandboxed iframe in the client’s browser; it does not automate a remote browser. |
For the browser-owned integration, define browser tools with schemas and implementations, create a createBrowserCodeTool() descriptor using an IframeSandboxExecutor, then execute that descriptor in the client. For remote inspection, follow Browser Run’s CDP setup instead; do not treat the browser-owned package as a substitute.
Pick a Code Mode MCP pattern
One code tool for a manageable MCP server
If you own an MCP server with a limited, manageable tool catalog, Cloudflare’s codeMcpServer() pattern wraps that server behind a single code tool. This lets the model compose calls without exposing every operation as a separate model turn. Cloudflare’s current guide says this path currently returns an SDK v1 server and should be served with the explicit legacy createLegacyMcpHandler API. That implementation detail is version-sensitive; verify it in the current guide before copying it into a Worker.
search plus execute for a large catalog
For a large API, expose progressive discovery: the model first searches for relevant operations, then executes code using typed methods and shapes the result. This prevents the full catalog from being loaded into the model’s context up front. Cloudflare’s API MCP server is an example of the large-catalog use case. The choice is about discovery and context size, not whether the API can ultimately perform a browser action.
Rank #2
- The next-generation optical HERO sensor delivers incredible performance and up to 10x the power efficiency over previous generations, with 400 IPS precision and up to 12,000 DPI sensitivity
- Ultra-fast LIGHTSPEED wireless technology gives you a lag-free gaming experience, delivering incredible responsiveness and reliability with 1 ms report rate for competition-level performance
- G305 wireless mouse boasts an incredible 250 hours of continuous gameplay on just 1 AA battery; switch to Endurance mode via Logitech G HUB software and extend battery life up to 9 months
- Wireless does not have to mean heavy, G305 lightweight mouse provides high maneuverability coming in at only 3.4 oz thanks to efficient lightweight mechanical design and ultra-efficient battery usage
- The durable, compact design with built-in nano receiver storage makes G305 not just a great portable desktop mouse, but also a great laptop travel companion, use with a gaming laptop and play anywhere
Cloudflare reports that its catalog has 2,594 API tools and compares Code Mode’s use of about 1,000 tokens with about 1,170,000 tokens for native full schemas and about 244,000 tokens for required parameters. These are Cloudflare’s own catalog comparison figures, not an independent benchmark or a guarantee of the token use for another server.
Set up remote automation with Browser Run
Cloudflare’s Browser Run guide describes a Worker-based setup with a Browser binding and Worker Loader. The runtime needs to export CodemodeRuntime; the Vite plugin can provide that export automatically. Use the current Browser Run guide for the exact configuration and package/API details, because bindings and runtime integration are version-sensitive.
- Decide whether the job needs a browser. Use Browser Run when the model must inspect or interact with a live remote page. Use a regular API tool instead if the task is already represented by a stable API and does not require page rendering or browser interaction.
- Configure the Worker. Follow Browser Run’s documented setup for its Browser binding and Worker Loader. Ensure the deployed runtime exposes
CodemodeRuntime, either through the documented Vite plugin or the equivalent current configuration. - Connect the model to Code Mode. Expose the Code Mode MCP pattern appropriate to your tool catalog. Keep the browser-facing operations typed and narrowly scoped so generated code can inspect the page and perform only the actions your application intends to support.
- Run a bounded task. Have the model discover or call the relevant typed operations, use code to sequence dependent steps, and return a compact result rather than dumping page state or every intermediate response into context.
- Choose session lifecycle deliberately. Use a fresh, one-shot Browser Run session for an isolated job. Retain a session only when the workflow needs continuity of browser state. Consult the current guide for the exact supported lifecycle modes and cleanup behavior.
- Test the boundary before production. Verify what the browser can access, which actions change external state, and how a session is created and ended. Require human approval for consequential actions where appropriate.
Keep authorization outside generated code
Sandboxing code execution is not authorization. Cloudflare’s guidance is to enforce permission checks in upstream tool handlers or the host callback before side effects occur. Do not put credentials in model-visible schemas or tool results. A model-generated program should receive only the narrow capabilities it needs; the server should independently decide whether each consequential operation is allowed.
Rank #3
- Compact Mouse: With a comfortable and contoured shape, this Logitech ambidextrous wireless mouse feels great in either right or left hand and is far superior to a touchpad
- Durable and Reliable: This USB wireless mouse features a line-by-line scroll wheel, up to 1 year of battery life (2) thanks to a smart sleep mode function, and comes with the included AA battery
- Universal Compatibility: Your Logitech mouse works with your Windows PC, Mac, or laptop, so no matter what type of computer you own today or buy tomorrow your mouse will be compatible
- Plug and Play Simplicity: Just plug in the tiny nano USB receiver and start working in seconds with a strong, reliable connection to your wireless computer mouse up to 33 feet / 10 m (5)
- Better than touchpad: Get more done by adding M185 to your laptop; according to a recent study, laptop users who chose this mouse over a touchpad were 50% more productive (3) and worked 30% faster (4)
- Authenticate the caller at the host or upstream service.
- Check authorization immediately before an operation that changes external state.
- Keep secrets in server-side configuration and never return them as tool output.
- Use approval or confirmation for actions such as submitting forms, publishing content or making purchases.
- Limit available methods and validate their arguments instead of treating generated code as trusted application code.
Understand the trade-offs before choosing
| Choice | Prefer it when | Trade-off |
|---|---|---|
| Direct tool calls or Code Mode | Direct calls fit one simple action or a small fixed tool set; Code Mode fits composition, branching, loops and result shaping. | Direct calls send each intermediate result through the model interaction; Code Mode can keep intermediate work inside one execution. |
Single code tool or search + execute |
Use one code tool for an existing manageable catalog; use search and execute for a large API that benefits from progressive discovery. | The latter avoids loading a large full schema at once, but requires a discovery step. |
| Browser-owned tools or Browser Run | Browser-owned tools need the visitor’s page state; Browser Run needs remote-page inspection and CDP automation. | They run across different control boundaries; the browser-owned option cannot control a remote browser. |
| One-shot or retained Browser Run session | One-shot suits an isolated task; retained sessions suit workflows that need continuity. | State persistence and lifecycle behavior depend on the current Browser Run modes; follow the current documentation. |
Production readiness and reliability
Cloudflare explicitly warns: “Code Mode is experimental and may introduce breaking changes. Use caution in production.” Browser Run is described as beta. Treat both as evolving dependencies rather than stable, unchanging interfaces. Before a release, check the current documentation for API compatibility, session lifecycle and the exact setup supported by your Worker environment.
Keep browser work bounded and observable: return only necessary fields, apply authorization at the server boundary, and make state-changing operations explicit. Test failure paths such as a page that does not load or an interaction that cannot complete, and decide how your application should report those outcomes. Avoid assuming that a successful sandbox execution means the intended site action succeeded; verify the result through an appropriate page or service response.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshoot common setup and design problems
The model can call tools but cannot control a remote page
Likely cause: The integration uses @cloudflare/codemode/browser, which runs tools in the user’s own browser. Fix: Use Browser Run and its CDP connector for remote-page inspection and interaction.
Rank #4
- Computer mouse for easily navigating a computer interface; click, scroll, and more
- USB-A wired connection; if existing device only supports USB-C, an additional adapter will be required
- High-definition (1000 dpi) optical tracking ensures responsive cursor control for precise tracking and easy text selection
- 3 buttons offer effortless fingertip control
- Plug-and-go ready for instant use
The Worker fails to initialize the browser runtime
Likely cause: The Browser binding, Worker Loader or CodemodeRuntime export is missing or configured for a different version. Fix: Compare the deployed Worker setup with the current Browser Run guide; if using Vite, check whether its documented plugin is supplying the runtime export.
The MCP handler does not match the server returned by the helper
Likely cause: The current codeMcpServer() guide describes an SDK v1 server that uses createLegacyMcpHandler, while the Worker is wired to a different handler interface. Fix: Verify the current guide’s SDK and handler pairing before changing package versions or adapting examples.
The model sees too many operations or returns bloated output
Likely cause: A large catalog is exposed all at once, or code returns full intermediate responses. Fix: Use the search-and-execute pattern for a large API and return a focused object containing only the fields the caller needs.
Best Value
- 【Plug and Play for Home/Office/School】The wireless computer mouse features 2.4GHz connectivity, delivering a stable, interference-free connection up to 32ft. Designed for 𝐦𝐞𝐝𝐢𝐮𝐦 𝐭𝐨 𝐥𝐚𝐫𝐠𝐞 𝐬𝐢𝐳𝐞𝐝 𝐡𝐚𝐧𝐝𝐬, it ensures comfortable use all day. Simply plug in the USB-A receiver for instant pairing—no drivers needed. 📌📌 If the mouse isn’t suitable, place the USB receiver in the battery compartment and return both.
- 【3 Levels Adjustable DPI】This travel USB mouse offers 3 adjustable DPI settings (800, 1200, 1600), allowing you to customize sensitivity for precise design work. Effortlessly switch to match your task and elevate your productivity. 📌 Please remove the film at the bottom of the mouse before use.
- 【Effortless Browsing】Equipped with forward and backward buttons, this computer mice streamlines your workflow, making it easy to navigate through web pages and files with a simple click. 📌Side button does not work on Mac.
- 【Visible Indicator Light】 The pc mouse features a visual indicator for DPI levels and low battery alerts. The red light flashes once for 800 DPI, twice for 1200 DPI, and three times for 1600 DPI. When the battery level is below 10%, the light flashes red until the mouse is completely out of power.
- 【Click to Wake】With smart sleep mode, it saves power by standby after 10 inactive minutes, just 2-3 clicks to wake. This efficient design delivers 3x longer battery life than motion-wake mice. Engineered for durability, its buttons and scroll wheel are tested for 10 million clicks, ensuring long-term reliability and consistent performance.
An action runs without the intended permission check
Likely cause: The application assumes the sandbox itself enforces business authorization. Fix: Put the permission check in the upstream handler or host callback before the side effect, keep credentials server-side, and add confirmation for consequential actions.
Or skip the browser setup
If your task is to capture a website image or PDF rather than automate an interactive browser workflow, ScreenshotNeo offers a one-request screenshot API and an MCP server for AI agents. Its clean-shot flow accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads and cache hits cost nothing, with the page verdict and billing status reported in response headers. It also provides MCP tools for taking screenshots, getting page information and capturing PDFs.
Example cURL request (replace the URL with the page you need):
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for authentication, output formats and options. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up free for ScreenshotNeo.
Frequently Asked Questions
Is Cloudflare Code Mode itself a browser automation tool?
No. Code Mode orchestrates typed tool calls; Browser Run supplies the remote browser access through CDP.
Can I use Code Mode with a large API without loading every tool schema?
Yes. Use progressive discovery with a search tool followed by an execute tool.
Is Cloudflare Code Mode ready for production?
Cloudflare marks it experimental and warns it may introduce breaking changes; assess it accordingly.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteQuick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

