User Guide Ollama Setup Search Setup MCP Servers Skills Desktop App Local API Video Maker Limits & Desktop

BroClaw Guide

Everything you need to get started, connect local models, set up private search, use Skills, make videos, and choose between the website and desktop app.

User Guide

BroClaw stores chats, settings, and files on your device and requires no account. Cloud model, search, and connector requests go to the selected services; some integrations are forwarded through BroClaw's relay. See the privacy policy for details.

Quick Start (30 seconds)

  1. Open the app — click Open BroClaw on the landing page.
  2. Pick a workspace — choose a local folder (recommended) or use Memory Mode for a session-only scratch space.
  3. Select a model — click the model chip in the top-left corner. Use a free local model (no key needed) or paste an API key for cloud quality.
  4. Type a task — e.g. "Research the latest in AI and write a report" or "Build a todo app in HTML/CSS/JS".
  5. Watch it work — BroClaw searches the web, reads pages, writes files, and iterates until the job is done.
  6. Stop anytime — click in the chat input to immediately halt the agent.

Core Concepts

Agent Loop
BroClaw uses a Think → Act → Observe cycle. The AI reasons about what to do next, executes an action (search, read, write), feeds the result back to itself, and repeats until the task is complete or you stop it.
Workspace Folder
A local folder you grant BroClaw access to. Config, skills, and generated files are saved here. You own the folder — BroClaw writes nothing outside it.
Memory Mode
No folder needed. Everything lives in-session only in IndexedDB. Files the agent creates aren't saved to disk after you close the tab.
Chat Memory
Each chat has its own memory; chats do not share saved facts. BroClaw keeps short-lived working notes during a task, then clears them, while useful facts and a brief task summary can remain for later turns in that same chat. The agent may save these automatically when it finishes or when it compacts a long conversation; you can also add, review, or delete saved facts with the 🧠 Memory button. This is not a full-history checkpoint: the chat transcript is saved separately. Memory is stored locally in your browser (IndexedDB), and with a selected workspace a chat-specific snapshot is also saved at chats/<chat-id>/memory.json.
Skills
Pre-built prompt accelerators for common tasks. Pick a skill, fill in the variable, and send — no need to write the full prompt yourself.
MCP Server
An external tool provider speaking the Model Context Protocol. Add one in Settings → Connectors and its tools become available to the agent automatically — see MCP Servers above.
Browser sandbox
BroClaw runs inside your browser's security sandbox: safe and install-free, but it cannot start programs, install software or use your whole computer. See Limits & Desktop.
BroClaw Desktop
The Windows and macOS app includes native code execution and computer control. Choose a workspace folder if you want the agent to work directly with that folder.
Extended Thinking
When using Claude or o3/o4-mini models, BroClaw streams the model's internal reasoning steps in real time so you can follow its logic step by step.

Supported Models

ModelTypeCostBest For
Claude Sonnet 4.6Cloud APIMediumBest overall quality, extended thinking
Claude Haiku 4.5Cloud APILowFast everyday tasks
GPT-4o / o3Cloud APIMed/HighReasoning-heavy tasks
Gemini 2.0 FlashCloud APILowFast with generous free tier
Ollama (local)Self-hostedFreePrivacy-first, no API cost
Qwen3 / Gemma / LlamaIn-browser (WebGPU)FreeCompletely offline, no install

Privacy & Security

Keyboard Shortcuts

ShortcutAction
EnterSend message
Shift+EnterNew line in message
EscapeStop agent / close modal
Ctrl+/Open the in-app docs panel

Connecting Ollama to BroClaw

Ollama lets you run powerful AI models (Qwen3, Llama, Phi-4, Mistral…) locally on your own hardware — completely free, completely private. BroClaw connects to it directly from the browser over http://localhost:11434.

