Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 452" width="360" height="452" role="img" aria-labelledby="t d" fill="none"><title id="t">Your confirm callback decides each browser action before the driver executes it</title><desc id="d">Claude requests a browser action. Your confirm(context) callback runs before the driver executes it, once per action. If it returns True, the driver executes the action. If it returns False or raises, no action runs. Either way a tool_result returns to Claude.</desc><style>.s{font-family:Geist, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif}.m{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace}text{font-kerning:normal}@keyframes flow{to{stroke-dashoffset:-24}}@media (prefers-reduced-motion:no-preference){.flow{animation:flow 1.6s linear infinite}}@keyframes cur{0%,100%{transform:translate(0,0)}40%{transform:translate(-7px,-5px)}70%{transform:translate(-3px,2px)}}@media (prefers-reduced-motion:no-preference){.cur{animation:cur 6s ease-in-out infinite}}</style><defs><pattern id="dots" width="16" height="16" patternUnits="userSpaceOnUse"><circle cx="8" cy="8" r="0.7" fill="#232328"/></pattern><filter id="grain" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.07 0"/></filter><clipPath id="card"><rect x="0.5" y="0.5" width="359" height="451" rx="14"/></clipPath><marker id="ah" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M1 1.5 L9 5 L1 8.5" stroke="#A1A1AA" stroke-width="1.3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></marker><marker id="aho" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M1 1.5 L9 5 L1 8.5" stroke="#FE750E" stroke-width="1.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></marker><pattern id="bar" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="3" height="6" fill="#6B6B74"/></pattern><filter id="glow" filterUnits="userSpaceOnUse" x="0" y="0" width="360" height="452"><feGaussianBlur stdDeviation="3.5"/></filter></defs><rect x="0.5" y="0.5" width="359" height="451" rx="14" fill="#111113"/><g clip-path="url(#card)"><rect width="360" height="452" fill="url(#dots)"/><rect width="360" height="452" filter="url(#grain)"/></g><rect x="0.5" y="0.5" width="359" height="451" rx="14" fill="none" stroke="#26262B"/><path d="M15 20h10M20 15v10" stroke="#3D3D45" stroke-width="0.75"/><path d="M335 20h10M340 15v10" stroke="#3D3D45" stroke-width="0.75"/><path d="M15 432h10M20 427v10" stroke="#3D3D45" stroke-width="0.75"/><path d="M335 432h10M340 427v10" stroke="#3D3D45" stroke-width="0.75"/><text x="34.0" y="24.5" font-size="10" fill="#A1A1AA" letter-spacing="0.08em" class="m">FIG 6.3</text><text x="326.0" y="24.5" font-size="10" fill="#A1A1AA" text-anchor="end" letter-spacing="0.08em" class="m">APPROVALS</text><polygon points="172.0,66.0 206.6,86.0 172.0,106.0 137.4,86.0" stroke="#6B6B74" stroke-width="0.8" stroke-dasharray="2 2"/><polygon points="137.4,77.0 172.0,97.0 172.0,100.0 137.4,80.0" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="206.6,77.0 172.0,97.0 172.0,100.0 206.6,80.0" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="172.0,57.0 206.6,77.0 172.0,97.0 137.4,77.0" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="137.4,64.0 172.0,84.0 172.0,87.0 137.4,67.0" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="206.6,64.0 172.0,84.0 172.0,87.0 206.6,67.0" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="172.0,44.0 206.6,64.0 172.0,84.0 137.4,64.0" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><g transform="matrix(0.8660,0.5,-0.8660,0.5,172.0,44.0)"><path d="M7 10h24M7 17h17M7 24h21M7 31h11" stroke="#3D3D45" stroke-width="0.9" stroke-linecap="round" vector-effect="non-scaling-stroke"/></g><text x="222.0" y="88.0" font-size="12.5" fill="#EDEDEF" font-weight="600" class="s">Claude</text><line x1="172" y1="112" x2="172" y2="176" stroke="#A1A1AA" stroke-width="1" marker-end="url(#ah)"/><polygon points="162.4,122.5 168.5,126.0 168.5,131.0 162.4,127.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="174.6,122.5 168.5,126.0 168.5,131.0 174.6,127.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="168.5,119.0 174.6,122.5 168.5,126.0 162.4,122.5" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="162.4,140.5 168.5,144.0 168.5,149.0 162.4,145.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="174.6,140.5 168.5,144.0 168.5,149.0 174.6,145.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="168.5,137.0 174.6,140.5 168.5,144.0 162.4,140.5" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="162.4,158.5 168.5,162.0 168.5,167.0 162.4,163.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="174.6,158.5 168.5,162.0 168.5,167.0 174.6,163.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="168.5,155.0 174.6,158.5 168.5,162.0 162.4,158.5" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="168.5,155.0 174.6,158.5 168.5,162.0 162.4,158.5" fill="#A1A1AA"/><text x="190.0" y="152.0" font-size="11" fill="#A1A1AA" class="m">each browser action</text><polygon points="143.4,213.5 186.7,238.5 186.7,242.5 143.4,217.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="200.6,230.5 186.7,238.5 186.7,242.5 200.6,234.5" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="157.3,205.5 200.6,230.5 186.7,238.5 143.4,213.5" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="149.9,182.8 156.0,186.2 156.0,216.2 149.9,212.8" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="162.0,182.8 156.0,186.2 156.0,216.2 162.0,212.8" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="156.0,179.2 162.0,182.8 156.0,186.2 149.9,182.8" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><g transform="matrix(0.8660,0.5,0,1,150.3,213.5)"><rect x="10" y="-28" width="30" height="7" fill="url(#bar)" stroke="#A1A1AA" stroke-width="0.9" vector-effect="non-scaling-stroke"/></g><polygon points="182.0,201.2 188.0,204.8 188.0,234.8 182.0,231.2" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="194.1,201.2 188.0,204.8 188.0,234.8 194.1,231.2" fill="#1A1A1E" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><polygon points="188.0,197.8 194.1,201.2 188.0,204.8 182.0,201.2" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" stroke-linejoin="round"/><text x="214.0" y="220.0" font-size="11.5" fill="#EDEDEF" font-weight="500" class="m">confirm(context)</text><line x1="172" y1="238" x2="172" y2="268" stroke="#A1A1AA" stroke-width="1"/><path d="M172 268H100q-8 0 -8 8V308" stroke="#FE750E" stroke-width="4" stroke-opacity="0.5" filter="url(#glow)"/><path d="M172 268H100q-8 0 -8 8V308" stroke="#FE750E" stroke-width="2" stroke-linecap="round" marker-end="url(#aho)"/><path class="flow" d="M172 268H100q-8 0 -8 8V308" stroke="#111113" stroke-width="1" stroke-dasharray="4 8" stroke-opacity=".7"/><path d="M172 268H260q8 0 8 8V308" stroke="#A1A1AA" stroke-width="1" stroke-dasharray="4 3" marker-end="url(#ah)"/><circle cx="172" cy="268" r="3.5" fill="#111113" stroke="#A1A1AA" stroke-width="1.2"/><text x="102.0" y="298.0" font-size="11" fill="#FF8A3D" font-weight="600" class="m">True</text><text x="258.0" y="298.0" font-size="11" fill="#A1A1AA" text-anchor="end" class="m">False or raises</text><g transform="matrix(0.8660,0.5,0,1,75.6,341.5)"><rect x="0" y="-40" width="54" height="40" rx="3" stroke="#6B6B74" stroke-width="0.8" stroke-dasharray="2 2" vector-effect="non-scaling-stroke"/></g><g transform="matrix(0.8660,0.5,0,1,68.6,348.5)"><rect x="0" y="-40" width="54" height="40" rx="3" fill="#151518" stroke="#A1A1AA" stroke-width="0.9" vector-effect="non-scaling-stroke"/><path d="M0 -32H54" stroke="#3D3D45" stroke-width="0.8" vector-effect="non-scaling-stroke"/><circle cx="4" cy="-36" r="1.3" fill="#FE750E"/><circle cx="8" cy="-36" r="1.3" fill="#6B6B74"/><circle cx="12" cy="-36" r="1.3" fill="#6B6B74"/><rect x="17" y="-37.7" width="32" height="3.4" rx="1.7" stroke="#3D3D45" stroke-width="0.8" vector-effect="non-scaling-stroke"/><rect x="5" y="-27" width="20" height="10" rx="1.5" fill="#1A1A1E" stroke="#3D3D45" stroke-width="0.8" vector-effect="non-scaling-stroke"/><path d="M30 -26h18M30 -21h12M5 -10h44M5 -5h28" stroke="#3D3D45" stroke-width="0.8" vector-effect="non-scaling-stroke"/><rect x="31" y="-15" width="18" height="6" rx="1.5" fill="#3A2214" stroke="#FE750E" stroke-width="0.9" vector-effect="non-scaling-stroke"/><g class="cur"><path d="M40 -13l0 9l2.4 -2.2l1.8 3.6l1.5 -.7l-1.8 -3.5l3.3 -.3z" fill="#FE750E"/></g></g><text x="92.0" y="386.0" font-size="12.5" fill="#FF8A3D" font-weight="600" text-anchor="middle" class="s">Driver executes</text><g transform="matrix(0.8660,0.5,0,1,244.6,348.5)"><rect x="0" y="-40" width="54" height="40" rx="3" stroke="#6B6B74" stroke-width="0.9" stroke-dasharray="3 3" vector-effect="non-scaling-stroke"/><path d="M0 -32H54" stroke="#6B6B74" stroke-width="0.8" stroke-dasharray="3 3" vector-effect="non-scaling-stroke"/><path d="M21.0 -22.0l12 12M33.0 -22.0l-12 12" stroke="#6B6B74" stroke-width="1.2" stroke-linecap="round" vector-effect="non-scaling-stroke"/></g><text x="268.0" y="386.0" font-size="12.5" fill="#A1A1AA" font-weight="500" text-anchor="middle" class="s">No action</text><path d="M268 394V408q0 6 -6 6H42q-6 0 -6 -6V90q0 -6 6 -6H126" stroke="#6B6B74" stroke-width="1" marker-end="url(#ah)"/><path d="M92 394V414" stroke="#6B6B74" stroke-width="1"/><circle cx="92" cy="414" r="2.5" fill="#6B6B74"/><text x="180.0" y="406.0" font-size="11" fill="#A1A1AA" text-anchor="middle" class="m">tool_result</text></svg>