惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
腾讯CDC
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
V
V2EX
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
Jina AI
Jina AI
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
B
Blog
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium

Hacker News: Front Page

SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Ancient DNA reveals pervasive directional selection across West Eurasia [pdf] AI cybersecurity is not proof of work Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. A Better Ludum Dare; Or, How to Ruin a Legacy GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent Codex Hacked a Samsung TV
GitHub - sauravrao637/oproxy: Open-source MITM proxy to i...
sauravrao637 · 2026-06-07 · via Hacker News: Front Page

oproxy is a local HTTP, HTTPS, and SOCKS5 proxy for inspecting, replaying, and modifying traffic.

It is for developers testing browsers, CLIs, mobile apps, API clients, services, and test suites on their own machine or in a local Docker container.

Features

  • Capture HTTP traffic and HTTPS traffic after trusting the local oproxy CA.
  • View requests, responses, headers, bodies, status, timing, tags, notes, and selected inspector data.
  • Replay captured requests and open them in Compose.
  • Build manual requests with headers, query params, auth, raw bodies, variables, collections, and cURL export.
  • Export captures as HAR or generated cURL, Fetch, and Python snippets.
  • Modify traffic with rule sets, map-remote, map-local, access rules, throttling, breakpoints, mock responses, DNS overrides, capture filters, Lua scripts, and upstream proxy chaining.
  • Use the authenticated Assistant to inspect state and prepare confirmed proxy changes through an OpenAI-compatible chat model.
  • Run from source or Docker with persistent volumes for CA material and local state.

Demo

Short demo video

Quick Start

Docker

docker run --rm \
  --name oproxy \
  -p 127.0.0.1:8080:8080 \
  -p 127.0.0.1:1080:1080 \
  -e OPROXY_BIND_HOST=0.0.0.0 \
  -e OPROXY_MITM_ENABLED=true \
  -v oproxy-certs:/app/certs \
  -v oproxy-storage:/app/storage \
  ghcr.io/sauravrao637/oproxy:latest

Open http://127.0.0.1:8080.

Or build locally:

docker build -t oproxy:latest .

Docker Compose

docker compose up --build

The included Compose file uses host networking, persists /app/certs and /app/storage, and sets OPROXY_BIND_HOST=0.0.0.0.

Source

Requirements:

  • Rust 1.85 or newer
  • Node.js 22 or newer
  • Yarn via Corepack
corepack enable
yarn --cwd src/design install --frozen-lockfile
yarn --cwd src/design build
cargo run --release

Open http://127.0.0.1:8080.

First Request

curl -x http://127.0.0.1:8080 http://example.com

The request appears in the Sessions view.

First HTTPS Capture

curl http://127.0.0.1:8080/admin/ca -o oproxy-ca.crt
curl --cacert oproxy-ca.crt -x http://127.0.0.1:8080 https://example.com

For browser HTTPS capture, install the CA from http://127.0.0.1:8080/admin/ca into the browser or OS trust store.

What It Can Do

  • Act as a forward HTTP proxy on OPROXY_PORT/port, default 8080.
  • Serve the local management UI and API from the same listener.
  • Intercept HTTPS CONNECT traffic when MITM is enabled and the client trusts the generated CA.
  • Optionally listen for SOCKS5 CONNECT traffic on socks5_port.
  • Optionally run a second TLS listener with https_port.
  • Capture live sessions in memory with bounded session and body retention.
  • Save and load sessions explicitly with admin endpoints.
  • Export HAR, cURL, Fetch, and Python snippets, redacted by default.
  • Import HAR files and oproxy JSON session data.
  • Stream session-change notifications with server-sent events.
  • Inspect JWT, GraphQL, gRPC, and WebSocket frame metadata when matching traffic is captured.

Use Cases

  • Debug a browser or CLI request without changing application code.
  • Replay a captured request after editing headers or body in Compose.
  • Test a frontend against mock responses or local fixture files.
  • Route a subset of traffic to a staging service.
  • Reproduce slow or bandwidth-limited responses.
  • Pause matching requests or responses before they continue.
  • Validate how a client behaves when requests are blocked, redirected, or rewritten.

Screenshots

oproxy sessions screenshot

oproxy compose screenshot

Documentation

License

MIT