Skip to content

About

AI agent for web automation and scraping, designed to plan, execute, and verify actions across any website

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

Agentic Browser

a browser extension that does stuff on the page instead of just talking about it. it plans, clicks, types and checks its own work in your real browser, on whatever model you feel like paying for.

my b.tech major project at JIIT. it outgrew the grading rubric a while ago.

demo: 3-minute film on taf.sh. page questions, youtube answers, a multi-step browser task, claude code driving the browser over mcp, voice, memory and the console. all real runs.

The side panel after a multi-step question: the work log shows a memory lookup, two web searches and a page read, then the answer   The console's overview: runs, success rate, tool calls, memory, and activity charts

the side panel with its work log open, and the console. all screenshots use made-up data, and pnpm screenshots regenerates them.

what even is this

  • a side panel that reads the live dom, writes a plan, acts on the page, then looks again to see if it actually worked
  • model-agnostic. gemini, openai, anthropic, deepseek, openrouter, opencode, ollama on your own gpu, or any server that speaks one of their apis. bring your own keys, they stay on your machine
  • or skip the keys and run it on the plans you already pay for: claude, chatgpt, google ai, opencode
  • long-term memory in three databases, because one wasn't enough apparently
  • an mcp server, so claude code, codex, cursor and friends can drive your actual chrome with your actual logins
  • a telegram bot that runs tasks in your browser at home while you're out
  • voice in (local whisper, cloud models, or one pass through a model that hears audio) and voice out
  • a debug console for when the agent does something weird and you want to know why (it will)
Architecture: the side panel talks to the FastAPI backend over HTTP and SSE. The backend runs the agents, tools, model layer and memory, backed by model providers and Postgres, Neo4j and OpenSearch. Coding agents reach the browser through agentic-mcp, whose bridge the extension connects to over a WebSocket.

does it act without asking?

kinda. browser automation stops at login forms, captchas and permission prompts and hands control back to you. the agent and mcp clients are told to ask before purchases, sending messages, deleting data or typing in credentials. runs that start going in circles get warned, then stopped, and answer with what they found. from telegram, only user ids on your allow list can act at all. there's no per-action approval button yet. it's on the roadmap, i promise.

stack

  • react, vite and wxt for the extension and the console
  • langgraph and langchain for the built-in agents
  • claude agent sdk, codex exec and the agent client protocol for running on subscriptions
  • python, fastapi and mcp for the backend
  • chrome.debugger plus content scripts for actually touching the page
  • postgres, opensearch and neo4j for memory
  • pnpm on the frontend, uv on the python side
  • caffeine, questionable sleep schedule

install

one command does the lot: databases, backend, extension, browsers, mcp.

curl -fsSL https://tashif.codes/agentic-browser:install | sh
# answer nothing, take the defaults:
curl -fsSL https://tashif.codes/agentic-browser:install | sh -s -- --yes
# or, from a checkout:
./install.sh

The installer walking through its seven steps

it goes through seven steps and asks before anything that touches your machine:

  1. tools. checks docker, uv, node and pnpm, and offers to brew install what's missing
  2. settings. writes .env, asks for a model key (or skip it and use a subscription), generates the encryption key for saved secrets, and keeps the backend on 127.0.0.1
  3. databases. docker compose up for postgres, neo4j and opensearch, then waits for them to be healthy
  4. build. uv sync, pnpm install, builds the extension
  5. backend. starts it at login (a launchd agent on macos, a systemd user service on linux) or just for now
  6. browsers. finds chrome, brave, edge, arc, dia, vivaldi, helium, firefox, zen and friends, asks which ones get the extension, opens each one with the folder path on your clipboard, and waits until the extension actually connects. no browser? it offers to install one
  7. mcp. registers the browser and memory tools with claude code, codex, cursor, gemini cli and opencode, after showing you the diff

--yes takes the defaults, --dry-run shows what it would do, --firefox builds the firefox version too, --browser PATH adds a browser it doesn't know, and --skip-docker / --skip-browsers / --skip-mcp leave those parts alone.

works on macos and linux (tested on both; on linux it skips the login service when there's no systemd user session, like in containers or wsl, and installs pnpm per-user if it's missing). windows isn't supported.

one honest limit: browsers don't let a script install an unpacked extension silently. chrome dropped --load-extension and firefox only installs signed add-ons for good, so step 6 is three clicks per browser (developer mode, load unpacked, paste). the installer does the rest and tells you when it worked.

run it by hand

you need docker, uv, pnpm, and one model key (or a subscription, see below).

docker compose up -d     # postgres, neo4j and opensearch for memory
cp .env.example .env     # add GOOGLE_API_KEY or another provider's key
uv sync
uv run agentic-api-run   # the backend, on port 5454

