Agent Portal is a desktop-native operating environment for AI agents.
Instead of limiting an LLM to code generation, Agent Portal gives it a controlled visual workspace where it can understand, navigate, test, and interact with real user interfaces, local applications, browser sessions, development environments, and project ecosystems.
Give AI agents eyes, hands, memory, context, and permissions.
That means combining:
- visual understanding
- browser and desktop control
- long-lived workspace memory
- multi-agent orchestration
- test and reporting workflows
- secure execution boundaries
The project now has a real local runtime foundation rather than just a concept scaffold. The current repository includes:
- a Python-first local runtime in
python/agent_portal - Playwright-backed browser control for open, click, type, hover, scroll, wait, inspect, screenshot, execute, and text reading
- a local HTTP runtime server for health, status, control, browser, and report routes
- an agent steering and policy layer with pause, resume, stop, queue approval, blocked actions, and risk-aware behavior
- report generation with runtime state, actions, risk events, screenshots, and reproduction steps
- plugin manifest discovery and validation
- a VS Code extension control center that talks directly to the Python runtime
- a TypeScript SDK surface that is being shifted into a client of the Python runtime
- connector scaffolds for ChatGPT-style tools, Claude MCP, Gemini, and generic REST/WebSocket integration
- a desktop demo surface for local runtime verification
- documentation for installation, quickstart, runtime, CLI, safety, testing, plugins, and architecture
The strongest current architectural direction is:
Agent Portal
│
├── agent-portal Python package
│ ├── local runtime owner
│ ├── Playwright browser/session owner
│ ├── control and safety policy engine
│ ├── HTTP API server
│ └── reporting and plugin validation
│
├── VS Code extension
│ └── developer-facing control panel
│
├── TypeScript SDK
│ └── client wrapper for the Python runtime
│
└── Agent connectors
├── ChatGPT tools
├── Claude MCP server
├── Gemini connector
└── REST/WebSocket API
The key principle is that runtime and browser session ownership should live in the Python runtime server, while editor tooling, SDKs, and connectors should act as clients of that runtime.
agent-portal.config.json Runtime configuration
assets/
branding/ Shared logo and visual brand assets
apps/
desktop/ Desktop runtime demo and proving ground
vscode-extension/ Developer control panel
connectors/
chatgpt-tools/ ChatGPT-facing connector direction
claude-mcp-server/ Claude MCP integration direction
gemini-connector/ Gemini integration direction
rest-websocket-api/ Generic transport direction
docs/
architecture.md System design and boundaries
roadmap.md Suggested phased delivery plan
packages/
core/ Shared TypeScript contracts and intelligence helpers
sdk/ Runtime client SDK
mcp-server/ Tool-facing MCP bridge surface
plugins/
*/plugin.json Plugin manifests and examples
python/
agent_portal/ Local runtime, browser control, CLI, doctor, server
tests/ Python runtime test suite
tests/
*.test.mjs Workspace-level Node tests
The local Python runtime currently covers these areas:
- startup validation and single-instance locking
- runtime health checks and doctor diagnostics
- browser launch and cleanup
- browser action execution with structured errors
- policy-aware action approval and blocking
- screenshot evidence capture
- report generation
- plugin manifest validation
- localhost-first serving with optional bearer token auth
GET /healthGET /statusGET /report/latestPOST /control/startPOST /control/stopPOST /control/pausePOST /control/resumePOST /control/restartPOST /control/goalPOST /control/approve-nextPOST /control/reject-nextPOST /browser/startPOST /browser/openPOST /browser/clickPOST /browser/typePOST /browser/scrollPOST /browser/hoverPOST /browser/waitPOST /browser/screenshotPOST /browser/capturePOST /browser/inspectPOST /browser/read-textPOST /browser/executePOST /report/generate
The current steering model is focused on keeping the runtime usable and safe while still allowing automation:
- pause agent execution
- resume execution
- stop execution
- inspect pending actions
- approve next pending action
- reject next pending action
- assign or redirect current goal
- risk-score actions
- block password typing
- block billing and payment-style actions
- escalate destructive actions
The longer-term target is a fuller steering layer with richer action editing, manual override states, and live queue streaming.
- Install Node dependencies:
npm install- Install Playwright browser binaries:
npx playwright install chromium- Install the Python runtime package:
pip install -e ./python- Run a health check:
agent-portal doctor- Start the Python runtime:
agent-portal start- In another terminal, run the desktop demo:
npm run dev --workspace @magnexis/desktop- Open the VS Code extension sidebar and connect to the runtime.
Typical local workflow:
- Start your local app on something like
localhost:3000orlocalhost:5173. - Start Agent Portal with
agent-portal start. - Connect the VS Code extension to
http://127.0.0.1:8765. - Use the runtime or SDK to open the app, inspect the page, and drive actions.
- Capture screenshots and reports for QA or debugging.
- Review blocked or pending actions through the control surface.
The VS Code extension lives in apps/vscode-extension and is designed to be the developer-facing control panel.
Official extension link:
It currently provides:
- a branded sidebar view
- runtime start, stop, and restart commands
- runtime polling and status display
- pending action queue display
- approve/reject controls
- current goal display
- local dev server detection
- quick access to reports and docs
Important settings:
agentPortal.runtimeUrlagentPortal.preferredLocalDevPort
Official Python Package link:
-Agent Portal on Python Package Index
The TypeScript SDK is shifting toward a thin client model that targets the Python runtime instead of owning browser sessions itself.
Connector direction:
- ChatGPT tools should translate tool calls into runtime API actions
- Claude MCP should expose runtime tools and reports over MCP
- Gemini connector should mirror the same runtime contract
- REST/WebSocket connector should become the stable integration boundary for all external clients
Agent Portal now includes a Python MCP bridge package under packages/agent-portal-mcp.
Basic flow:
- Start the runtime:
agent-portal start- Start the MCP server:
agent-portal mcp start- Connect an AI client that supports MCP to the local Agent Portal MCP server.
The MCP server exposes browser, navigation, inspection, steering, and report tools while routing risky actions through the Agent Portal approval system.
The plugin model is manifest-driven.
Each plugin can declare:
- name
- version
- type
- permissions
- entry point
- commands
- settings
- panels
- lifecycle hooks
The repository includes example and product-surface plugin manifests under plugins/.
Current verification commands:
python -m compileall python
python -m unittest discover -s python/tests -v
npm run check
npm testThese cover:
- Python runtime compilation
- runtime unit tests
- doctor/config/plugin validation
- HTTP server behavior
- workspace TypeScript builds
- extension manifest expectations
- local browser/runtime workflow coverage in Node tests
The repo now includes first-pass release packaging flows for both Python and the desktop runtime.
Build Python release artifacts into releases/python with:
npm run release:pythonExpected outputs:
- source distribution (
.tar.gz) - wheel (
.whl)
If the build module is missing, the script exits with a clear install command.
Build a desktop runtime release zip into releases/desktop with:
npm run release:desktopThat package includes:
- compiled desktop runtime output
- local workflow fixtures
- branding assets
- a Windows launch script
- release notes
Current hardening themes include:
- localhost binding by default
- optional local bearer token auth
- structured runtime errors
- duplicate-instance prevention
- graceful shutdown paths
- blocked high-risk categories
- better user-facing diagnostics through
agent-portal doctor - report-based traceability for actions and failures
Top-level docs available in this repo:
SKILL.md— Instructions for AI coding agents (Codex, Claude Code, Cursor, Windsurf, etc.)INSTALLATION.mdQUICKSTART.mdCLI.mdRUNTIME.mdPYTHON_SDK.mdVS_CODE_EXTENSION.mdAGENT_STEERING.mdPLUGIN_SYSTEM.mdSAFETY_MODEL.mdTESTING.mdTROUBLESHOOTING.mdARCHITECTURE.mdROADMAP.md
- Complete the migration of live session ownership from TypeScript runtime surfaces into the Python runtime server.
- Add a broadcast channel for live runtime events so the extension and connectors can stream state instead of polling.
- Expand approval flow from "approve next pending action" into richer queued-action execution control.
- Expand
VisionCorefrom heuristics into a stronger multimodal understanding engine. - Add durable memory retrieval, comparison, and project-aware context reuse.
- Extend runtime understanding beyond the browser into desktop applications and developer tools.
