🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
HTTP proxy and MCP server for terminal agents
gori sits between your client and a target app, captures requests and responses as flows, and gives you tools to replay, fuzz, decode, and scan them. You can use it in the terminal, through `gori run`, or through `gori mcp` so an agent can work with the same traffic and tools.
Builders who want a terminal proxy they can use by hand, from scripts, or through an MCP client.
You can inspect, edit, and reuse live HTTP traffic without switching tools or repeating the same setup for your agent.
What it does
Capture and intercept traffic
Captures HTTP/1.1, HTTP/2, WebSocket, gRPC, and SSE flows, with in-flight intercept on HTTP/1.1 and HTTP/2.
Replay, fuzz, and decode
Includes repeater, intruder-style fuzzing, chained decode and hash tools, diffing, and inline parsing for JWT, SAML, GraphQL, protobuf, MessagePack, and CBOR.
Scan and triage findings
Adds passive and active checks, hidden-parameter discovery, access-control replay, token analysis, and export to Markdown or JSON.
Keyboard-first terminal UI
Uses a command palette, context menu, rebindable hotkeys, themes, mouse support, and multi-line editing.
Headless and agent access
Provides `gori run` for scripts and CI, and `gori mcp` as an MCP server for AI clients.
How to get it
- 1Run
curl -fsSL https://gori.hahwul.com/install.sh | bash
- 2Run
brew tap hahwul/gori brew install gori
- 3The repo is a flake, so it runs without being installed
nix run github:hahwul/gori nix profile install github:hahwul/gori # or keep it
- 4Requires Crystal >= 1.21.0 and pkg-config.
git clone https://github.com/hahwul/gori.git cd gori shards build --release
- 5Start the proxy and open the interactive terminal UI. No subcommand needed
gori
- 6The proxy listens on 127.0.0.1:8070 by default, and a short first-run wizard picks the…
gori --listen 0.0.0.0 --port 8080 # global bind for this run only (not persisted)
README
Hack from the terminal.
Installation • Usage • Documentation • Contributing
gori (고리 — Korean for ring, link, loop) sits in the loop between your client and its target,
capturing every request and response as a flow you can replay, fuzz, and scan across HTTP/1.1,
HTTP/2, WebSocket, gRPC, and SSE, and intercept in flight on HTTP/1.1 and HTTP/2. Core assessment
actions that cross surfaces use the same engines, and those workflows are also
available through gori run and MCP, so scripts and AI agents can drive the same engagement.
The capability matrix names the protocol and
surface limits explicitly.
Features
Capture & Intercept
- Capturing proxy for HTTP/1.1, HTTP/2, WebSocket, gRPC, and SSE
- Intercept on HTTP/1.1 and HTTP/2, gRPC included: hold, edit, forward, or drop in flight — and per-message on an HTTP/1.1 WebSocket, opt in with
proto:ws - Searchable History of every flow, with a query language for filtering
- Scope rules, hostname overrides, and match & replace
Replay, Fuzz & Decode
- Repeater workbench for crafting and re-sending requests (incl. WebSocket & gRPC)
- Intruder-style Fuzzer with four attack modes
- Decoder pipeline for chained encode / decode / hash, including signed session cookies
- Side-by-side Comparer for diffing two flows
- Inline JWT / SAML / GraphQL / protobuf / MessagePack / CBOR decoding, hex view, and pretty-printing
- Copy any request as cURL, Python,
fetch, Go, httpie, or a CSRF PoC
Discover & Scan
- Prism passive & light-touch active vulnerability scanner
- Param Miner for hidden-parameter discovery
- Authorize matrix: replay one request under several identities to find broken access control
- Sequencer for grading the randomness of session, CSRF, and reset tokens
- Cookie workbench to verify, crack, and re-sign Flask / Rack / Django session cookies
- OAST collector for confirming blind SSRF, XXE, and injection out of band
- Findings triage with Markdown / JSON export
Keyboard-first Workflow
- Command palette (
Ctrl-P) and context space menu (Space) reach every action - Rebindable hotkeys and switchable colour themes
- Mouse support, multi-line editing, and go-to-line navigation
Headless & Scriptable
gori runexposes the core project and testing workflows for non-interactive use- MCP server (
gori mcp) exposes those workflows to AI agents (it does not start a capture proxy)
Installation
Quick install (macOS / Linux)
curl -fsSL https://gori.hahwul.com/install.sh | bash
Then update later with gori update (self-update for binary installs; package-manager guidance for Homebrew / Snap / AUR).
Homebrew
brew tap hahwul/gori
brew install gori
Nix
The repo is a flake, so it runs without being installed:
nix run github:hahwul/gori
nix profile install github:hahwul/gori # or keep it
From source
Requires Crystal >= 1.21.0 and pkg-config.
git clone https://github.com/hahwul/gori.git
cd gori
shards build --release
The binary is written to bin/gori.
For system libraries (Brotli / Zstd), offline builds, and other options, see the Installation guide.
Usage
gori runs one engine and one project behind three entry points. Drive it yourself, hand it to an AI agent, or script it, and pick the one that fits who is at the controls.
For humans: gori (TUI)
Start the proxy and open the interactive terminal UI. No subcommand needed:
gori
The proxy listens on 127.0.0.1:8070 by default, and a short first-run wizard picks the
global default bind and theme (projects can pin their own later). To intercept HTTPS, trust
gori's root CA. The quickest path is the palette's Open browser (Ctrl-P), which launches a
browser already trusted and proxied. Captured traffic lands in History; press Ctrl-P for the
command palette or Space for context actions.
gori --listen 0.0.0.0 --port 8080 # global bind for this run only (not persisted)
For AI agents: gori mcp (MCP server)
gori mcp is a Model Context Protocol server. An AI client
spawns it over stdio, reads your traffic, and drives the same tools you do. Let gori write the
config for your agent, then restart the client:
gori mcp --install-claude-code # Claude Code (~/.claude.json)
gori mcp --install-claude # Claude Desktop
gori mcp --install-codex # OpenAI Codex
gori mcp --install-agy # Antigravity CLI
gori mcp --install-grok # Grok
gori mcp --install-hermes # Hermes (~/.hermes/config.yaml)
gori mcp --install-pi # Pi (~/.pi/agent/mcp.json)
Pi needs an MCP adapter, such as pi-mcp-adapter
(pi install npm:pi-mcp-adapter). The installer honors PI_CODING_AGENT_DIR when set.
Add --read-only to hand a project to an untrusted agent (read tools only, no live requests). The
AI Setup guide walks through connecting an agent and
running your first request.
For scripts: gori run (headless CLI)
gori run exposes the same core project and testing engines without the interactive UI. It is
built for scripting and CI, but works just as well by hand or from an agent's shell:
gori run history --format json # dump captured flows as JSON
gori run sitemap # endpoints seen so far
gori run --help # every subcommand
All three entry points share the same project database. See the documentation for the full guide, or open the Help tab in the app.
Development
shards build # release binary at bin/gori
shards run gori # run without installing
If linking fails with undefined BrotliDecoder* symbols, libbrotlidec is missing or
pkg-config cannot find it — see the
Installation guide for the system libraries and the
-Dwithout_native_codecs offline build.
Contributors
Contributions are welcome — see CONTRIBUTING.md to get set up.
Not every kind of help lands as a commit, so the line under each name says what it was: the bug
reports and reproductions up there found things gori would not have found on its own. To credit
someone, edit .github/contributor-mural.yml.
Why "gori"?
gori (고리) is the Korean word for a ring, link, or loop — exactly where the tool sits: in the loop between your client and its target, capturing and reshaping each request as it passes through. Sit in the loop.
Files in the repo
- .github
- aur
- bench
- docker
- docs
- nix
- scripts
- snap
- spec
- src
- .ameba.yml
- .editorconfig
- .gitignore
- AGENTS.md
- CHANGELOG.md
- flake.lock
- flake.nix
- justfile
- LICENSE
- README.md
- shard.lock
- shard.yml
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More tools
The best-benchmarked open-source AI memory system. And it's free.
Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.