pnpm install
pnpm build:extension     # then load clients/browser-extension/.output/chrome-mv3 unpacked
pnpm dev:debug           # the console: dashboard, chat, runs, memory, settings

pnpm dev:extension rebuilds the extension as you edit, :firefox variants exist for both extension scripts. keys can also go in the console's settings instead of .env, where they're stored encrypted once you set OAUTH_ENCRYPTION_KEY. the backend listens on all interfaces by default, so set BACKEND_HOST=127.0.0.1 if you're on a network you don't trust.

models

the chip under the message box picks the model for your next messages, per request, without touching the saved default. it lists every provider you've added a key for. built-in providers get their list from models.dev, so new models show up without a release.

got a gateway, a proxy or vllm on a box under your desk? set openai_base_url (ends in /v1), anthropic_base_url or google_base_url in Settings → Model, or the matching *_BASE_URL env var. the picker then asks that server's own models route (/v1/models and friends) and shows what it actually serves. ollama lists whatever you've pulled.

The model menu searching for sonnet, with entries from the Claude, Antigravity and OpenCode subscriptions

use your subscriptions

got a claude, chatgpt, google ai or opencode plan? the agent can run on it. each one is the vendor's own agent, logged in as you, driven the way their tools expect:

plan how log in once with
claude pro / max claude agent sdk claude
chatgpt codex exec --json codex login
google ai (antigravity) google's antigravity acp runtime. the console downloads the latest release (checked against google's sha-512) and updates it, or reuses the copy t3 code already has Log in with Google in the console, or reuse t3 code's login
opencode opencode acp, so every model your opencode can reach, copilot included opencode auth login
anything else any command that speaks the agent client protocol whatever it wants

turn them on in Settings → Subscriptions, hit test, then pick one in the model menu. the subscription runs the chat turn as its own agent with this app's browser and memory tools over mcp. it gets no shell and can't edit files: claude only gets web tools, codex runs read-only in an empty folder, and acp permission requests are only granted for our tools and web reads. memory extraction, chat titles and browser planning stay on the default model.

Settings › Subscriptions, the Claude card: on, Claude Agent SDK, models and a Test button

The Antigravity card: runtime source, installed and latest versions, and Google login

opencode api keys work too, as plain providers: opencode zen (pay as you go) and opencode go (the subscription), both with OPENCODE_API_KEY.

long chats

the whole chat goes to the model while it fits. once it doesn't (half the model's window by default), the last 8 messages stay word for word and everything older becomes running notes, saved with the chat and extended rather than redone on later turns. long tool loops trim old tool output too. the work log says when it happened, and Settings → Model → Long chats sets the budget.

Settings › Model › Long chats: the summarise toggle, budget and how many recent messages stay verbatim

attachments

A screenshot of a declined payment attached in the side panel, and the agent explaining the error code

the paperclip in the composer. images go to whatever model you picked, with tools and memory still on, and show up in the chat. text, code and pdfs are read in as text. models that can't see images say so instead of guessing. /website-ask, /youtube-ask and /github-crawl take attachments the same way. a screenshot of an error plus /github-crawl on the repo is a nice combo.

from your phone

the telegram bot starts with the backend once TELEGRAM_BOT_TOKEN is set. ask it anything, or tell it to do something and it runs the task in your browser at home, where you're logged in, or through apps you connected in composio (slack, notion, linear, github and co). /screenshot sends you the tab, /stop stops a task, /whoami gives you the id to put in Settings → Telegram bot → Allowed users. with no allow list it answers questions but won't touch your browser or apps. your computer has to be on, obviously.

voice

the mic button in the composer. two ways to turn speech into a message, picked in Settings → Voice:

  • transcribe. a speech-to-text model writes down what you said: local whisper (default), openai, groq, xai, openrouter's 30-odd transcription models, or any openai-compatible server. an optional cleanup pass on the chat model strips the ums and applies "thursday, sorry, friday"
  • one pass. the recording goes straight to a model that hears audio (gemini, openai's gpt-audio, openrouter's audio models) and comes back as finished text in one request. same idea as flow's one-pass configs

either way it falls back to local whisper if the cloud call fails, and tells you.

Settings › Voice in one-pass mode: Gemini hears the recording and writes the text replies can be read aloud through the browser, openai, elevenlabs or cartesia.

the console

pnpm dev:debug opens it. an overview of runs and tool calls, every run with its full trace, memory as a list or a graph, diagnostics, and every setting in this readme.

The console's memory page: memories with their tier, segment, confidence and age

where stuff lives

clients/
  browser-extension/   the wxt extension, side panel and all
  debug-web/           the vite debug console
  telegram-bot/        starts with the backend if TELEGRAM_BOT_TOKEN is set
  shared/              code both clients use
