Glance is a specialized MITM (Man-in-the-Middle) proxy designed for AI Agents and developers to intercept, inspect, and mock HTTP/HTTPS traffic. It provides a real-time view of your application's network activity through a modern web dashboard and integrates deeply with AI workflows via the Model Context Protocol (MCP).
- Real-time Live View: Stream captured requests and responses as they happen via WebSockets.
- HTTPS Decryption: Full MITM support with local CA generation and dynamic certificate management.
- Detailed Metadata: Inspect headers, query parameters, and formatted bodies (JSON/XML/HTML).
- Export as cURL: Quickly copy any request as a standard
curlcommand for reproduction.
- Rule Engine: Define rules to intercept and modify traffic on the fly.
- Mocks: Return static responses (status, headers, body) for specific URL patterns.
- Breakpoints: Pause matching requests or responses for manual modification in the dashboard before they proceed.
- Scenario Recording: Group related requests into sequences with one-click "Add to Scenario" or real-time recording mode.
- Variable Mapping: Define how data flows between requests (e.g., extracting a token from one response to use in the next header) to help AI understand dependencies.
- CORS Support: Mocked responses automatically handle preflight
OPTIONSrequests and include permissive headers.
- Built-in MCP Server: Native support for the Model Context Protocol.
- AI-Powered Tools: Allows AI agents (like Claude Desktop) to list traffic, execute requests, and manage rules.
- Integration Docs: Integrated documentation in the dashboard header with dynamic configuration snippets for Claude Desktop.
Glance implements the Model Context Protocol, allowing AI agents to interact with the proxy programmatically.
proxy://status: Returns the current proxy address, status, and active rules count.traffic://latest: Returns the most recent 10 HTTP requests in JSON format.
inspect_network_traffic: PRIMARY tool to list captured HTTP traffic summaries with optional keyword filtering and configurable limit (max limit follows system settings). MUST be used first for any network debugging.inspect_request_details: MANDATORY tool to retrieve full headers and body for a specific traffic entry by ID to diagnose root causes.execute_request: Execute or replay custom HTTP requests through the proxy.add_mock_rule: Create a mocking rule to return static responses.add_breakpoint_rule: Create a breakpoint rule to pause traffic for manual inspection.list_rules: List all active mocks and breakpoints.delete_rule: Remove an interception rule by ID.list_scenarios: List all recorded traffic scenarios.get_scenario: Get full sequence details and variable mappings for a scenario.add_scenario: Create a new scenario with basic metadata.update_scenario: Modify an existing scenario (name, description, steps, or variable mappings).delete_scenario: Remove a scenario by ID.clear_traffic: Reset/clear the captured traffic logs.get_proxy_status: Get real-time proxy address and status.
analyze-traffic: Pre-defined prompt to have an AI analyze recent traffic for errors or anomalies.generate-api-docs: Pre-defined prompt to generate OpenAPI documentation from captured traffic.generate-scenario-test: Pre-defined prompt to transform a recorded scenario into an automated test script (e.g., Playwright).
- Java/JVM: Specialized overrides for
HttpsURLConnectionto support already-running apps (Java 8+). - Android: ADB-based device discovery, automatic CA certificate installation, and proxy configuration.
- Docker: One-click transparent interception and CA injection for running containers.
- Chromium: One-click launch via Dashboard with pre-configured proxy and certificate flags.
- One-liner Setup:
eval "$(curl -s http://localhost:15501/setup)"for quick terminal proxy configuration.
You can install Glance via our official tap:
brew tap wahyudotdev/tap
brew install glanceDownload the latest pre-compiled binary for your platform from the Releases page.
| Environment | Support Level | Requirements | Features |
|---|---|---|---|
| Java / JVM | Native (Auto) | Java 8+ (v52.0+) | HttpsURLConnection overrides, Auto-trust CA |
| Android | ADB-based | Android 7+ (API 24+) | adb reverse, Auto-cert push, System/User trust guides |
| Docker | One-Click | Docker Engine | Transparent container recreation, CA injection |
| Chromium | Dashboard (One-click) | Chrome / Edge / Brave | Auto-launch with proxy flags, Ignore cert errors |
| Terminal | One-liner | Bash / Zsh / Fish | HTTP_PROXY, HTTPS_PROXY injection |
See CHANGELOG.md for details on recent updates and milestones.
- Backend: Go (using Fiber and goproxy).
- Frontend: React, TypeScript, and Tailwind CSS.
- Database: Pure-Go SQLite (
~/.glance.db) with Write-Ahead Logging (WAL) and Write-Behind caching for high performance. - Distribution: Single binary containing the embedded dashboard assets.
- Go 1.24+
- Node.js & npm (for frontend development)
The project uses a Makefile to manage builds:
# Build the binary for your current OS (includes frontend build)
make build
# Run all tests
make test
# Run linter
make lint
# Generate and view HTML coverage report
make test-coverageOnce built, you can run the glance binary:
./glanceBy default, the dashboard is available at http://localhost:15501, the proxy at http://localhost:15500, and the MCP server at http://localhost:15502.
Glance is built on top of amazing open-source projects:
- elazarl/goproxy: The core MITM proxy engine.
- gofiber/fiber: High-performance web framework.
- Model Context Protocol: AI agent integration standard.
- Lucide Icons: Beautiful & consistent iconography.
- Tailwind CSS: Modern utility-first styling.
- SQLite: Lightweight & high-performance persistence.
Glance is open-source and free to use. If you'd like to support the project's development, please consider sponsoring:
- GitHub Sponsors: Sponsor @wahyudotdev
This project is licensed under the MIT License - see the LICENSE file for details.