One required step: Because BroClaw is served over HTTPS (https://broclaw.io), Ollama must be told to allow that origin via a CORS environment variable. This is a browser security rule — BroClaw cannot work around it in code. The steps below handle this.

Step 1 — Install Ollama

If you haven't already, download and install Ollama from ollama.com ↗. It runs on Windows, macOS, and Linux.

Step 2 — Start Ollama with the correct CORS setting

You must start Ollama with OLLAMA_ORIGINS=https://broclaw.io. The fastest way is BroClaw's built-in script downloader:

  1. Go to Settings → Local / Custom in BroClaw.
  2. Click Download for Windows (.bat) or Download for Mac/Linux (.sh).
  3. Run the downloaded script. It sets the CORS origin and starts Ollama automatically.

Download the scripts directly: Windows (.bat) · Mac/Linux (.sh). Keep the terminal window open while using BroClaw.

Or run manually:

Windows (PowerShell)

# Kill any running Ollama (including the tray app)
taskkill /IM ollama.exe /F

# Permanently write the origin to your user environment (survives reboots)
setx OLLAMA_ORIGINS "https://broclaw.io"

# Set it for this session too, then start serving
$env:OLLAMA_ORIGINS="https://broclaw.io"; ollama serve

macOS / Linux (Terminal)

pkill ollama
OLLAMA_ORIGINS=https://broclaw.io ollama serve

To make it permanent on Mac/Linux, add export OLLAMA_ORIGINS=https://broclaw.io to your ~/.zshrc or ~/.bashrc, then restart your shell.

Step 3 — Pull a model

Open a new terminal window and pull one of these recommended models:

ModelRAM neededTool callingBest for
ollama pull qwen3:0.6b1 GB NativeUltra-fast tasks
ollama pull qwen3:1.7b2 GB NativeEveryday coding
ollama pull llama3.2:3b2.5 GB NativeInstructions + chat
ollama pull qwen3:4b5 GB Native + thinkingComplex tasks
ollama pull phi4-mini3 GBJSON structuredReasoning
ollama pull mistral:7b8 GB NativeHigh-quality output

Step 4 — Connect in BroClaw

  1. Open Settings → Local / Custom.
  2. Set the URL to http://127.0.0.1:11434 (or http://localhost:11434).
  3. Select your model from the dropdown — BroClaw fetches the list automatically.
  4. Click the model chip in the top-left of the chat to confirm the selection.

Why CORS?

Browsers block HTTPS pages from making requests to HTTP endpoints unless the HTTP server explicitly permits it via Access-Control-Allow-Origin headers. OLLAMA_ORIGINS tells Ollama to send those headers for https://broclaw.io, authorising the browser to forward the response. Chrome and Edge do allow HTTPS → localhost as a special case — but only with the correct origin header from Ollama's side.

Troubleshooting

ProblemFix
CORS error in consoleRestart Ollama with OLLAMA_ORIGINS=https://broclaw.io set — the tray app may have restarted without the variable.
No models appear in dropdownMake sure you've pulled at least one model: ollama pull qwen3:1.7b
Connection refusedOllama isn't running. Open a terminal and run OLLAMA_ORIGINS=https://broclaw.io ollama serve
Works today, broken tomorrow (Windows)Run setx OLLAMA_ORIGINS "https://broclaw.io" once to write it permanently to your Windows user environment.
Firefox blocks itFirefox may block HTTP localhost requests from HTTPS pages. Use Chrome 113+ or Edge 113+.

Search Provider Setup

Search works out of the box: BroClaw Search is on by default and needs no account or key. To use something else, pick it in Settings → Search: SearXNG (self-hosted, free) is the best choice for privacy and control; Brave Search API and SerpAPI need an API key; Google (proxy) needs no key. In the Desktop app, search has a safety net: if BroClaw Search can't be reached, the app searches Google, DuckDuckGo and Bing straight from your own computer instead of failing.

Which Provider Should I Use?

ProviderCostPrivacySetup effort
SearXNG (local)Free Best — queries never leave your machine~5 min (Docker)
Brave Search APIFree tier (2 000 req/mo) Good1 min (get API key)
SerpAPIPaid (100 free/mo) Searches via SerpAPI servers1 min (get API key)

Option A — SearXNG + Caddy (Recommended)

SearXNG is a self-hosted meta-search engine that aggregates Google, Bing, DuckDuckGo, and dozens of other engines. No API key. No rate limits. Results stay on your machine. A lightweight Caddy reverse proxy adds the CORS headers your browser requires to talk to it.

Prerequisites: Docker Desktop ↗ installed and running.

How it works

Browser (BroClaw)
    ↓ POST /search?format=json
Caddy :8888  (adds CORS headers)
    ↓ proxies to
SearXNG :8080 (meta-search engine)
    ↓ queries
Google / Bing / DuckDuckGo / etc.

Without Caddy, the browser would block SearXNG's responses due to missing Access-Control-Allow-Origin headers. Caddy injects this header transparently.

The two config files

Both files are already included in the searxng-config/ folder of your BroClaw download — you don't need to create them. They're shown here so you can verify or recreate them if needed.

searxng-config/docker-compose.yaml

services:
  searxng:
    image: searxng/searxng:latest
    container_name: searxng
    volumes:
      - searxng-data:/etc/searxng
    expose:
      - "8080"
    restart: unless-stopped

  caddy:
    image: caddy:latest
    container_name: caddy
    ports:
      - "8888:80"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
    depends_on:
      - searxng
    restart: unless-stopped

volumes:
  searxng-data:

searxng-config/Caddyfile

:80 {
    reverse_proxy searxng:8080

    # Allow BroClaw (and any browser) to read SearXNG responses cross-origin.
    # Without these headers the browser blocks the response even though the
    # request goes through — SearXNG does not add CORS headers itself.
    header Access-Control-Allow-Origin  "*"
    header Access-Control-Allow-Methods "GET, POST, OPTIONS"
    header Access-Control-Allow-Headers "Content-Type, Accept"

    @options method OPTIONS
    respond @options 204
}

Step 1 — Start the Docker stack

Open a terminal in the searxng-config/ folder (included in the BroClaw download — contains docker-compose.yaml and Caddyfile):

# First time or full reset — removes old data:
docker compose down -v

# Start SearXNG + Caddy reverse proxy:
docker compose up -d

# Wait ~10 seconds for SearXNG to boot and write its config

Step 2 — Enable JSON format

BroClaw reads search results as JSON. You must enable this in SearXNG's settings.yml after first boot (the file is generated by SearXNG on startup — editing it before boot causes YAML parse errors).

Docker Desktop (Windows/Mac):

  1. Open Docker Desktop → Volumes → searxng-config_searxng-data
  2. Browse to etc/searxng/settings.yml and click to edit.

Linux / terminal:

docker exec -it searxng sh
vi /etc/searxng/settings.yml

Find or add the search block and make it read exactly:

search:
  formats:
    - html
    - csv
    - json
    - rss

Step 3 — Restart & verify

docker compose restart searxng

# Verify JSON works (should return JSON, not an error):
curl "http://localhost:8888/search?q=test&format=json"

Step 4 — Connect in BroClaw Settings

  1. Go to Settings → Search.
  2. Set Provider to SearXNG.
  3. Set URL to http://localhost:8888.
  4. Use the Test connection button in Settings to confirm it works.

Troubleshooting SearXNG

ProblemFix
403 errors / blocked as botCreate limiter.toml in the volume with: [botdetection.ip_limit] / link_token = false / [botdetection.ip_lists] / pass_ip = ["0.0.0.0/0", "::/0"]
"format not supported"The search.formats block is missing. Repeat Step 2.
Port 8888 already in useChange 8888:80 → 8889:80 in docker-compose.yaml and update the URL in BroClaw.
Need full resetdocker compose down -v && docker rmi searxng/searxng:latest then restart from Step 1.

Why not a public instance? Public instances at searx.space ↗ often disable the JSON format BroClaw needs, enforce rate limits that block repeated agent searches, and may log your queries. Running locally avoids all three.


Option B — Brave Search API

  1. Go to api.search.brave.com ↗ and sign up for a free API key (2 000 queries/month free).
  2. In BroClaw → Settings → Search, select Brave and paste your key.

Brave Search API supports CORS natively — no proxy or Docker needed.

Option C — SerpAPI

  1. Sign up at serpapi.com ↗ (100 free searches/month).
  2. In BroClaw → Settings → Search, select SerpAPI and paste your key.

SerpAPI routes through BroClaw's service worker proxy to handle CORS — no setup needed.

MCP Servers

Connect any Model Context Protocol (MCP) server and BroClaw discovers its tools automatically — no code changes, no rebuild. Once connected, the agent can call those tools in chat exactly like its built-in ones (writing files, running code, etc.) — you just ask for what you want and the agent picks the right tool itself.

How it works

BroClaw talks to MCP servers over plain HTTP from inside your browser tab — the same way it already talks to Ollama. There's no built-in list of supported servers; you paste a URL into Settings → Connectors → MCP Servers and BroClaw asks that server what tools it has.

This only works for servers that speak MCP's Streamable HTTP transport. Most MCP servers you'll find described as npx -y some-package use a different transport called stdio (they only talk over a process's standard input/output) — a browser tab cannot start a process directly, so those need a small local bridge first (see Option B). Every connection — direct, bridged, or authenticated — ends up looking identical to BroClaw once it's added: just a URL, optionally with headers.

Once a server shows a green dot in Settings, its tools are simply available to the agent in every chat — there's no per-chat "enable this tool" step. If you connect a weather server and a GitHub server, just ask "what's the weather in Tokyo, and what are the open issues on my repo?" and the agent calls both automatically.

Option A — Direct connect (no bridge needed)

If a server is already reachable over HTTP and allows browser connections (sends CORS headers for this site), you can connect straight away — exactly like adding an Ollama endpoint:

  1. Get the server's URL — e.g. https://mcp.example.com/mcp, or a local one already running on your machine such as http://localhost:8000/mcp.
  2. In BroClaw → Settings → Connectors, scroll to MCP Servers.
  3. Enter a name and paste the URL, then click + Add server.
  4. BroClaw connects immediately and lists how many tools it found. A green dot means it's ready to use in chat.

If the add fails with a network error, the server most likely isn't CORS-enabled for browser clients. That's a server-side setting (most MCP frameworks call it allowed_origins or similar) — see Option B below if you can't change it.

Option B — Bridging a local stdio server with mcp-proxy

Most local MCP servers you'll see in setup guides — including code-sandbox servers like sandbox-mcp — are stdio-only. mcp-proxy ↗ is a small, widely-used open-source tool that spawns the stdio server for you and exposes it as a local HTTP endpoint BroClaw can reach — the same role Caddy plays for SearXNG above.

Browser (BroClaw)
    ↓ fetch POST/GET http://localhost:8811/mcp
mcp-proxy :8811  (HTTP \u2194 stdio bridge)
    ↓ spawns & talks stdio to
Your MCP server  (e.g. npx -y @pottekkat/sandbox-mcp)
    ↓ e.g. runs code inside
Docker container (isolated, ephemeral)

Step 1 — Install mcp-proxy

# Requires Python 3.10+ and uv (or pipx)
uvx mcp-proxy --help   # downloads & runs on first use, no install step needed

# or install it once:
pipx install mcp-proxy

Step 2 — Start the bridge, pointing it at your MCP server's stdio command

Example using sandbox-mcp (runs arbitrary code in isolated Docker containers — requires Docker Desktop running):

uvx mcp-proxy --port=8811 -- npx -y @pottekkat/sandbox-mcp

Swap the part after -- for any other stdio MCP server's normal launch command — the pattern is identical regardless of which one you use.

Step 3 — Add it in BroClaw

  1. In BroClaw → Settings → Connectors → MCP Servers, enter a name (e.g. "Sandbox") and the URL http://localhost:8811/mcp.
  2. Click + Add server. BroClaw connects through the bridge and lists the tools it found.
  3. Leave the mcp-proxy terminal window running in the background while you use BroClaw — closing it disconnects the server (the same as quitting Ollama).

Option C — Servers that require auth (tokens, API keys)

Auth headers work the same way for every Streamable HTTP MCP connection — cloud-hosted, self-hosted on your own server, or local (including a local mcp-proxy bridge). There's nothing service-specific about it: whatever sits behind the URL, BroClaw attaches the same headers to every request it sends — the initial handshake, tool discovery, and every tool call. When adding a server, expand Auth headers (optional) and enter one header per line as Name: Value, for example:

Authorization: Bearer sk-abc123
X-Api-Key: my-key

These are sent on every request to that server, the same way server.headers is already used for the session-id handshake. They're stored in localStorage alongside the server's URL — anyone with access to this browser profile can read them, so don't use this on a shared or public machine. To rotate or update a token later, click Auth on that server's card in Settings, edit the textarea, and save — BroClaw reconnects automatically.

The one exception — stdio-only servers: a handful of MCP servers (most commonly database connectors, e.g. @modelcontextprotocol/server-postgres) are stdio-only and take their credential as a command-line argument or environment variable when launched, not as an HTTP header. For those, the credential is supplied at the mcp-proxy step in Option B instead of in BroClaw's Auth headers field — see Example 4 below.

Worked examples

A few concrete setups, covering the most common shapes of MCP server you'll run into.

Example 1 — Cloud server, no auth (direct connect)

Some hosted MCP servers are open to any browser, no key required — good for trying things out. If you have one's URL handy:

  1. Name: Public Demo, URL: https://example-mcp.fly.dev/mcp (substitute the real URL).
  2. Leave Auth headers empty and click + Add server.
  3. If it connects, you'll see its tool count immediately — no Option B or C needed.

Example 2 — Cloud SaaS server with a bearer token

Most production MCP servers (search APIs, project-management tools, CRMs) require a key. This is Option A + Option C together:

  1. Get an API key from the service's dashboard.
  2. Name: Linear (or whatever the service is), URL: the server's MCP endpoint, e.g. https://mcp.linear.app/mcp.
  3. Expand Auth headers and enter: Authorization: Bearer <your-api-key>
  4. Click + Add server. A 401/403 here means the header name or token is wrong — check the service's MCP docs for the exact header it expects (some use X-Api-Key instead of Authorization).

Example 3 — Local stdio server, no credentials (Option B alone)

A filesystem or sandbox tool that just needs to run locally, with nothing to authenticate:

uvx mcp-proxy --port=8811 -- npx -y @modelcontextprotocol/server-filesystem /Users/you/projects

Then add http://localhost:8811/mcp in BroClaw with no auth headers. The path after the package name (/Users/you/projects) restricts that server to one folder — check the server's own README for its exact arguments.

Example 4 — Local stdio server with a built-in credential (database, Option B + the stdio exception from Option C)

Database connectors are the classic case where the credential lives in the launch command, not in BroClaw's UI:

uvx mcp-proxy --port=8811 -- npx -y @modelcontextprotocol/server-postgres "postgresql://user:password@localhost:5432/mydb"

Add http://localhost:8811/mcp in BroClaw with no auth headers — the credential never leaves your machine's terminal. The same pattern applies to any stdio server that takes a connection string, API key, or token as a CLI argument or environment variable (e.g. GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxx npx -y @modelcontextprotocol/server-github, bridged the same way).

Example 5 — Self-hosted server on your LAN, custom header

Not every server is "cloud" or "localhost" — e.g. a Streamable HTTP MCP server you run on a home server or office machine:

  1. Name: Home Assistant, URL: http://192.168.1.50:9000/mcp (your machine's LAN IP).
  2. If that server checks a shared secret, expand Auth headers and add whatever header it expects, e.g. X-Internal-Token: my-shared-secret.
  3. Click + Add server. This works exactly like Example 2 — auth headers don't care whether the IP is a public domain or a private LAN address.

Managing connected servers

Each server in Settings shows a green/red status dot, how many tools it exposes, and four controls: a checkbox to temporarily disable it without removing it, Reconnect to refresh its tool list after restarting the server, Auth to view or update its auth headers, and Remove to delete it entirely. Disabled servers are not offered to the agent at all, so you can keep several configured and only turn on the one you need for a given task.

A note on stdio support

BroClaw is a browser-only app with no backend process, so it can never spawn a child process or speak stdio directly — this is a hard limitation of running inside a browser tab, not something specific to BroClaw. Every MCP client that supports stdio servers natively (Claude Desktop, Claude Code, Cursor, etc.) does so because it ships with its own Node.js/Electron backend able to call child_process.spawn(). BroClaw deliberately stays browser-only, so stdio servers always go through the mcp-proxy bridge described in Option B above — there is no plan to add a backend just to remove that step.

Troubleshooting

SymptomFix
"Could not reach the server" on AddIf it's a local stdio server, make sure mcp-proxy (or your bridge) is still running in its terminal. If it's remote, the server isn't sending CORS headers for browser clients — ask the provider, or bridge it locally instead.
Server shows 0 tools after connectingThe server connected but returned an empty tool list — check its own logs; some servers require an API key or extra config passed via environment variables before they register any tools.
"401 Unauthorized" or "403 Forbidden" on Add/ReconnectThe server needs an auth header BroClaw isn't sending yet, or the header name/value is wrong. Expand Auth headers when adding it, or click Auth on an existing server card to add/fix one — check the service's own MCP docs for the exact header name it expects.
Agent never calls the tool I expectCheck the server's tool descriptions in Settings (hover/expand if shown) — the agent picks tools based on their name and description, so a vague description can get skipped in favor of a built-in tool that sounds closer to what you asked for.
Tool calls time outSandboxed code execution (e.g. installing packages, building a container image) can take longer than usual — this is expected for first-run tool calls on a cold sandbox.
Sandbox-style servers fail immediatelyConfirm Docker Desktop is installed and running — sandbox-mcp and similar servers need it to create isolated containers.

Skills

Skills are one-click prompt templates that accelerate common tasks.

Using Skills

  1. Click the Skills tab in the left sidebar.
  2. Browse or search by keyword (e.g. "research", "debug", "email").
  3. Click Use ↗ — the skill prompt appears in the chat input.
  4. Replace {input} or {topic} with your specific content.
  5. Press Enter or click Send — the agent takes it from there.

Built-in Skills

Research
  • Deep Research
  • Fact Check
  • Competitive Analysis
  • Literature Review
Code
  • Build App
  • Debug & Fix
  • Code Review
  • Refactor
  • Write Tests
Writing
  • Blog Post
  • Summarise
  • Email Draft
  • Press Release
Analysis
  • SWOT Analysis
  • Pros & Cons
  • Data Interpretation

Creating Custom Skills

Go to the Skills tab and click + New Skill. Give it a name, description, and a prompt template. Use {input} as the placeholder for what the user types.

# Example custom skill prompt:
You are a senior product manager. Given the following feature request:
{input}

Write a one-page PRD covering: problem statement, user story, success metrics, and out-of-scope items.

Agent Actions Reference

The most-used tools (Settings → Tools lists all of them, and each can be switched off):

ActionWhen UsedOutput
searchNeed current info from the webTop search results with titles, URLs, snippets (in the Desktop app it runs from your computer)
open_tabNeed full page content from a URLClean page text (website: relays/readers; Desktop app: direct fetch only, no reader or relay fallback; private networks remain blocked)
create_documentWrite a file: Markdown, HTML, Word, Excel, PowerPoint, code…File created in the workspace folder
create_zipBundle a multi-file projectA downloadable ZIP
read_file / edit_fileRead or change an existing workspace fileFile contents / the edit applied
run_codeCalculate, transform data, test a script. Website uses browser JavaScript/Pyodide; connected desktop access uses native Node/Python on Windows/macOS and requires runCommand enabled.Program output. Asks permission first
render_videoMake a short video with optional AI voice and music (Video Maker)An MP4 file card (or a PNG preview frame). Asks permission first
spawn_subagent / spawn_subagentsHand independent sub-tasks to helper agentsEach helper's result
memory_writeStore a fact for future turnsWritten to session memory
desktop_actionReal computer work: PowerShell / terminal commands, screenshots, files, clipboard, opening apps. Available in the Desktop app; website-only sessions should recommend the app when local access is neededThe command's output
task_doneTask is completeFinal answer rendered in chat

Writing Good System Prompts

Desktop App (Windows & macOS)

The same BroClaw as an installable app: its own window, no browser tab, nothing to configure. The website is unchanged and stays free — the app is an option.

Install

  1. Download the installer for your system from the Download section of the home page: a .exe for Windows 10/11 (64-bit), or a .dmg for macOS (Apple Silicon or Intel).
  2. Run it. On Windows the installer lets you pick the folder and creates shortcuts. On macOS open the .dmg and drag BroClaw into Applications.
  3. First launch warning. Until the installers are code-signed, Windows may show “Windows protected your PC” — choose More info → Run anyway. macOS may say the app cannot be checked — right-click BroClaw and choose Open, or use System Settings → Privacy & Security → Open Anyway.

What each version can do

WebsiteDesktop app (Windows and macOS)
InstallNoneInstall BroClaw Desktop; computer access is built in
Chats & settingsStored by the browser for broclaw.ioStored by the app and separate from website chats
UpdatesAutomatic when you reloadInstall the new app version manually
SearchBroClaw Search or the selected provider; some requests use a relaySame providers; app search can use the computer's connection and has a direct-search fallback
Read web pages (open_tab)Relay, then public reader servicesFetches directly from the computer; no third-party reader or relay fallback
Run code (run_code)JavaScript and Python in the browser sandbox (limits)Native Node/Python on Windows/macOS; runs as your OS account
PowerShell / terminal, screenshots, files, clipboard, processesUnavailableBuilt in; shell and other sensitive actions are individually gated
Mouse, keyboard, and windowsUnavailableWindows only
Local AI modelsIn-browser WebGPU/WASM models or OllamaIn-browser models, Ollama, and BroClaw's built-in llama.cpp GGUF engine

For faster native execution and computer control, use the Desktop app. You can select a workspace folder in the app when you want BroClaw to work directly with that folder. Native code and shell commands run with your computer account's permissions; they are not OS-isolated sandboxes.

Good to know

Use BroClaw's models from your code

The local API is included in the Windows and macOS desktop app. It serves models downloaded in Settings → Local models to programs on the same computer. The website does not host a general-purpose API.

  1. Open BroClaw Desktop and download a chat model in Settings → Local models.
  2. In the Local API card, switch the API on. Copy its address and API key; the default address is http://127.0.0.1:11500/v1, but use the address shown in your app if the port differs.
  3. Choose a model ID from GET /v1/models, then send requests to POST /v1/chat/completions with an Authorization: Bearer … header.
Local access only: the server listens on this computer's loopback address. Keep the API key private. This local model API currently supports text chat, but not tool/function calling or image input. Streaming is available through the OpenAI-compatible endpoint.

Quick terminal test (macOS / Linux)

Replace the key and model ID with values from the Local API card. The first command lists installed model IDs; the second sends a test prompt:

curl http://127.0.0.1:11500/v1/models \
  -H "Authorization: Bearer YOUR_BROCLAW_API_KEY"

curl http://127.0.0.1:11500/v1/chat/completions \
  -H "Authorization: Bearer YOUR_BROCLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"YOUR_INSTALLED_MODEL_ID","messages":[{"role":"user","content":"Reply with: BroClaw API works"}]}'

Quick terminal test (Windows PowerShell)

In PowerShell, use Invoke-RestMethod (or call curl.exe explicitly; curl alone is a PowerShell alias). Replace the key and model ID first:

$headers = @{ Authorization = "Bearer YOUR_BROCLAW_API_KEY" }
Invoke-RestMethod -Uri "http://127.0.0.1:11500/v1/models" -Headers $headers

$body = @{
  model = "YOUR_INSTALLED_MODEL_ID"
  messages = @(@{ role = "user"; content = "Reply with: BroClaw API works" })
} | ConvertTo-Json -Depth 5
Invoke-RestMethod -Uri "http://127.0.0.1:11500/v1/chat/completions" `
  -Method Post -Headers $headers -ContentType "application/json" -Body $body

Python

Install the OpenAI Python client with pip install openai, then use the desktop app's address, key, and an installed model ID:

from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:11500/v1",
    api_key="YOUR_BROCLAW_API_KEY",
)

response = client.chat.completions.create(
    model="YOUR_INSTALLED_MODEL_ID",
    messages=[{"role": "user", "content": "Write a haiku about coding."}],
)
print(response.choices[0].message.content)

Java (Java 11+)

This example uses Java's built-in HTTP client and prints the JSON response:

import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class BroClawExample {
    public static void main(String[] args) throws Exception {
        String json = "{\"model\":\"YOUR_INSTALLED_MODEL_ID\","
            + "\"messages\":[{\"role\":\"user\","
            + "\"content\":\"Write a haiku about coding.\"}]}";
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("http://127.0.0.1:11500/v1/chat/completions"))
            .header("Authorization", "Bearer YOUR_BROCLAW_API_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(json))
            .build();
        HttpResponse<String> response = HttpClient.newHttpClient()
            .send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.statusCode());
        System.out.println(response.body());
    }
}

For the full list of supported routes, request fields, streaming format, and error behavior, see the API reference.

Video Maker

Ask for a video and BroClaw draws every frame with code, adds an AI voice-over and background music if you want them, and saves a ready-to-share MP4 — all in your browser. Nothing is uploaded.

Try it

Make a 20-second 1280x720 product teaser for "Acme Notes": dark background,
animated headline, three feature cards sliding in, a calm music bed and a
friendly voice-over. Show me one preview frame first.

How it works

  1. Plan — the agent reads its built-in video-production skill (design rules and the heavy-video route) and writes a short scene plan.
  2. Preview — it renders one frame as a PNG so you can check layout, colours and text before the long render. Ask for changes here; it is cheap.
  3. Render — every frame is drawn on a canvas and encoded with your browser's built-in video encoder. Progress shows on the action card.
  4. Result — the MP4 appears as a file card, and is saved in your workspace folder's generated/ folder (in Memory Mode, download it from the card).

Options the agent can use

OptionMeaning
durationLength in seconds. Optional when there is narration — the voice sets the length.
narrationLines read aloud by an AI voice. The scene code is told when each line is spoken, so captions and scenes follow the voice.
voiceDefault am_michael. Others: af_heart, af_bella, am_adam, bf_emma, bm_george.
musicnone (default), calm or upbeat — a synthesized bed that is lowered automatically while the voice speaks.
width, height, fpsDefault 1280×720 at 30 fps.
preview_atRender just the frame at this time (seconds) as a PNG.

What you need

Browser limits — and the heavy-video route

In the browserBroClaw Desktop app
Up to 1920×1080 at 60 fps4K or larger
Up to 3 minutesLonger videos
2D graphics, text, charts, UI mock-ups, simple motionHeavy per-frame effects (many layers, blur, shadows), existing footage, 3D
One browser tab's CPUYour computer's full CPU, FFmpeg and Python libraries

When a request is too heavy, BroClaw does not shrink it quietly: the agent explains the trade-off and recommends the BroClaw Desktop app. There it can render the frames with Python and encode them with FFmpeg on your computer (segment by segment, so long renders do not time out).

Good to know

Browser Sandbox Limits & BroClaw Desktop

In a browser tab BroClaw runs inside the page, so it cannot control your computer or run native programs. For faster local execution, desktop control, or access to a project folder you choose, install the BroClaw Desktop app for Windows or macOS. The table shows what each option provides.

What runs where

Website (browser tab)BroClaw Desktop app
Web search (search)BroClaw Search (default), or the provider you chooseSame providers, with a local fallback if BroClaw Search is down
Read a page (open_tab)Via a relay, then public reader servicesDirect fetch from your computer
Run code (run_code)JavaScript + Python (Pyodide) in a browser sandboxNative Node/Python on Windows/macOS
PowerShell / terminal commands✗✓ off by default
Screenshots, live frames, OCR, files, clipboard, processes, open apps✗✓ built in (Windows and macOS)
Mouse, keyboard, window control✗Windows only
Local AI modelsIn-browser (WebGPU) or OllamaIn-browser models, Ollama, and GGUF models downloaded in Local models

“Shell” means PowerShell on Windows and the standard terminal shell on macOS. It runs with your user account's rights, so it is switched off until you turn it on, and each command has a time limit (30 seconds by default, 2 minutes at most).

What the browser sandbox cannot do

LimitWhat it means in practice
No programs or shellIt cannot start other programs, run ffmpeg, git, pip or npm, or install software.
Python is WebAssemblyrun_code Python runs in Pyodide (Python compiled to WebAssembly). Pure-Python code and Pyodide's bundled packages work; arbitrary packages with native code do not install. It is slower than native Python and has no threads or sockets. The working directory is /home/pyodide; this chat's files are mounted at relative uploads/ and generated/ paths. Do not use an absolute Windows/macOS project path. Use read_file, list_files, and write_file for portable access.
One tab's resourcesJavaScript and Python share the page's CPU and memory. Long loops can make the page sluggish, and a browser may slow a tab that is in the background.
Folder access only by permissionThe agent sees only the workspace folder you picked, and only in Chrome/Edge on desktop. Phones and other browsers use Memory Mode (files live in the session; download them).
Browser network rulesWeb requests from code are subject to the browser's cross-origin (CORS) rules, so some sites cannot be reached directly.
Limited hardware accessOnly what the browser exposes (WebGPU for local models, WebCodecs for video). No direct access to other apps, the desktop or system tools.
The tab must stay openLong jobs stop if you close the tab or the computer sleeps.

Not a security sandbox for the agent's code: run_code and render_video run with the page's permissions, which is why they ask for your confirmation. See the project's docs/SECURITY.md.

When to use BroClaw Desktop

Get started in the desktop app

  1. Install — download BroClaw Desktop for Windows or macOS from the Download section.
  2. Choose a workspace folder — select the project folder in the app if you want BroClaw to read and edit files there. Folder access is optional.
  3. Choose capabilities — computer access is built in; shell commands and other consequential actions are off until enabled in Settings.
  4. Ask again — for example “Debug the project in this folder and run its tests.” The agent can use native tools and report the real results.