agents/                react agent, while-loop harness, their tools
core/                  config, llm setup and model catalog, subscription runtimes,
                       the antigravity installer, the loop guard, db, crypto
mcp_server/            agentic-mcp, the bridge and its tools
memory/                the memory system
prompts/               prompts for the browser planner and the slash commands
tools/                 repo agent, remote browser tasks and composio, web search...
services/              the stuff routes call: chat, compaction, attachments, voice
routers/               fastapi routes
models/                request and response shapes
skills/                docx, pptx and xlsx generation
docs/                  the architecture diagram and its generator
main.py                backend entrypoint

use your browser from claude code, codex and the rest

any coding agent that speaks mcp can drive the extension. it works in your real chrome, with your logins, through a small local bridge.

Claude Code / Codex / Cursor / OpenCode
        │  MCP (stdio, or HTTP at 127.0.0.1:5455/mcp)
        ▼
agentic-mcp  ──  bridge on 127.0.0.1:5455
        ▲  WebSocket /bridge/ws (the extension dials out)
        │
Agentic Browser extension  ──  chrome.debugger + content scripts  ──  your tabs

setup is three steps:

  1. build the extension (pnpm build:extension) and load clients/browser-extension/.output/chrome-mv3 unpacked in chrome.
  2. install the mcp server. you don't need the whole backend for this:
    uv tool install ./mcp_server     # just the mcp server and its few deps
    # or, inside a full checkout: uv sync
  3. register it with your agents:
    agentic-mcp install              # finds claude code, codex, cursor, gemini cli, opencode
    agentic-mcp install --dry-run    # see what it'll change first
    agentic-mcp config               # print snippets to paste by hand

each client starts agentic-mcp over stdio. the first one grabs 127.0.0.1:5455 and becomes the bridge, later ones relay through it with the token in ~/.agentic-browser/bridge-token. the backend starts the bridge on boot too, so the extension and backend get along. for clients that only take urls, run agentic-mcp serve to keep an http endpoint up.

the extension's settings have an "MCP Bridge" section with the connection status and a url override. agentic-mcp status shows the same thing in the terminal.

browser tools

four of them, on purpose:

tool what it does
browser_tabs list, open, close or focus tabs. tabs the agent opens go in an "Agent" tab group
browser_snapshot accessibility outline of a tab with [ref=e12] handles, iframes included (f3e1). can add a screenshot
browser_act one action on a ref, css selector or text=Label. click, type, press, select, check, hover, scroll, navigate, back, forward, reload, wait_for, evaluate, or answering a dialog
browser_execute code mode. runs a js program against a browser / tab api, so ten steps cost one tool call and only what you return goes back to the model

browser_execute runs in a quickjs sandbox inside agentic-mcp. no network, no file system, no node apis. each burst of js between browser calls gets 5 seconds, so while(true) dies quickly. a state object carries data between calls.

const t = await browser.open("https://news.ycombinator.com");
return await t.evaluate(() =>
  [...document.querySelectorAll(".titleline > a")].slice(0, 5).map(a => a.textContent));

