odda
odda is a toolkit for agent-driven web security research, composable from a single MCP server. It gives an AI agent a real Chrome it can drive and observe, a transparent mitmproxy that writes every flow to disk, and a raw-HTTP send path for smuggling and race conditions.
- Drive Chrome — open, navigate, run JS, screenshot (optionally annotated with numbered markers + a ref/box legend), and interact with the page by accessibility-tree refs.
- Capture every flow — a transparent proxy writes every request/response to disk, including media bodies browser capture drops.
- Scan as you capture — every flow is passively scanned as it lands; findings append to a greppable index. Zero egress, forward-only.
- Observe JS in progress — wrap functions/properties, plant source logpoints, record block coverage.
- Craft raw HTTP — byte-faithful sends for smuggling, parser-differentials, and races.
Requirements
- Python 3.14+
- Chrome or Chromium installed and on
PATH - TigerVNC's
Xvnc(Debian/Ubuntu:apt install tigervnc-standalone-server) — every browser runs headed on its own virtual display;websockifyand the noVNC client ride with the pip install
Installation
uv tool install odda
This installs the odda command (an MCP server plus one helper subcommand, with --version for the version probe). Then register the server with your harness — one MCP config entry, and every odda capability becomes typed tools your agent can call.
Harness configuration
All configs spawn the same stdio server: odda mcp. One MCP process = one odda session with its own Chrome, proxy, and .odda/ data dir (created lazily under the process's working directory on first use).
Claude Code — project .mcp.json (or ~/.claude.json under mcpServers):
{
"mcpServers": {
"odda": {
"command": "odda",
"args": ["mcp"]
}
}
}
OpenCode — ~/.config/opencode/opencode.json:
{
"mcp": {
"odda": {
"type": "local",
"command": ["odda", "mcp"]
}
}
}
pi — install the MCP adapter once (pi install npm:pi-mcp-adapter), then add to project .mcp.json (same mcpServers shape as Claude Code):
{
"mcpServers": {
"odda": {
"command": "odda",
"args": ["mcp"]
}
}
}
Chrome profile (one-time)
To give odda's isolated browser sessions a base profile (cookies, extensions, preferences):
odda init-chrome-profile
This opens a visible Chrome window pointed at odda's base profile directory. Log in, install extensions, and set preferences as you want them; close the window when done. odda copies this profile into each isolated browser session opened by browser_open. Skip this step to start from a clean profile each time.
Session configuration
Sessions take settings from three places — later wins:
- Global —
~/.config/odda/config.toml(ODDA_CONFIG_HOMEredirects the whole config home) - Project —
.odda/config.tomlunder the MCP process's working directory - Flags —
odda mcp --max-browsers 5 --stale-browser-timeout 1800 --vnc-bind 0.0.0.0
TOML, read once when the session boots (no hot reload). An unknown key or invalid value fails the boot with the file and key named.
| Key | Flag | Default | Meaning |
|---|---|---|---|
max_browsers |
--max-browsers |
3 |
Most browsers open at once in the session (0 = unlimited); over the limit, browser_open errors until one is closed |
stale_browser_timeout |
--stale-browser-timeout |
0 (off) |
Seconds without a tool call targeting a browser before odda auto-closes it — closed records stay reopenable, and read-only calls (browser_list, unfiltered tabs_list) don't count as targeting |
vnc_bind |
--vnc-bind |
127.0.0.1 |
IP address the per-browser noVNC endpoints bind (raw VNC ports stay loopback-only) |
Example config.toml:
max_browsers = 5
stale_browser_timeout = 1800
vnc_bind = "127.0.0.1"
Usage
Agents drive odda through the MCP tools (browser_open, navigate, page_snapshot, request_send, ...). IDs are integers, monotonic within a session, and never reused; every browser/tab tool takes explicit browser_id / tab_id parameters.
A typical session:
browser_open → {browser_id, tab_id}
navigate → tab loads https://target.example/
read .odda/flows/flows.jsonl → every request/response captured on disk
read .odda/scanner/findings.jsonl → what the scanner flagged in that traffic
request_clone + request_send → the Burp Repeater loop, as tools
All captured traffic is stored under .odda/flows/<id>/ — request bytes, response body, headers, timing — plus the append-only flows.jsonl index. Grep the index to find flows; read .odda/flows/<id>/response_body.* for the body (including image/video/audio/font Content-Types that browser capture drops).
While the session lives, each captured flow is also passively scanned as it lands; findings append to the .odda/scanner/findings.jsonl index (see Scan as you capture below).
Features
Drive Chrome
A real Chrome (via patchright/Playwright), always headed, each on its own odda-owned virtual display — so a browser never pops on your desktop, and you can watch or drive any of them yourself:
-
Open / navigate / eval / wait-for / screenshot — drive the browser and run JS in the page.
-
Ref-driven page interaction —
page_snapshotreturns the accessibility tree with[ref=eN]tags; pass the ref topage_click/page_fill/page_hover/page_upload.page_snapshotcaps render depth — when the tree actually reaches the cap, cut points carry their hidden subtree depth ([deeper=k]) and the result ends with a note stating the real depth;page_findregex-searches the snapshot and returns matches with context instead of the whole tree (the cheap way to locate a ref on a large page);diff: truereturns only the-/+lines that changed since the tab's previous same-depth snapshot (fresh refs on+lines are directly actionable; scrolling never reads as change; navigation clears the baseline);boxes: trueadds element geometry for coordinate clicks.page_clickandpage_hoveralso accept viewport coordinates as a raw trusted event for targets the a11y tree can't name.screenshot(annotate=true)draws a numbered marker on every ref's box and returns a CSV legend mapping each number to its ref and viewport box — pixels, refs, and coordinates in one artifact for coordinate targeting (canvas, overlays, anything the a11y tree can't name). Cross-iframe is transparent. -
Per-browser userscripts — JS that auto-runs at
document_starton every navigation, before the page's own scripts. -
Dialog blocking —
alert/confirm/prompt/beforeunloadstay open until handled: the action that opens one returns its details, other tools on that tab wait, and every same-browser result lists open dialogs. Resolve withdialog_handle(accept/dismiss, prompt text); a human closing it in a headed window works too. -
Virtual displays (VNC + noVNC) —
browser_open/browser_listreportvnc_url(native client, loopback) andnovnc_url(open in any browser — the client is built in). One display per browser: the endpoint you connect to is the browser, which is how you find the one the agent means when it asks for help with a captcha or login. Endpoints bind localhost by default;odda mcp --vnc-bind(orvnc_bindin a config.toml) exposes the noVNC endpoint on another interface (trusted-network posture: no auth — everything that can reach it can drive the browsers; remote boxes: SSH-tunnel). Raw VNC ports stay loopback-only.
Capture every flow
A transparent mitmproxy sits between Chrome and the network; driving the browser is traffic capture. Every request/response is saved under .odda/flows/<id>/; the index is .odda/flows/flows.jsonl. The proxy can also chain through an upstream forward proxy (proxy_upstream_set) to change the session's network vantage.
Scan as you capture
Every flow is passively scanned the moment it lands — driving traffic is scanning, and no scan step or trigger exists. Findings append to .odda/scanner/findings.jsonl, the same greppable-index habit as flows.jsonl: each line is one finding with rule_id, flow_id, severity, title, evidence (where in the flow each match sits, with the matched text), and refs (CWE/CVE/OSV identifiers). There is one line per rule–flow pair — repeated matches aggregate into that line's evidence — and the index is append-only: findings are never retracted, and removing a rule (rule_remove) stops its future findings only.
The scanner is passive by construction: zero egress (nothing is ever sent — analysis reads captured material only), session-live (only flows the current session captures are scanned), and forward-only (flows predating the session are never analyzed — no catch-up or backfill exists). No rules ship with odda: the scanner boots with an empty ruleset, and a fresh install scans nothing until rules arrive. Every rule is a Python rule slot in one of two scopes, both reloaded on boot: this project's rules dir (.odda/rules/, where rule_install places slots and rule_remove / rule_disable / rule_enable retire, suppress, and restore them — per-project like the rest of .odda/), and the global rules dir under the odda config home (~/.config/odda/rules/ unless ODDA_CONFIG_HOME redirects it — hand-managed, shared across every project on the machine, never written by a tool). rule_list shows every rule with its scope. The repo's own rules/ tree carries the converted high-signal corpus as installable slot sources — stack traces, leaked private/AWS/frontend keys, subdomain-takeover confirmations, compromised-CDN script imports, outdated-library detection via the offline retire.js dataset (which rides inside its slot), exposed metrics, and request-side token leaks (browser-driven flows only).
Observe JS in progress
Three lenses, chosen by what you know:
- Wrap — wrap a named function or property; record each call/access with
this,args,ret, andstack. Takes effect on the next navigation. - Logpoint — plant a non-pausing observation at a source
url+line+col; the expression is evaluated in the paused frame's scope, so it reads locals by name. - Coverage — record which code blocks execute across one or more navigations; start, trigger behavior, snapshot or stop.
Wrap and Logpoint records wipe on navigation — dump before navigating again.
Craft raw HTTP
Byte-faithful raw HTTP sends, bypassing the browser — the Burp Repeater model, as tools:
- Wire-verbatim HTTP/1.1 — the request file is the wire; nothing is re-framed.
- HTTP/2 frame-source — the request file is parsed into H2 frames; a custom line terminator lets a literal CRLF live inside an H2 pseudo-header for downgrade smuggling.
- Clone or craft —
request_clonecopies a captured flow's exact bytes;request_newstarts an empty file. - Multi-name pipeline — pass several names to send several requests on one connection (H1 keep-alive, or H2 concurrent stream-multiplex) for same-connection attacks.
- Concurrent send —
repeatfires N copies of one request concurrently for race conditions and limit-overrun attacks. fix_content_length— recompute Content-Length after body edits.
How it works
odda mcpis the only odda process: a stdio MCP server whose lifespan owns the proxy, the browser manager, and the flow storage. Your harness spawns it per agent session; closing the session tears everything down.- The remaining CLI surface is helpers, not the automation surface:
odda init-chrome-profile(interactive, human-run) andodda --version/-V. - Project state lives in
.odda/under the MCP process's working directory:flows/,requests/,browsers/. It's created lazily on the first state-producing call, not when the server boots. - Errors from tools are odda's messages verbatim (as tool errors); unanticipated crashes log their traceback to the server's stderr, which the harness captures.
Metadata
Release files for odda 0.61.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| odda-0.61.0.tar.gz | 422.0 kB | With provenance | Details for odda-0.61.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odda-0.61.0-py3-none-any.whl | Python 3 | none | any | Details for odda-0.61.0-py3-none-any.whl |
Total release size: 909.9 kB
Release files / odda-0.61.0.tar.gz
| Download URL | odda-0.61.0.tar.gz |
|---|---|
| Size | 422.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df1e7df4fbd7f45ee78663abd67c419a992c4c5d7fd68bf9b8e78da34ac2d714
|
|
BLAKE2b-256 checksum How to use checksums |
3f4183ab9ae153ecde7701f6c9f4b99a46b2d86b7d29515b49df9041c3570900
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / odda-0.61.0-py3-none-any.whl
| Download URL | odda-0.61.0-py3-none-any.whl |
|---|---|
| Size | 487.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e9b71e7b94714fe2de6ec56b1710aa89b5e42c36a8ca1ba2ed258b4497c5983
|
|
BLAKE2b-256 checksum How to use checksums |
978f49a5f0f5c5cea8e4873e958bbf086d716d65abbcc13d79c264fe7526cac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for odda 0.61.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for odda-0.61.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.