clicks, typing and key presses go through chrome.debugger, so pages see trusted input events. chrome shows a "started debugging this browser" bar while it's attached, which goes away after 90 seconds of nothing. if the debugger can't attach (devtools is open, or you're on firefox) it falls back to dom events.

memory tools

coding agents can use the same long-term memory as the side panel. these call the backend (http://127.0.0.1:5454, change it with AGENTIC_BROWSER_API_URL), so the backend has to be running. the browser tools don't care.

tool what it does
memory_recall searches what the agent knows about you. preferences, projects, people, past decisions. one-word queries like "editor" work too
memory_save saves one fact you said. repeats merge, and a changed fact replaces the old one
memory_profile a short summary of who you are
memory_documents searches imported documents like your resume, with the facts pulled out of them
memory_forget deletes memories by id and redacts the chat turns they came from

the server tells clients to only save what you said, never text off a web page. prompt injection into your memory is not a feature.

picking the tools

the console has a Settings → MCP server section. flip the browser tools and memory tools on or off, and pick all four browser tools, code mode only, or no code mode. Apply and restart MCP writes ~/.agentic-browser/mcp-settings.json, rebuilds the tool list and tells connected clients to re-list. every agentic-mcp process watches that file, so stdio agents switch in about 2 seconds. clients that ignore tool-list updates catch up on their next restart.

Settings › MCP server: browser and memory tool toggles, the browser tool set, live tools and bridge status

no settings file? then AGENTIC_BROWSER_TOOLS=execute keeps only browser_tabs and browser_execute, plain hides browser_execute, and AGENTIC_BROWSER_MEMORY=off hides the memory tools.

security

  • the bridge only listens on 127.0.0.1
  • websockets are only accepted from chrome-extension:// and moz-extension:// origins. set AGENTIC_BROWSER_EXTENSION_IDS to a comma-separated list to allow only your build
  • /mcp rejects cross-site Origin and foreign Host headers, which kills dns rebinding
  • the relay endpoint needs the token in ~/.agentic-browser/bridge-token (mode 0600)

slash commands

type / in the side panel. plain text with no command goes to the react agent, which picks tools itself.

command what it does
/react-ask the general agent. reads the page, calls tools, searches and saves memory
/browser-action acts on the current tab, one checked step at a time
/website-ask answers from a web page
/youtube-ask answers from a video's transcript, so you can skip the 14-minute intro
/github-crawl answers about a repo by cloning it and grepping, with path:line citations. private repos too
/google-search searches the web
/gmail-unread, /gmail-latest, /gmail-send reads and sends mail (needs google sign-in)
/calendar-events, /calendar-create reads and adds calendar events (needs google sign-in)
/pyjiit-login, /pyjiit-semesters, /pyjiit-attendence the JIIT portal. semesters and attendance, for the anxious
/upload-file attaches a file to the chat
/skill-run runs a skill (docx, pptx, xlsx, system info)

roadmap

shipped

  • mcp support. agentic-mcp drives the extension from claude code, codex and other mcp clients, code mode included
  • memory. postgres, opensearch and neo4j. it reconciles updates, blocks injected or one-off facts, recalls in every answer, decays, dedupes, repairs its stores and forgets on request
  • memory over mcp. recall, save, profile, document search and forget for coding agents, with console toggles per tool group
  • model picker. pick any model from any provider you have a key for, right in the composer. lists come from models.dev, or from your own endpoint if you set one
  • attachments. images go to whatever model you picked, with tools and memory still on. text, code and pdfs get read in as text. models that can't see images say so instead of guessing. /website-ask, /youtube-ask and /github-crawl take attachments the same way
  • repo q&a. /github-crawl clones the repo into a temp dir and greps, reads line ranges and runs read-only shell commands until it can answer with path:line citations. file, branch and commit urls work, clones are reused for 30 minutes, and the shell can't write, delete or leave the clone. private repos work too: it clones with your connected github account, or has the extension download the repo with the github login already in your browser
  • compaction. whole chats go to the model while they fit. past that, recent messages stay word for word and older ones become running notes kept with the chat. long tool loops trim old tool output too
  • subscriptions. run the agent on your claude, chatgpt, google ai or opencode plan instead of an api key
  • light mode. for the three people who asked
  • skills. docx, pptx and xlsx through /skill-run
  • while-loop harness. a supervisor that plans, hands work to subagents and checks the result
  • telegram bot. chat with the agent from telegram, replies continue the thread. tell it to do something and it runs the task in your browser at home, or through apps you connected in composio. /screenshot shows you the tab, /stop stops it. only user ids on the allow list can act
  • work log. streamed thinking, tool calls and browser actions, kept with each answer
  • page glow. a soft glow while the agent acts, from the panel or from an mcp client
  • voice. local or cloud transcription, one-pass through models that hear audio, read-aloud out

half done

  • graph rag over docs and mail. gmail and document facts land in the memory graph, but there's no document-level graph retrieval yet
  • offline mode. ollama works as the model, but embeddings fall back to a word-hashing embedder. needs a real local embedding model so memory search works offline
  • visual debugger. the glow shows that the agent is acting, not on which element. outline the target of each click and type

next

stuff i found while making the demo and auditing memory:

  • per-action approval. an opt-in mode that asks before clicks, submits and navigation, for sites where mistakes cost money
  • on-page actions. the planner sometimes jumps straight to a url when you told it to use the search box. it should listen
  • api auth. the backend has no login. cors keeps random websites out, but it listens on 0.0.0.0 by default, so anything on your network can call it. add a local token, and default to 127.0.0.1
  • single writer. memory writes share an in-process lock, so two backends can race. move the lock to a postgres advisory lock
  • temporal recall. "where did i live before X?" is the weakest kind of recall. index effective dates and rank by them for history questions
  • forget granularity. forgetting one fact redacts the whole chat turn it came from, other facts included. redact only the forgotten sentence
  • tests and ci. there are none. yes, really. start with the memory reconciler, the browser-runtime parser and the bridge handlers, and typecheck on prs
  • pyav shim. local whisper runs on faster-whisper 1.2.1, which still passes an argument pyav 15 removed, so services/voice_input.py strips it. nothing to do until faster-whisper ships a fix, then delete the shim

later

  • computer use. the desktop, not just the browser
  • model blending. have one model check another's homework
  • workflow designer. record, edit and share multi-step browser workflows
  • website and native app. use the agent outside the extension
  • touch grass

About

AI agent for web automation and scraping, designed to plan, execute, and verify actions across any website

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages