gori stores global preferences in settings.json and each project as its own SQLite database. See the Configuration guide for a walkthrough. This page is the key-by-key reference.
Storage Layout
Everything lives under GORI_HOME ($GORI_HOME if set and non-empty, otherwise ~/.gori):
| Path | Contents |
|---|---|
settings.json |
Global preferences |
gori.db |
Default project database |
projects/ |
One subdirectory per named project, each with its own DB |
ca/ |
Root CA: root.crt.pem and root.key.pem |
themes/ |
User themes |
wordlists/ |
The global wordlist catalog: named lists for the Fuzzer, Miner, Discover and Cookie cracking (owner-only files) |
protos/ |
gRPC descriptor sets (protoc --descriptor_set_out), loaded by any project with no path of its own |
active_project |
Marker for the most-recently-used project |
gori.log |
The TUI's log |
browser/ |
Profiles for the browsers Open browser launches |
shell/ |
CA bundle and environment for Open shell |
spool/ |
A running fuzz sweep's full results, until they are saved or discarded |
preview/ |
Temporary files handed to an external viewer |
Environment Variables
| Variable | Effect |
|---|---|
GORI_HOME |
The home tree above. Empty or unset means ~/.gori (%USERPROFILE%\.gori on Windows) |
GORI_CONFIG |
The settings.json to use instead of $GORI_HOME/settings.json; --config PATH wins over it |
GORI_SSLKEYLOGFILE, SSLKEYLOGFILE |
Append TLS session secrets for both legs to that file, for Wireshark. The GORI_ name wins, and setting it empty turns the log off. See Decrypting the wire |
GORI_MCP_PROJECT, GORI_MCP_DB |
The project (by name) or database file gori mcp binds at start. See Choosing a Project |
HTTPS_PROXY, HTTP_PROXY, ALL_PROXY, NO_PROXY |
The upstream route when network.upstream_proxy is blank (lowercase spellings too). See upstream_rules |
SSL_CERT_FILE, SSL_CERT_DIR |
The CA trust verify_upstream checks origins against, in place of the system store's standard locations |
VISUAL, EDITOR |
The external editor when editor.command is blank, then vi (notepad on Windows) |
GORI_GITHUB_TOKEN, GITHUB_TOKEN, GH_TOKEN |
Authenticate gori update and the installer to the GitHub API. See the rate limit |
ANDROID_HOME, ANDROID_SDK_ROOT |
Where gori run android looks for platform-tools/adb when adb is not on PATH |
settings.json
settings.json is JSON. Find or edit it with gori settings / gori settings --edit.
A file that is not valid JSON does not stop gori. gori says so on stderr (and in a TUI notice), runs that session on defaults, keeps the original as settings.json.corrupt before anything is saved over it, and still reads the env.syntax it states.
Its location resolves as --config PATH β $GORI_CONFIG β $GORI_HOME/settings.json, so a run can use a different configuration without relocating the CA, project databases, themes and wordlists. Sections can be moved between configs with gori settings export / import. Five of them (rewriter, scan_rules, decoder, statusline and editor) can carry a command, so a profile can carry code. Both ends of a transfer say so.
network
{
"network": {
"bind_host": "127.0.0.1",
"bind_port": 8070,
"upstream_proxy": ""
}
}
| Key | Type | Default | Description |
|---|---|---|---|
bind_host |
string | 127.0.0.1 |
Global default listen address (used when a project has no net.bind_host) |
bind_port |
integer | 8070 |
Global default listen port (used when a project has no net.bind_port) |
upstream_proxy |
string | "" |
Global default upstream: legacy host:port/http://β¦, http+tls://β¦ (TLS to the proxy), or socks5://β¦/socks5h://β¦; empty = environment fallback (HTTPS_PROXY / HTTP_PROXY / ALL_PROXY, then direct). Project net.upstream_proxy wins when set. https://β¦ is the legacy spelling of the plaintext form; see upstream_rules |
upstream_proxy_ca |
string | "" |
PEM bundle trusted for the upstream proxy's own certificate on an http+tls hop, in addition to the system store. Blank = system trust only. A path, never a secret, so it is safe to share in a profile |
upstream_proxy_insecure |
bool | false |
Skip verification of the upstream proxy's certificate. Independent of verify_upstream and untouched by --insecure-upstream, which are about the origin. Off by default, because that hop carries every CONNECT authority and every Proxy-Authorization credential |
verify_upstream |
bool | true |
Verify upstream TLS certificates against the system CA trust store, resolved automatically from standard locations (honouring SSL_CERT_FILE / SSL_CERT_DIR). If none is found, HTTPS verification fails until you set SSL_CERT_FILE or turn this off. Toggling it re-syncs the running proxy, the active prober, and the Repeater / Fuzzer / Miner senders without a restart. --insecure-upstream seeds it off for one session |
serve_landing |
bool | true |
Serve the built-in info / CA-download page, both when the listen address is hit directly and at the reserved host http://gori.proxy/ (or http://gori/) for a client already pointed at the proxy |
connect_timeout_secs |
integer | 30 |
Upstream connect timeout in seconds (minimum 1) |
io_timeout_secs |
integer | 30 |
Upstream read / write idle timeout in seconds (minimum 1) |
capture_max_mib |
integer | 2 |
Largest body stored per message, in MiB (1-2047). Larger bodies still forward byte-exact; only the stored copy is truncated, and the true wire size is recorded |
http2 |
string | "auto" |
auto reflects the origin's ALPN; off forces HTTP/1.1 on every tunnelled connection. See http2 below |
strip_alt_svc |
bool | false |
Remove the Alt-Svc response fields advertising HTTP/3 before the client sees them, so a browser cannot switch to a transport gori does not carry. See strip_alt_svc below |
strip_extended_connect |
bool | false |
Withhold the origin's HTTP/2 SETTINGS_ENABLE_CONNECT_PROTOCOL from the client, so a browser opens its WebSockets with an HTTP/1.1 Upgrade, where per-message intercept and Match & Replace run. See strip_extended_connect below |
strip_available_dictionary |
bool | false |
Remove Available-Dictionary and Dictionary-ID from requests before the origin sees them, so it cannot answer with a dcb/dcz body gori cannot decode. See strip_available_dictionary below |
tls_passthrough |
array | [] |
Hosts to relay without decrypting. See tls_passthrough below |
CLI --listen / --port override these for the current process only (not written to disk). See Per-Project Overrides.
http2
auto (the default) reflects the origin's ALPN: gori advertises HTTP/2 to the client only when the origin speaks it. off never advertises it, so every tunnelled connection takes the HTTP/1.1 path.
Pin the version when h1-vs-h2 differences are the subject of a test (request framing, header-name handling, smuggling).
Before this setting, gori downgraded to HTTP/1.1 when Match & Replace rules were live, so forcing h1 meant enabling a no-op rule. That also turned on head rewriting, and was easy to leave behind.
off takes effect on the next tunnelled connection, and skips the origin ALPN probe (one fewer connection per origin). No rule downgrades a connection any more. Intercept, Match & Replace rules (head, body and short-circuit), session-binding extract rules and the Sandbox all run on the HTTP/2 relay. A cleartext-HTTP/2 (h2c) tunnel inside CONNECT is refused when off, because the client has already committed to h2 by sending the preface.
Every downgrade is announced in gori.log, once per host, naming the host and which reason caused it. An HTTP/2-only client (every gRPC client) cannot connect to a host while a downgrade applies, and that log line is the only place the reason is written down.
There is no force mode. It would need a defined fallback for an origin that does not speak HTTP/2.
tls_passthrough
A CONNECT whose host matches is answered 200 and then relayed as an opaque byte tunnel: no certificate is minted for it, nothing is decrypted, and nothing is captured. The client validates the origin's own certificate as if gori were not in the path.
Use it for a client that pins certificates (a mobile app, an auto-updater, a desktop agent) sharing the proxy with your target. Without it, that traffic breaks. Scope does not help here. Scope decides what is recorded and acted on, not whether TLS is intercepted, so an out-of-scope host is still decrypted.
Use it also for a non-HTTP protocol on the same path: MQTT, AMQP, a database wire protocol, or anything else whose first byte is not text. Without passthrough, gori terminates TLS on such a connection and finds bytes that are not an HTTP request. The connection is recorded as a not an HTTP request flow naming the observed bytes. List the host here and gori tunnels it byte-exact.
A protocol that opens with a text line (SSH's SSH-2.0-β¦ banner, an SMTP greeting) is not detected, because its first line looks like a malformed request line, and gori forwards those verbatim. Such a connection waits out the head timeout. Use passthrough there too.
It also covers the two shapes with no bytes to judge. A server-speaks-first protocol (SMTP, IMAP, POP3, MySQL) has its client connect and send nothing, so there is nothing to classify. Once the read times out, the connection is recorded as a no request flow naming that shape. On a reverse or transparent listener that flow names the origin the client was dialling (declared for the reverse one, read from the kernel's redirect for the transparent one where the platform answers). For a redirected :25 or :143, that is the host to list here. On a socks5 listener it names the destination the client asked for, once the handshake got that far. Before that there is nothing to name. On the forward-proxy listener nothing arrived to carry a name, so the flow advises keeping gori off that port.
A non-TLS payload inside CONNECT (ssh -o ProxyCommand='nc -X connect proxy:8080 %h %p', the ordinary corporate-proxy pattern) is refused with a flow that names the byte it opened with. Listing the host makes it work: a listed host is relayed byte-exact, with no peek at what it speaks. The same peek identifies an h2c tunnel by its full PRI * HTTP/2.0 preface, not its first byte, so a plaintext POST or PROPFIND tunnelled to port 80 is refused like any other undecodable payload.
If gori cannot complete a TLS handshake with a client reaching a tunnelled origin (most often because the client does not trust the CA yet, and always for a client that pins a certificate), that is written to gori.log once per host, port and reason. The CA-download page at gori.proxy is excluded, since a client arrives there before it trusts the CA.
{
"network": {
"tls_passthrough": ["updates.example.com", "*.push.apple.com"]
}
}
Patterns use the same dialect as scope host rules: example.com covers that host and its subdomains, *.push.example.com is a glob (subdomains only, not the bare host), and an IPv6 literal matches bracketed or bare. Matching is case-insensitive. Entries are bare hosts: a scheme, a path, or a :port is rejected when you save, because such an entry could never match.
Empty (the default) means everything is intercepted. Plaintext HTTP is unaffected.
A bypassed host produces no flow, so gori writes one line to its log the first time each host is relayed. Edit the list from Preferences β Network & Tabs β Network β TLS passthrough (comma-separated).
strip_alt_svc
gori does not intercept HTTP/3, because QUIC is UDP and every gori listener is a TCP socket. An origin answering Alt-Svc: h3=":443" invites the client onto a transport gori cannot read, and History stops. Turn this on and gori removes the Alt-Svc fields advertising h3 (or an h3-β¦ draft) from the response the client receives, on both HTTP/1.1 and HTTP/2.
It is off by default. gori edits a response unasked only where leaving it would make the capture wrong. The Sec-WebSocket-Extensions strip is that case, because a negotiated permessage-deflate leaves every stored frame a deflate stream presented as the payload. An Alt-Svc left in place corrupts nothing gori records. It only lets the client leave, so whether to strip it depends on your test.
With it off, gori says so instead. A response that advertises h3 and reaches the client un-stripped carries an advisory naming the evidence and the setting: "kept 1 Alt-Svc HTTP/3 advertisement (h3=":443") in this response β gori does not intercept HTTP/3, so a client acting on it leaves the proxy and what it does there is missing from History (settings network.strip_alt_svc is off)." It appears on both HTTP/1.1 and HTTP/2, in the same places the removal advisory appears. Nothing on the wire changes. The origin's head reaches the client byte for byte. Each host is also named once in gori.log, and the passive probe's tech_http3 fingerprint still raises its own once-per-host Alt-Svc: <host> advertised HTTP/3 event, clickable through to the Probe tab. The advisory adds the per-flow record.
Removal is per field, and only for fields that advertise h3. Alt-Svc: clear is never removed, since RFC 7838 Β§3 makes it the instruction to forget cached alternatives. A plain h2=":8443" alternative is never removed either. It is another TCP port, still tunnelled through gori.
The strip runs before Match & Replace, so a response head rule that puts the header back wins.
On HTTP/2, removing a field means gori re-encodes that response's header block. HPACK's per-connection state makes that one-way: from the first strip onward gori re-encodes every response head on that connection and gives up the origin's HPACK compression for it. The raw frame log for that connection then holds gori's HPACK, and the advisory on the flow says so. A trailer block and a PUSH_PROMISE are left alone, since no client acts on an Alt-Svc in either.
Every flow whose response was stripped carries an advisory naming what was removed and quoting the removed value, in the History detail pane, gori run history --format json and the MCP get_flow tool. The passive probe reads the stored response, which is the one gori delivered, so once the strip is on a captured flow stops raising the tech_http3 fingerprint and its Alt-Svc: <host> advertised HTTP/3 event line. The per-flow advisory records it instead. Only captured traffic is affected. A response gori elicited itself (a Repeater send, a Fuzz sweep, a Discover crawl, MCP send_request, an import) never goes through the proxy path, so it keeps the origin's Alt-Svc and still fingerprints. Resend the request from the Repeater to see the advertisement.
It cannot cover three things. A host on tls_passthrough is never decrypted, so there is no response for gori to edit. A client can learn an h3 route from a DNS HTTPS record, which no response-side strip reaches. A field-name spelled with whitespace before the colon (Alt-Svc : h3=β¦) is not recognised, by this setting or by gori's own header projection. A conforming client rejects that field too (RFC 9112 Β§5.1). Toggle the setting from Preferences β Network & Tabs β Network β Strip HTTP/3 Alt-Svc.
strip_extended_connect
A browser opens a WebSocket over HTTP/2 when the origin offers SETTINGS_ENABLE_CONNECT_PROTOCOL (RFC 8441). gori captures such a socket in full, but per-message intercept and Match & Replace do not run on it. Turn this on and gori removes that parameter from every SETTINGS frame the origin sends on an HTTP/2 connection, before the client sees it. A client that was never offered extended CONNECT opens its WebSockets with an HTTP/1.1 Upgrade on a new connection, where both run. Everything else on the connection stays on HTTP/2. It covers TLS tunnels, h2c inside CONNECT, and the reverse and transparent listeners.
It is off by default, for the reason strip_alt_svc is: an HTTP/2 socket costs no capture fidelity, so whether to move it depends on your test. Setting http2 to off also moves sockets to HTTP/1.1, but it takes the whole connection with them.
It applies to connections opened after it is on. An origin normally sends the parameter once, in its first SETTINGS frame, so a connection the client already holds keeps the offer it was given, and a socket already running over HTTP/2 stays there. gori does not close connections to force a new one. A WebSocket opened over HTTP/2 while the switch is on carries an advisory saying the switch did not prevent it.
gori says what it did. A SETTINGS frame has no flow, so the record is in three places. The raw frame log holds the frame gori wrote, without the parameter. gori.log names each origin once. Each HTTP/1.1 WebSocket upgrade to that origin carries an advisory while the switch is on: "gori withheld <host>:<port>'s SETTINGS_ENABLE_CONNECT_PROTOCOL from the client on HTTP/2 (settings network.strip_extended_connect), so a client that would have opened this WebSocket there used the HTTP/1.1 Upgrade instead."
The parameter is one bit for every extended CONNECT protocol, so this also withholds connect-udp (RFC 9298) and connect-ip (RFC 9484). An entry carrying 0 changes nothing and is left in place. A client that sends an extended CONNECT anyway is relayed, not refused. Only the proxy path is affected. A Repeater or Fuzzer replay dials the origin itself and still sees the offer. Toggle the setting from Preferences β Network & Tabs β Network β Strip HTTP/2 ext. CONNECT.
strip_available_dictionary
Compression Dictionary Transport (RFC 9842) lets a client tell the origin which dictionary it holds, in Available-Dictionary (the dictionary's SHA-256) and Dictionary-ID. The origin may then answer Content-Encoding: dcb (Brotli) or dcz (Zstandard), a body that only that dictionary decodes. The dictionary is an earlier response the client cached, often before gori was in the path.
Without this switch the body is captured byte-exact but stays opaque: the detail view, the passive probe rules, extract rules and Match & Replace body rules all see compressed bytes, and the decode note reads "compressed: dcb β unsupported without the client's dictionary (RFC 9842); settings network.strip_available_dictionary".
Turn it on and gori removes every Available-Dictionary and Dictionary-ID field from the request before it leaves for the origin, on HTTP/1.1 and HTTP/2. Without the dictionary's hash the origin cannot produce dcb or dcz, so it answers in a coding gori decodes. Accept-Encoding is left as the client sent it: the dcb/dcz tokens in it do nothing once the hash is gone, and gori removes whole fields rather than rewriting part of one. History records the request gori sent.
It is off by default, for the reason strip_alt_svc is: an opaque body corrupts nothing gori records, and the note says why. With it on, the origin's responses are larger, since the client no longer gets the dictionary's savings through gori.
The strip runs before Match & Replace, so a request head rule that puts a field back for one host wins, and the flow then does not claim that field was removed.
On HTTP/2, removing a field means gori re-encodes that request's header block. HPACK's per-connection state makes that one-way: from the first strip onward gori re-encodes every request head on that connection and gives up the client's HPACK compression for it, and the raw frame log holds gori's HPACK. A trailer block is left alone.
gori says what it did. Each flow whose request was stripped carries an advisory: "removed 2 dictionary fields (Available-Dictionary: :β¦:, Dictionary-ID: "β¦") from this request β a response compressed against a dictionary gori does not hold (RFC 9842 dcb/dcz) cannot be decoded (settings network.strip_available_dictionary)." On HTTP/2 it adds that the connection's request heads are re-encoded from then on, and gori.log names the first strip once per connection.
Only the proxy path is affected. A Repeater, Fuzzer or Miner send goes out with the operator's bytes, so a replay of a captured request that carries the field can still get a dcb answer, and its decode note says why. Toggle the setting from Preferences β Network & Tabs β Network β Strip dictionary offer.
listeners
Additional sockets the proxy accepts on, alongside the primary network.bind_host / bind_port.
{
"listeners": [
{ "host": "192.168.1.10", "port": 8081, "mode": "proxy" },
{ "host": "127.0.0.1", "port": 8080, "mode": "transparent", "target_port": 80 },
{ "host": "127.0.0.1", "port": 8443, "mode": "transparent", "target_port": 443 },
{ "host": "0.0.0.0", "port": 9000, "mode": "reverse", "origin": "https://api.example.com" },
{ "host": "127.0.0.1", "port": 1080, "mode": "socks5" }
]
}
| Key | Type | Default | Description |
|---|---|---|---|
host |
string | β | Listen address. Required |
port |
integer | β | Listen port. Required |
mode |
string | "proxy" |
proxy, transparent, reverse or socks5. An unknown mode drops the entry rather than defaulting to proxy, which could expose an unintended forward proxy on a LAN address |
target_port |
integer | 80 / 443 |
Transparent only: the upstream port to use when the kernel cannot say which one the client dialled. Advisory; see Transparent mode |
origin |
string | β | Reverse only, required: the absolute http(s) URL to forward to |
rewrite_host |
boolean | false |
Reverse only: replace the forwarded Host with the origin's authority |
A field used in the wrong mode is rejected, not ignored: target_port outside transparent, origin or rewrite_host outside reverse. A socks5 entry therefore carries only host, port and mode.
The primary bind stays a scalar. It is the forward-proxy endpoint you configure a client against, and it is what the status bar, the statusline JSON, the capture-status sidecar and the live rebind report. Additional listeners show as an inventory. A listeners:N chip appears beside the listen chip whenever any are configured, and opens a read-only list of every one with its mode, address, origin and status. The chip turns red as listeners:N/M when one of them is not up.
gori can move the primary bind (a taken port falls back), so it is announced. Every address in listeners is one you typed, so the list only confirms it.
An extra listener that fails to bind (privileged port, address in use) does not stop capture on the primary. The failure shows in the listeners:N/M chip and names its reason in the list. An entry that is unusable for any other reason (a missing origin, a field in the wrong mode) is dropped from the running set and listed there too. An entry duplicating the primary address is skipped.
The section is read at startup and is not applied live. Saving an edit raises a notification that a restart is needed.
Transparent mode
A transparent listener serves clients that believe they are talking to the origin. There is no CONNECT and no absolute-form request target, so gori recovers the destination per connection from two sources.
The kernel still remembers what the client dialled before the redirect rule rewrote it, and gori asks it once per connection:
- Linux:
getsockopt(SOL_IP, SO_ORIGINAL_DST), or theSOL_IPV6form for a v6 connection. Always available. It returns nothing when no redirect put the connection there. - macOS: a
DIOCNATLOOKon/dev/pf. That device is root-only, so this works only when gori runs as root.
That answer is an address and a port. The port is the one the client connected to, so it outranks both target_port and any port in the client's Host header. The address is where gori dials, regardless of what the client called the destination.
The client's own bytes supply the name: the Host header for cleartext, the TLS SNI for HTTPS, read out of the ClientHello before the handshake. gori uses the name whenever there is one. Everything downstream needs it: which leaf certificate to mint, the sandbox gate, the passthrough list, the origin ALPN probe, scope matching, and what History shows. The kernel's address fills in as the name only when there is no name.
The name identifies the destination and travels upstream byte-exact. The address decides which machine the connection reaches. A client that lies in Host still gets a certificate for the name it asked for and shows up in History under it, but cannot move gori's upstream connection.
A hostname override still wins over the kernel address, because it is a mapping you wrote by name. It is the only way to redirect a transparent destination.
Which source decided a destination is written to the log, once per listener and again if it changes.
Route traffic to it with your firewall. On Linux:
iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDIRECT --to-port 8443
On macOS, use an equivalent pf rdr rule.
These rules catch TCP only, and HTTP/3 is UDP. A client that speaks HTTP/3 sends QUIC to UDP port 443. No rule above redirects it and no gori listener reads it, so those requests reach the origin and never appear in History. Reject UDP 443 for the same traffic and the client falls back to TCP:
iptables -A OUTPUT -p udp --dport 443 -j REJECT
On macOS, use block return out proto udp from any to any port 443 in pf. strip_alt_svc removes the header that advertises HTTP/3. This rule covers a client that already has a route, from a cached Alt-Svc or a DNS HTTPS record.
Why target_port is still here. The kernel lookup does not always answer. There is no mechanism outside Linux and macOS, macOS needs root, and a connection made straight to the listener with no redirect in front of it has nothing to recover. target_port is the fallback for those cases. Set it to the port the redirect rule caught, so the listener taking redirected :443 traffic sets target_port: 443. When the kernel does answer, target_port is not consulted.
When the kernel does not answer. The name is resolved through DNS, so a client that lies in Host (or offers a misleading SNI) steers the upstream dial to a host of its choosing, and target_port decides the port. That is the case on any platform without a mechanism, on macOS without root, and for a connection that reached the listener without a redirect in front of it. The log line says which source decided. If the client must not influence the destination, use reverse mode. It declares the destination and consults nothing the client sent, on every platform and without root.
Everything else behaves as on the proxy path: flows are captured into the same project, scope and the Sandbox apply, and the passthrough list is honoured. A TLS connection with no SNI is served when the kernel supplies an address (gori mints a leaf for that IP). It is dropped, and logged once, only when there is no address either. A host the Sandbox rules out is dropped outright, because a TLS client cannot be answered with a 403.
Reverse mode
A reverse listener also serves clients that believe they are talking to the origin, but the origin is declared, not derived. gori answers as if it were the origin and forwards to origin.
{ "host": "0.0.0.0", "port": 9000, "mode": "reverse", "origin": "https://api.example.com" }
Use it for a client that cannot be pointed at a proxy: a mobile app with no proxy setting, a CI step, an appliance. There is no CONNECT, proxy configuration or firewall rule. The client only has to reach the socket.
Because the destination is configured, transparent mode's failure modes do not apply. A request with no Host header is served. A Host naming somewhere else is served, and forwarded to origin regardless. The header is not consulted for routing.
origin must be an absolute URL with an http or https scheme. The port defaults from the scheme. A bare api.example.com:8443 is refused, not assumed http, because the scheme decides whether gori speaks TLS to your origin. An origin pointing back at gori's own primary bind or at another listener is refused when you save, since it would be a forwarding loop.
TLS. The listener terminates TLS when the client opens with one, using a leaf minted for the configured origin host, never for the client's SNI. The client must therefore reach the socket under the origin's name, the ordinary reverse-proxy arrangement: a hosts entry or a DNS record. The origin leg follows the origin's own scheme, so "origin": "http://127.0.0.1:3000" gives you TLS in front of a cleartext backend.
rewrite_host. A conventional reverse proxy rewrites Host to the upstream's name. gori does it only when asked, because it changes your client's bytes on the live path. With rewrite_host: false (the default) the client's Host reaches the origin byte for byte. With it on, the Host is replaced with the origin's authority: one field, with the rest of the head untouched, and a duplicated Host collapsed to one.
Scope works as everywhere else: the Sandbox and exclude rules apply unchanged, gated per request and before the TLS handshake. The include list is a lens over captured traffic here, not a gate, because a reverse listener only forwards what a client sent.
SOCKS5 mode
A SOCKS5 listener (RFC 1928) takes its destination from the client in a handshake, then intercepts everything that follows (TLS, HTTP/2 prior knowledge, or plain HTTP), routed on its first bytes the way the other listeners route theirs. The TLS test here reads two bytes, not one, so a payload whose first octet happens to be 0x16 is not fed to a TLS handshake. A non-HTTP protocol is most likely to arrive here, since ssh -D is what most people point at a SOCKS listener.
{ "host": "127.0.0.1", "port": 1080, "mode": "socks5" }
Use it for a client that can be pointed at a SOCKS proxy but not an HTTP one: ALL_PROXY=socks5://127.0.0.1:1080, a runtime whose only proxy setting is SOCKS, a tool that speaks SOCKS and nothing else. This listener is inbound. An upstream_rules entry with "kind": "socks5" is the other direction: it reaches an origin through somebody else's SOCKS proxy.
The destination arrives declared in the handshake, so no kernel redirect rule is needed and nothing has to recover the destination from an SNI or a Host header. On a cleartext connection a request whose Host names somewhere else is still sent where the handshake said, and the handshake's authority is what History records, while the client's own header is forwarded byte for byte. On a TLS connection the SNI supplies the name instead (the leaf is minted for it, the passthrough list and the Sandbox match on it, and it is what History shows), while the connection is dialled at the destination the handshake declared: the same split transparent mode has between the name and the address. A ClientHello carrying no SNI falls back to the declared destination for both.
NO-AUTH only. A client that offers no method gori serves is told so with RFC 1928's 0xFF and closed. The forward-proxy listener beside it has no authentication either.
CONNECT only. BIND and UDP ASSOCIATE are refused with reply code 0x07 rather than by hanging up, so the client reports the real cause. BIND needs a socket opened on the client's behalf and UDP ASSOCIATE is a datagram relay. Every gori listener is a TCP socket, the same reason HTTP/3 is out of reach.
Two things are checked before gori answers succeeded, and each is refused with reply code 0x02 ("not allowed by ruleset") rather than a dropped connection: a destination naming any socket gori is serving (this listener, a sibling, or the primary bind), which would dial this proxy through itself, and a host the Sandbox excludes. The forward proxy's CONNECT path has both gates too, since there the client also names the destination. A transparent listener is steered by the kernel first and only falls back to what the client said.
Every refusal is recorded in the project as a flow carrying its reason, so a client pointed at the wrong port, asking for UDP, or opening with something that is not SOCKS shows up in History.
upstream_rules
network.upstream_proxy is the catch-all route. Bare host:port and http://β¦ use a plaintext HTTP CONNECT proxy (default port 8080). http+tls://β¦ uses the same CONNECT protocol with the hop to the proxy wrapped in TLS (default port 443). socks5://β¦ resolves destination names locally and sends an address literal. socks5h://β¦ sends hostname targets as ATYP DOMAIN so the proxy resolves them. Both SOCKS forms default to port 1080. URI credentials are refused. Configure direct credentials in the Project tab, or use an upstream_rules entry with username and password_env.
When this scalar is blank, gori consults the process environment at dial time. HTTP origins select HTTP_PROXY, then ALL_PROXY. HTTPS origins select HTTPS_PROXY, then HTTP_PROXY, then ALL_PROXY. Uppercase names are preferred and lowercase spellings are accepted. NO_PROXY / no_proxy supports *, hosts and domains, bracketed IPv6 literals, optional ports, and IPv4/IPv6 CIDR blocks (10.0.0.0/8,fd00::/8, matched against an address-literal destination). A match goes direct. localhost and loopback addresses are always direct, regardless of NO_PROXY, on every dial (TLS passthrough and CONNECT tunnels included). The exemption is about the destination, so a proxy that itself listens on 127.0.0.1 is still used for remote targets. The unspecified addresses 0.0.0.0 and :: count as loopback here, and so does any numeric IPv4 spelling the system resolver accepts (127.1, 0x7f.0.0.1, 2130706433). The loopback check and the CIDR entries read such a destination as the dotted address it resolves to, while the dial and the CONNECT line keep the spelling that was sent. Inside a gori shell, the proxy variables that shell exported (pointing back at the gori that started it) are passed over, and the values it replaced (a corporate HTTPS_PROXY, its NO_PROXY) are read instead, so a gori started there does not chain its requests through its parent. An explicit project upstream, matching rule (including direct), or non-empty scalar takes precedence over the environment. In this environment-variable convention, http:// means a plaintext HTTP CONNECT proxy (port 80 when none is given, not the scalar's 8080) and https:// means TLS to the proxy. The persisted network.upstream_proxy https:// spelling retains its legacy plaintext meaning.
https:// means the plaintext proxy, not TLS
https://proxy:3128 means a plaintext HTTP CONNECT proxy, as it did before gori could speak TLS to a proxy. Existing settings.json files use it that way, so gori accepts the spelling unchanged and reports it:
- gori prints one startup warning per configured
https://upstream, naming both fixes. - Write
http://for the same behaviour without the ambiguity, orhttp+tls://to encrypt the hop. - Editing the proxy fields in settings:network (or the Project settings card) rewrites the value canonically as
http://β¦on save. An untouched value is left byte-for-byte as written.
TLS to the proxy (http+tls)
The CONNECT request line (which names the origin you are reaching for) and the Proxy-Authorization header are written inside the TLS session. Nothing about the request is sent before the handshake completes.
The proxy leg is verified on its own hostname: SNI and the checked certificate name are the proxy address you configured, never the origin's, and never a host override (overrides apply to the origin leg only). It is governed by network.upstream_proxy_ca and network.upstream_proxy_insecure, not by verify_upstream / --insecure-upstream, which describe the origin. Relaxing the origin policy does not stop gori authenticating the proxy, and a rejected proxy certificate is reported as a proxy failure without suggesting --insecure-upstream.
An https:// origin reached through an http+tls proxy is TLS inside TLS: the origin handshake runs over the tunnel, so the origin's certificate is still verified end to end under its own policy.
All networking owned by gori uses this routing decision, including capture/replay/scan engines, the updater, and OAST provider traffic. A configured proxy that is malformed, unreachable, or refuses a tunnel fails closed. gori does not retry the destination directly. A blank project pin and a matching direct rule are the exceptions.
Per-destination upstream routing can express "route *.corp.internal through the internal proxy, everything else direct", carry credentials, and choose different proxies.
Rules are ordered and the first match wins, so specific rules go above general ones. Edit them with gori settings --edit.
{
"upstream_rules": [
{ "host": "intranet.corp.internal", "kind": "direct" },
{
"host": "*.corp.internal",
"kind": "http",
"addr": "proxy.corp.internal:3128",
"username": "alice",
"password_env": "CORP_PROXY_PASS"
},
{ "host": "*.partner.example", "kind": "http+tls", "addr": "proxy.partner.example:443" },
{ "host": "*.onion", "kind": "socks5h", "addr": "127.0.0.1:9050" }
]
}
| Key | Type | Description |
|---|---|---|
host |
string | Host pattern, same dialect as scope host rules: corp.internal covers that host and its subdomains, *.corp.internal is a glob, * is the catch-all. Case-insensitive |
kind |
string | direct, http, http+tls (HTTP CONNECT over TLS), socks5 (local DNS), or socks5h (proxy DNS). An unknown kind (or a missing host) drops the rule and fails every rule-routed dial closed until the file is fixed, rather than being treated as direct, which would quietly disable an intended proxy |
addr |
string | Proxy host:port. Port defaults to 8080 for http, 443 for http+tls, and 1080 for either SOCKS kind. Must be absent for direct |
username |
string | Optional. Sent as HTTP Basic (RFC 7617) for http and http+tls, or via the RFC 1929 exchange for either SOCKS kind |
password_env |
string | Optional. The name of an OS environment variable holding the password |
Global-rule passwords are never stored in settings.json. Only the username and the environment-variable name are written. The password is read from the OS environment at dial time, so export CORP_PROXY_PASS=β¦ takes effect without a restart. gori's own env section is not used for this, because those variables are stored in settings.json in plaintext (see #439). A password_env containing $ is rejected: it holds a variable name, not a value. Direct credentials entered in Project settings have different storage described under Per-Project Overrides.
network.upstream_proxy_ca and network.upstream_proxy_insecure are one policy for every http+tls hop, whether it came from a rule, the scalar, or a project pin. There is no per-rule TLS field.
The scalar and rules use the same DNS distinction: socks5 performs the destination lookup on the gori host, while socks5h delegates it to the proxy. Use socks5h for Tor, split DNS, or a jump host that can resolve names unavailable locally. A failed local lookup stops before connecting to the proxy and never falls back to a direct origin connection.
Precedence, highest first:
| Priority | Source |
|---|---|
| 1 (highest) | Project net.upstream_proxy: a per-project pin, which bypasses the whole table |
| 2 | upstream_rules, first host match |
| 3 | network.upstream_proxy: the implicit catch-all |
| 4 | Process environment (HTTPS_PROXY / HTTP_PROXY / ALL_PROXY) when the scalar is blank, subject to NO_PROXY / no_proxy (hosts, domains, ports, CIDR blocks); localhost and loopback are always direct here |
| 5 (lowest) | Direct |
For an open project, Destination host is evaluated before this table. * (the default)
leaves the precedence above unchanged. A non-matching destination goes direct without falling
through to a global rule or scalar proxy.
A rule is matched against the original hostname, before any host override is applied. An override only changes which IP is dialled.
outbound_tls
Per-destination TLS policy for the connections gori makes: a client certificate to present, the protocol range / cipher list to negotiate with, and the shape of the ClientHello gori sends (its TLS fingerprint). Rules are ordered, the first match wins, and the host-pattern dialect is the same. Edit with gori settings --edit.
It is a separate table from upstream_rules. Both are keyed by destination host and apply one first-match row per host, so separate tables let "everything through the corporate proxy, plus a client certificate for one host" work without duplicating the proxy address onto that host's row.
{
"outbound_tls": [
{
"host": "mtls.example.com",
"client_cert": "/home/you/certs/client.crt.pem",
"client_key": "/home/you/certs/client.key.pem"
},
{
"host": "legacy-appliance.internal",
"min_version": "tls1.0",
"ciphers": "ALL:@SECLEVEL=0",
"permissive": true
}
]
}
| Key | Type | Description |
|---|---|---|
host |
string | Host pattern, as in upstream_rules. * is the catch-all |
client_cert |
string | Path to a PEM certificate chain to present (mutual TLS) |
client_key |
string | Path to the matching PEM private key. Both halves are required, or neither |
min_version |
string | Lowest protocol to negotiate: tls1.0, tls1.1, tls1.2, tls1.3. Empty leaves the default |
max_version |
string | Highest protocol to negotiate, same values. Empty leaves the default |
ciphers |
string | OpenSSL cipher list for TLS 1.2 and below. Empty leaves the default |
permissive |
bool | Talk to broken/legacy servers: drops the OpenSSL security level to 0 and allows renegotiation |
preset |
string | A named browser approximation: chrome, firefox, safari, curl. See TLS fingerprint |
groups |
string | Named groups / curves and their order, e.g. X25519:P-256:P-384. Empty leaves the default |
sigalgs |
string | Signature algorithms and their order, e.g. ecdsa_secp256r1_sha256:rsa_pss_rsae_sha256 |
ciphersuites |
string | The TLS 1.3 suites, which ciphers cannot reach |
alpn |
array | Ordered ALPN list, e.g. ["h2", "http/1.1"]. Only h2 and http/1.1 are allowed, because gori has to be able to speak whatever the origin selects |
session_tickets |
bool | false drops the session_ticket extension from the hello. Omitted = OpenSSL's default (on) |
ocsp_stapling |
bool | true adds the status_request extension, which browsers send and stock OpenSSL does not. Omitted = off |
Why min_version exists. gori cannot reach a TLS 1.0/1.1-only appliance with its default settings, and verify_upstream: false does not help, since it turns off certificate verification, not protocol negotiation. Crystal's TLS client context disables TLS 1.0 and 1.1 in its constructor, so lowering the floor here is the only way. A legacy appliance usually needs permissive: true as well, because distributions build OpenSSL at a security level that rejects the old cipher suites.
Why max_version exists. A floor alone cannot choose a version. Against an origin that also speaks TLS 1.3 (every modern one) the handshake lands on 1.3 however low the floor is, so min_version: "tls1.0" alone does not tell you whether the target still accepts TLS 1.0. ciphers does not apply either, because OpenSSL's cipher list governs TLS 1.2 and below only. Set both bounds to negotiate TLS 1.2 with AES128-SHA:
{ "host": "legacy.internal", "min_version": "tls1.2", "max_version": "tls1.2", "ciphers": "AES128-SHA", "permissive": true }
Pinning both to the same value offers only that version, so a handshake failure means the target does not accept it. A min_version above max_version is rejected at save time, because that pair offers no version and OpenSSL's error would name the origin, not the settings file.
Certificates are file paths, not inline material. A private key does not belong in settings.json, which is shareable and exportable (#439). A passphrase-protected key is rejected at save time, because OpenSSL would prompt for the passphrase on the terminal the TUI owns and gori would appear to hang. Decrypt it first with openssl pkey -in key.pem -out plain.pem.
The policy is looked up on the dialled host, not on an SNI override, because the Repeater's SNI field can name a different host for domain-fronting and vhost tests.
TLS fingerprint
With gori in the loop, the ClientHello an origin sees is gori's OpenSSL handshake, not the browser's. Anti-bot stacks fingerprint that handshake as a JA3 or JA4 and serve challenges or 403s to traffic that works in the browser. The fields above control it, and this command checks them:
gori settings tls-fingerprint
It prints the JA3/JA4 of the ClientHello gori sends to each destination, built from the same TLS context a dial builds. OpenSSL reports only what was negotiated, so this command is the way to verify these settings.
{
"outbound_tls": [
{ "host": "shop.example.com", "preset": "chrome" },
{
"host": "api.internal",
"groups": "X25519:P-256",
"sigalgs": "ecdsa_secp256r1_sha256:rsa_pss_rsae_sha256",
"ciphersuites": "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384",
"alpn": ["h2", "http/1.1"],
"ocsp_stapling": true
}
]
}
Presets are approximations. A preset fills in every value-level field a classifier reads: cipher list and order, TLS 1.3 suites, named groups, signature algorithms, the ALPN pair, and whether session_ticket / status_request appear. It does not reproduce a browser's JA3 byte for byte, and cannot:
- Extension order is OpenSSL's, and OpenSSL emits its own fixed order. JA3 hashes that order.
- GREASE (RFC 8701) placement is OpenSSL's. Both fingerprints strip GREASE values, but the positions a browser reserves for them are not the ones OpenSSL picks.
- Post-quantum key shares (
X25519MLKEM768), which current Chrome and Firefox offer first, are left out of the presets because they exist only on OpenSSL 3.5+, and a preset has to apply on older builds too. Add it to a rule's owngroupswhere your build has it. - SHA-1 signature algorithms, which Firefox and Safari still list last as legacy fallbacks, are left out for the same reason: Debian and Ubuntu ship OpenSSL with SHA-1 signatures disabled, and listing them would make the preset refuse to apply there. No modern origin selects one.
Compare the JA4_r lists the report prints, not the digests. They show which field is still wrong. A byte-exact match needs a TLS stack with control over extension order and GREASE (BoringSSL, rustls, uTLS). That is #822 phase 3, outside what these fields do.
A rule's own fields override the preset it names, so {"preset": "chrome", "groups": "P-521"} is Chrome's preset with your group list.
ALPN and the two legs. gori dials with different ALPN offers depending on what it is going to speak on that socket: h2 on a decrypted tunnel, nothing on a leg it will speak HTTP/1.1 on (the plain forward-proxy dial, the Repeater, WebSocket). A configured alpn list is used as written on the first, and has h2 removed on the second, because an origin that selected h2 there would leave gori writing HTTP/1.1 into an HTTP/2 connection. gori settings tls-fingerprint reports both legs.
An invalid groups, sigalgs, ciphersuites or alpn value is checked by handing the string to the same OpenSSL that would consume it. This table has no in-app editor (you edit the JSON), so the check runs at startup and names the rule, the setting and the consequence:
β settings: outbound TLS `groups` is not a group list this OpenSSL accepts: X25519:P-257 β the rule for api.internal; TLS dials to that destination will fail
The same line appears as a notification in the TUI. A bad rule affects only its own destination. Every other rule and the rest of gori still work.
This table is per DESTINATION, and a fingerprint A/B is not. "Does this endpoint answer differently as chrome than as curl?" is a question about one host, and editing a rule here between two sends changes the handshake for every other tab and background capture hitting that host at the same time. A Repeater tab (β£Pt) and a fuzz run (--tls-preset) can each name their own fingerprint, resolved at dial time without touching this table. See per-send TLS fingerprints. Such an override replaces the ClientHello shape only: the client_cert/client_key, min_version/max_version and permissive configured here still apply.
Inbound fingerprint spoofing (making the client's own handshake look like something else) is not in scope here. This section only shapes the connections gori makes.
layout
Per-area TUI layout prefs (command palette β Settings: Display, which edits this and display together). Omitted when every value is a factory default.
{
"layout": {
"history_preview": false,
"probe_preview": false,
"issues_preview": false,
"history_list_order": "newest",
"sitemap_expand_depth": -1,
"tab_numbers": true,
"tab_slots": true
}
}
| Key | Type | Default | Description |
|---|---|---|---|
history_preview |
bool | false |
History list page shows a bottom Req|Res preview for the selected flow |
probe_preview |
bool | false |
Probe list page shows a bottom summary of the selected issue |
issues_preview |
bool | false |
Issues list page shows a bottom summary of the selected issue |
history_list_order |
string | "newest" |
List sort: "newest" (newest at top) or "oldest" (oldest at top) |
sitemap_expand_depth |
integer | -1 |
How deep the Sitemap tree opens after reload: -1 = all expanded; 0-3 = expand only nodes shallower than this depth |
tab_numbers |
bool | true |
Paint 1:β¦9: before the nine slots on the tab bar: the positions the 1-9 jump keys answer to |
tab_slots |
bool | true |
Cap the tab bar at nine numbered slots: settings:tabs refuses a tenth, and a longer saved layout is truncated to its first nine (the rest stay reachable with 0). false restores the unbounded, βΉ βΊ-scrolling bar |
statusline
An opt-in extra row at the bottom of the TUI (Preferences β General β Statusline). When enabled, gori runs a shell command on an interval and renders its stdout as that row. It is a customizable status bar, inspired by Claude Code's status line. It is disabled by default, and the section is omitted from settings.json until you change it.
{
"statusline": {
"enabled": true,
"command": "date '+%H:%M'",
"interval": 3,
"timeout": 10
}
}
| Key | Type | Default | Description |
|---|---|---|---|
enabled |
bool | false |
Whether the statusline row is shown |
command |
string | "" |
Shell command, run via /bin/sh -c (cmd.exe /d /s /c on Windows). Its first line of stdout becomes the row. Blank means no row is reserved, even when enabled |
interval |
integer | 3 |
Seconds between runs (minimum 1) |
timeout |
integer | 10 |
Seconds one run may take before it is killed (minimum 1). May exceed interval |
The command's stdout is parsed for ANSI/SGR colour escapes (16-colour, 256-colour, and truecolor, plus bold/underline/etc.), so you can produce coloured segments. Only the first line is used. Output is truncated to the terminal width. It never blocks the UI.
timeout is separate from interval. Runs never overlap (gori launches the next one only after the previous has finished), so a script slower than interval refreshes as fast as it can. A run that exceeds timeout is terminated and the row reads β― (timed out).
Edits take effect immediately: saving a new command, interval or timeout re-runs the command on the next frame instead of waiting out the current interval.
The Statusline guide has the rest: the JSON context every run reads on stdin, commands to paste in with a picture of the row each one produces, and what the row says when a command fails.
display
Message-body and chrome prefs (command palette β Settings: Display). Omitted when every value is a factory default.
{
"display": {
"detail_pane": "request",
"history_time_format": "absolute",
"show_gutter": true,
"wrap_lines": true,
"preview_body_kib": 64,
"resource_meter": true,
"terminal_title": "project"
}
}
| Key | Type | Default | Description |
|---|---|---|---|
detail_pane |
string | "request" |
Which pane a freshly-opened History flow shows first: "request" or "response" |
history_time_format |
string | "absolute" |
History list time column: "absolute" (MM-DD HH:MM:SS, just HH:MM:SS on a narrow terminal) or "relative" (3s/5m/2h) |
show_gutter |
bool | true |
Line-number gutter on the message body views |
wrap_lines |
bool | true |
Soft-wrap a line too wide for a message pane onto continuation rows (the gutter numbers the first). false draws one row per line and scrolls sideways instead, following the caret |
preview_body_kib |
integer | 64 |
How many body bytes the History list preview reads (display only, not the capture limit) |
resource_meter |
bool | true |
CPU/memory readout for gori's own process, at the far right of the bottom bar |
terminal_title |
string | "project" |
Terminal window title: "project" β Gori - <project> - <tab>, "tab" β Gori - <tab>, "off" β gori never writes the title (leave it to your shell or tmux) |
hostname_overrides
Global dial map (project-level overrides win on collision). Same idea as /etc/hosts:
{
"hostname_overrides": [
{ "host": "api.prod.internal", "ip": "10.0.0.42" },
{ "host": "api.prod.example", "ip": "127.0.0.1:8443" },
{ "host": "v6.internal", "ip": "[::1]:8443" }
]
}
The value is an IP literal, optionally with a port: IP, IP:PORT, or [v6]:PORT. A bare IP keeps the port from the request URL, as entries written before ports were supported always did. The port goes beyond /etc/hosts, which is read by a resolver with no port to change. Use it to point https://api.prod.example/ at a local build on 127.0.0.1:8443 when the traffic comes from a real browser or a mobile app, where gori does not write the URL.
SNI, the certificate hostname and the Host header keep the original name. Only the TCP connect target moves.
Edit from Preferences β Network & Tabs β Network β Host overrides, or the Project tab for per-project entries. See Proxy & History.
env
Tokens like $ENV.TOKEN expand at send time in Repeater, Fuzzer, Miner, Intercept, CLI, and MCP (in captured or held bytes, only the tokens you typed):
{
"env": {
"syntax": "namespaced",
"prefix": "$",
"vars": [
{ "key": "TOKEN", "value": "eyJhbGciOiβ¦" }
]
}
}
| Key | Type | Default | Description |
|---|---|---|---|
syntax |
string | "namespaced" |
Token grammar: namespaced ($ENV.KEY env vars, $BIND.NAME session bindings, $GEN.NAME per-request generators) or bare ($KEY, $NAME, and no generators). Absence means the file predates namespaces. The next start adopts namespaced, re-spells the global rewrite rules (keeping a settings.json.pre-namespaced-<timestamp> copy) and writes the key. Every project re-spells its own stored tokens the first time it opens, with a backup beside the database. bare opts out and re-spells each project back. Switch with gori settings env-syntax |
prefix |
string | "$" |
The sigil that opens a token ($ENV.KEY), in either grammar |
vars |
array | [] |
Global key/value pairs. Project vars (Project tab β ENV) override on collision |
A running TUI or gori mcp server re-reads vars and prefix when another process changes the file, so a token rotated or deleted elsewhere stops going out without a restart.
user_agents
Your own list for $GEN.USER_AGENT and its family names. When set, it replaces the built-in browser list. Absent or empty means the built-in one:
{
"user_agents": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:156.0) Gecko/20100101 Firefox/156.0"
]
}
Each entry goes into a header verbatim, so an entry that is blank or carries a control or invisible format character is dropped on load, with a warning. $GEN.USER_AGENT_CHROME / _FIREFOX / _SAFARI draw from your lines of that browser (Chrome/, Firefox/, or Safari/ without either), and from the built-in family when you listed none. Edit it from Preferences β Editor & Keys β User-Agents, or with gori settings user-agents. Like env, a running TUI or gori mcp server follows a change made by another process without a restart.
general
Preferences β General β General:
{
"general": {
"clipboard_osc52": true,
"confirm_quit": false,
"repeater_record_history": true
}
}
| Key | Type | Default | Description |
|---|---|---|---|
clipboard_osc52 |
bool | true |
Copy through the OSC 52 terminal escape, so y reaches your local clipboard over SSH |
confirm_quit |
bool | false |
Ask before quitting |
repeater_record_history |
bool | true |
Write every TUI Repeater send into History as a flow (SRC column: RPTR). gori run repeater send --record-history and MCP send_request{record_history} keep their own per-call arguments |
notifications
How background jobs (Miner, Fuzzer, Probe, Discover) announce their results. Preferences β General β Notifications:
{
"notifications": {
"bell": false,
"toast": true,
"retention": 100
}
}
| Key | Type | Default | Description |
|---|---|---|---|
bell |
bool | false |
Ring the terminal bell when a background job produces a result |
toast |
bool | true |
Show a transient toast for the same events |
retention |
integer | 100 |
How many notifications the notification center keeps |
probe
{
"probe": {
"active_notify": "when-found"
}
}
| Key | Type | Default | Description |
|---|---|---|---|
active_notify |
string | "when-found" |
When an active scan notifies: "when-found", "always", or "off" |
discover
Saved defaults for a Discover run. Written only once you save the discover options, so the section is absent until then:
{
"discover": {
"containment": "scope-aware",
"max_depth": 4,
"concurrency": 20,
"spider": true,
"bruteforce": true,
"extensions": false,
"keep_alive": true,
"assets": false
}
}
| Key | Type | Default | Description |
|---|---|---|---|
containment |
string | "scope-aware" |
How far a run may wander: "same-origin", "scope-aware", or "host+subdomains" |
max_depth |
integer | 4 |
Spider depth cap |
concurrency |
integer | 20 |
Parallel requests |
spider |
bool | true |
Follow links found in responses |
bruteforce |
bool | true |
Brute-force paths from the wordlist |
extensions |
bool | false |
Also probe extension variants of each candidate |
keep_alive |
bool | true |
Reuse upstream connections across requests (the Keep-alive toggle in the Discover overlay). A file written before the key existed reads as true |
assets |
bool | false |
Also fetch images, fonts and media during the crawl |
mine
Saved Param Miner defaults, written only once you save the mine options:
| Key | Type | Default | Description |
|---|---|---|---|
locations |
array | [] |
Where to inject: query, form, multipart, json, headers, cookies. The locations checked when the Mine overlay opens, replacing its per-request auto-detection. One the request does not have is skipped. Until the section is saved, the overlay auto-detects per request |
concurrency |
integer | 10 |
Parallel requests |
notify |
string | "when-found" |
"when-found", "always", or "off" |
keep_alive |
bool | true |
Reuse upstream connections across requests (the Keep-alive toggle in the Mine overlay). A file written before the key existed reads as true |
scan_rules
Your own Probe match rules, global across every project. Project-scoped rules live in the project database instead. Edit them in Probe β Rules β CUSTOM:
{
"scan_rules": [
{
"id": "a1b2c3d4",
"title": "Internal hostname leak",
"description": "Build-server hostname in a response body",
"side": "response",
"region": "body",
"kind": "regex",
"pattern": "build-\\d+\\.corp\\.internal",
"severity": "medium",
"enabled": true
}
]
}
| Key | Type | Description |
|---|---|---|
id |
string | Random hex token assigned at creation |
title |
string | Finding title |
description |
string | Shown in the finding detail |
side |
string | request or response |
region |
string | whole, header, or body |
kind |
string | string, regex, or exec (an argv; see Process hooks) |
pattern |
string | Literal or regex to match, or the command to run when kind is exec |
severity |
string | info, low, medium, high, or critical |
enabled |
bool | Whether the rule runs |
Parsing is tolerant. An entry missing id, title, or pattern is dropped, and an out-of-range side / region / kind / severity falls back to the safest value rather than failing the load.
retention
How much captured history a project keeps.
{
"retention": {
"max_flows": 100000
}
}
| Key | Type | Default | Description |
|---|---|---|---|
max_flows |
integer | 100000 |
Keep at most this many newest flows per project. The oldest are dropped once the cap is passed. 0 = unlimited |
gori has always swept old flows so a project database stops growing. This section exposes the cap, which was previously a compile-time constant. The default is that old value, so nothing changes until you edit it.
The sweep runs on the capture path, amortized over every few thousand inserts, and cascades to a pruned flow's WebSocket messages and orphaned HTTP/2 frames. It writes one line to the log whenever it drops rows.
A project opened over its cap (the cap lowered later, a project captured with 0, an imported archive) says so on open, with how many flows the sweep will remove: the TUI in a toast and the notification centre, gori run capture and the gori run commands that can add enough flows in one run for the sweep to start (import, discover, fuzz --record-history) once on stderr. Nothing is gone yet at that point. The excess goes a chunk at a time as capture adds new flows, so to keep it, raise the cap and reopen the project before capturing.
Raising the cap takes effect on the next project open. Lowering it does not reclaim disk right away. Pruning frees pages for reuse inside the database file but does not shrink the file, so on-disk size drops only after a Compress from the project picker, which runs VACUUM.
Surfaces that do not own capture never prune, regardless of the cap: gori mcp's store, a project opened only to count its objects for a delete preview, and a freshly created project.
oast_providers
OAST providers defined once and reusable across every project. Project-scoped providers live in the project database instead. These are the global library, added in the OAST tab's provider overlay with its scope set to global.
{
"oast_providers": [
{
"id": "3f9a2c11",
"name": "team interactsh",
"kind": "interactsh",
"host": "oast.example.com",
"token": "β¦",
"enabled": true
}
]
}
| Key | Type | Description |
|---|---|---|
id |
string | Random hex token assigned on creation. Do not hand-edit |
name |
string | Label shown in the OAST tab |
kind |
string | Provider type: interactsh, custom-http, webhook.site, BOAST, or postbin |
host |
string | Provider host |
token |
string | Optional auth token for the provider |
enabled |
bool | Whether the provider is selectable (default true) |
The section is omitted until you add a provider. Entries missing id, name, kind, or host are dropped on load.
update
The startup update check behind the project picker's one-line "update available" notice. This is the only automatic outbound call gori makes. gori update installs only when you run it.
{
"update": {
"check_enabled": true,
"notified_version": "0.2.0",
"latest_seen": "0.2.0",
"checked_at": 1753600000
}
}
| Key | Type | Default | Description |
|---|---|---|---|
check_enabled |
bool | true |
Set false to skip the probe |
notified_version |
string | "" |
Latest version already surfaced, so the notice shows once per release |
latest_seen |
string | "" |
Last version seen from the release feed |
checked_at |
integer | 0 |
Unix seconds of the last successful check. Caches the result for a day |
The last three are state gori maintains. Only check_enabled is meant to be edited. The section is omitted on a default install.
fuzzer
Wordlists remembered by the Fuzzer's Payload overlay. This is scratch state, not project data. A list in the wordlist catalog is stored by its name (common.txt), or by its path when a file of that name in the working directory would shadow the name. An entry an older gori stored as the absolute path into the catalog reads the same. Any other path is kept as given.
{
"fuzzer": {
"recent_wordlists": ["/usr/share/wordlists/params.txt"],
"favorite_wordlists": ["/home/me/lists/api.txt"]
}
}
| Key | Type | Description |
|---|---|---|
recent_wordlists |
array | Most-recently-applied wordlists (catalog names, or paths), newest first, capped at 10 |
favorite_wordlists |
array | Wordlists starred in the Path field (catalog names, or paths), offered ahead of the recents |
Omitted until you apply or star a wordlist.
redaction
The safe evidence export profiles, which one is active, whether it applies without being asked, and the per-install placeholder secret.
{
"redaction": {
"active": "pci",
"default": true,
"salt": "β¦64 hexβ¦",
"profiles": [
{
"name": "pci",
"description": "cardholder data for this engagement",
"json_fields": ["card_number", "cvv"],
"json_pointers": ["/data/acct", "/users/-/token"],
"form_keys": ["cc"],
"patterns": ["account=(\\d+)"]
}
]
}
}
| Key | Type | Default | Description |
|---|---|---|---|
active |
string | "" |
Profile a safe export uses when the invocation names none. Empty = the built-in default |
default |
bool | false |
Sanitize shareable output without --redact. With it on, --no-redact returns the captured bytes |
salt |
string | minted | HMAC key behind every [REDACTED:<tag>]. Written once, on first use, and never shown in any UI |
profiles |
array | [] |
Named rule sets. A profile whose name matches a built-in replaces it |
Each profile carries name plus any of description, json_fields, json_pointers, form_keys and patterns. See run redact for what each kind matches. Parsing is tolerant: an entry with no usable name is dropped, and a rule entry that is not a non-empty string is skipped rather than failing the load.
The salt is a secret, kept beside env's token values on the same terms (the tree is 0700, the file 0600). A factory reset keeps it, because discarding it would break every placeholder in artifacts already written. A plain gori settings export carries it, so share gori run redact profiles --format json instead when you mean to hand over only the rules.
Project-scoped profiles live in the project database. See Per-Project Overrides.
rewriter, colormarker, saved_views and decoder
These four sections hold libraries. rewriter, colormarker and saved_views are the global rows of the Match & Replace rules, the History colour rules and the History views. A project keeps its own rows in its database and can override a global row's on/off state there. decoder holds the named Decoder chains. Create and edit them from their tabs or with gori run rewriter, gori run colormarker and gori run views and --scope global, which validate each row. What they write looks like this:
{
"rewriter": {
"next_rule_id": 3,
"rules": [
{
"id": 1, "enabled": true, "name": "no CSP",
"target": "response", "part": "head", "op": "remove_header", "match_kind": "literal",
"pattern": "Content-Security-Policy", "replacement": "", "host": "", "body_file": ""
},
{
"id": 2, "enabled": true, "name": "",
"target": "request", "part": "head", "op": "short_circuit", "match_kind": "literal",
"pattern": "/api/pay", "replacement": "", "host": "example.com", "body_file": "",
"respond": "fault", "respond_args": "{\"fault\":\"reset\",\"delay_ms\":500}"
}
]
},
"colormarker": {
"next_rule_id": 2,
"rules": [
{ "id": 1, "enabled": true, "name": "admin", "when": "path:/admin", "color": "teal", "style": "full" }
],
"colors": [ { "name": "teal", "hex": "#2aa198" } ]
},
"saved_views": {
"next_view_id": 2,
"views": [ { "id": 1, "name": "APIs", "query": "path:/api" } ]
},
"decoder": {
"chains": [ { "name": "myenc", "spec": "base64-encode > url-encode" } ]
}
}
A rewriter rule's fields map onto the gori run rewriter add flags:
| Key | Flag | Description |
|---|---|---|
id |
Global rule id. A project's override names the rule by this id | |
enabled |
--disabled |
The rule's default state. A rule with no enabled key reads as off |
name |
--name |
Label in the rule list |
target |
--target |
request or response |
part |
--part |
head, body or ws |
op |
--op |
replace, add_header, set_header, remove_header, short_circuit, pipe, json_set or json_remove |
match_kind |
--match |
literal or regex |
pattern |
--find |
What to match, or the JSON path for the json ops. A rule with an empty pattern is dropped when the file loads |
replacement |
--value |
Replacement text, header value, canned response, the pipe command, or the json_set value as JSON text |
host |
--host |
Host glob; empty applies everywhere |
body_file |
--body-file, --map-dir |
The file a short_circuit rule serves, or the directory it maps |
respond |
How a short_circuit rule answers: inline, file, dir or fault. Omitted when it is what body_file implies (file with one, inline without) and there are no respond_args |
|
respond_args |
--strip-prefix, --fallthrough, --fault, --delay, --hang |
A JSON object stored as a string, with strip_prefix, fallthrough, fault (close/reset/hang), delay_ms and hang_ms |
A colormarker rule carries when (the History QL condition, --when), color (red, orange, yellow, green, blue, purple, or the name of an entry in colors) and style (full tints the row, strip paints one cell). A rule with no enabled key reads as on, since a colour rule never touches traffic. colors is the custom palette gori run colormarker color add --name --hex writes, and an entry with a blank or duplicate name or an unreadable hex is dropped. A saved_views entry is an id, a name and a History QL query. A decoder chain is a name and the spec it runs. The Decoder tab's Save chain by name writes it.
next_rule_id and next_view_id only count up. A project's overrides refer to global rows by id, and a reused id would hand an old override to a new rule, so these counters survive deleting every rule and a factory reset. In a rewriter rule, a label this gori does not know (one a newer build wrote) is kept as written, not rewritten to a default, and holds the rule inert. An extra key does the same.
Other sections
| Section | Description |
|---|---|
theme |
Active theme name (default goridark). See the Themes guide |
mouse |
Mouse support toggle (on by default) |
mouse_drag |
What releasing a drag does: select (default) or copy |
pretty_bodies |
Pretty-print JSON/XML/etc. bodies in the detail view, and fold an HTTP/2 request's split cookie fields into one line (on by default, display only) |
editor |
External editor command and Markdown handling |
tabs |
Which TUI tabs are shown/hidden, in tab-bar order |
hostname_overrides |
Global host β IP dial map. See hostname_overrides above |
env |
Env-token grammar (syntax), sigil and global values. See env above |
user_agents |
Your own list for $GEN.USER_AGENT, replacing the built-in one. See user_agents above |
hotkeys |
Keybinding overrides (os layer + command_modifier + keyset + bindings). See the Hotkeys guide |
hooks |
External process hooks: timeout_secs (default 5, clamped 1-60) is the wall-clock budget one hook run gets at every seam. See Process hooks |
decoder |
Named Decoder chain specs, shared by every project and callable as a chain step by name (open sub-tabs live in the project database). See above |
rewriter |
GLOBAL Match & Replace rules, applied in every project, each with a default on/off state a project can override. See Global and project rules; the row shape is above |
colormarker |
GLOBAL History row-colour rules and the custom colour palette, with the same global/project split as rewriter. Display only: a colour rule never modifies traffic. See run colormarker; the row shape is above |
mine |
Saved Param Miner defaults. See mine above |
saved_views |
The GLOBAL History views library: named QL queries applied as a lens, with the same global/project split rewriter has. See run views; the row shape is above |
companion |
Miss Ring, the mascot: enabled (on by default), placement (body | bar), motion (lively | calm | still), notices and replies (hold | timed: whether an agent's reply stays until your next key or click). See the Settings guide |
layout |
History / Probe / Issues previews, History list order, Sitemap expand depth, tab-bar numbers and slots. See layout above |
statusline |
Bottom status row that runs a command on an interval. See statusline above |
redaction |
Safe-export profiles, the active one, the on-by-default switch and the placeholder salt. See redaction above |
display |
Default detail pane, list time format, line-number gutter, wrap_lines (soft-wrap long lines, on by default), preview body cap, resource_meter (the CPU/memory readout at the far right of the bottom bar, on by default), and terminal_title |
mcp |
Preferences βΊ AI βΊ MCP server: two switches for the gori mcp server. channels (off by default) enables the claude/channel push as a last resort, tried only when neither the inbox socket nor the Codex queue answered. Those two, the tool-result carry and the operator_messages poll always run. See Messages from gori. usage_log (off by default) records each tool call's name, argument names, outcome and size, never a value, for gori mcp --usage. See Usage Log |
mcp_permissions |
Preferences βΊ AI βΊ MCP permissions: the groups of gori mcp tools an attached agent may NOT use, as "<group>": false, or may use only with the operator's approval, as "<group>": "ask" (send, intercept, write, scope, projects, exec). Absent means every group is allowed. The object is the whole set, so a group it does not name is allowed (except scope beside a write set to false or "ask", read as denied because scope was split out of write; write "scope": true to keep it); an unknown key is kept. Read when gori mcp starts. See Permissions from Preferences |
mcp_features |
Preferences βΊ AI βΊ MCP features: the workbench tabs whose gori mcp tools are NOT served, as "<tab>": false (target, intercept, repeater, fuzzer, miner, oast, sequencer, decoder, jwt, cookie, comparer, rewriter, colormarker, probe, authorize, issues, evidence, notes). Absent means every tab is served. Only true turns a known tab on, so any other value reads as off; an unknown key set to false is kept. Read when gori mcp starts. See Features from Preferences |
Per-Project Overrides
A project can also carry its own redaction config under the redaction key: its own profiles, which one is active, and its own answer to "sanitize by default" (including an explicit false that turns a global default off for one engagement). It is written by gori run redact. Resolution is project, then global, then built-in, first match by name.
A project can pin its own network settings without editing the global file. These are stored in the project database (keys net.bind_host, net.bind_port, net.upstream_proxy, net.upstream_destination_host, net.upstream_auth, net.connect_timeout_secs, net.io_timeout_secs, net.capture_max_mib) and edited from the Project tab's Project settings sub-tab, or headless with gori run project network (list, get, set, unset), which also sets the request budget below. A project imported from a .gori archive (gori run project import) arrives with none of these keys and none of its project host overrides, so it starts on this machine's global network settings.
Destination host limits proxy routing to one case-insensitive host pattern. * is the default and makes every destination eligible. example.com covers that host and its subdomains, while *.example.com covers subdomains only. Domain, IPv4, IPv6, and *-based IP patterns are accepted. A non-match always goes direct and does not fall through to upstream_rules or network.upstream_proxy. This gate applies to every gori-owned dial while the project is active, including capture, replay, scanners, the updater, and OAST traffic.
To authenticate, choose an Upstream proxy protocol, enter the Proxy host and Proxy port, turn Proxy auth on, then enter Username and Password. SOCKS5 resolves destination names locally. SOCKS5H resolves them at the proxy. HTTP uses Basic authentication, while either SOCKS protocol uses RFC 1929 username/password authentication. NTLM is not supported. Turning authentication on always pins the displayed upstream address to the project, even when it was inherited from the global setting, so the credentials cannot later follow a changed global route or a destination rule.
The password is visible while the Password row is focused for editing and masked again when focus leaves. It is stored as plaintext inside the project's owner-only (0600) SQLite database, alongside captured engagement data that may already contain credentials. Use a global upstream_rules entry with password_env instead when the secret must not be stored in a project. For a matching destination, a malformed or orphaned project auth value fails closed before an origin connection.
The timeout and capture-limit keys are per project because they depend on the target. A slow internal appliance needs its own idle timeout, and a target returning very large responses needs its own capture cap, without raising either for every other project.
Request budget. outbound_max_rps and outbound_max_requests hold the ceiling an engagement agreed to across every gori-originated request on the project: Fuzzer, Miner, Sequencer, Discover, Repeater, retest, Probe's active checks and the rest, in every run and in every process (TUI, gori run, gori mcp) on the same project database. A run's own --rate still applies, and the slower of the two wins. A send waits for the rate. Once the total is spent, every further send is refused with project request budget spent. The count starts when outbound_max_requests is set, and unset resets it. Proxied browser traffic is never counted or delayed. Both keys are project-only (no global value) and are set with gori run project network.
Which surfaces apply which keys. The two bind keys only mean something where gori opens a listening socket. All other keys, including proxy authentication, apply wherever gori dials out or stores a body.
| Surface | bind_host / bind_port |
upstream / destination / auth / timeouts / capture limit |
|---|---|---|
TUI (gori) |
applied; the proxy listens on the pinned address | applied |
gori run capture |
applied; the only headless subcommand that listens (the pin wins over --listen/--port) |
applied |
every other gori run subcommand |
not applied; nothing binds | applied |
gori mcp |
not applied; the server never listens | applied |
Effective bind / upstream for an open project:
| Priority | Source |
|---|---|
| 1 (highest) | Project DB net.bind_host / net.bind_port / net.upstream_proxy / net.upstream_destination_host / net.upstream_auth / timeouts / capture limit when set |
| 2 | CLI --listen / --port (process-only override of the global layer) |
| 3 | settings.json network.* |
| 4 (lowest) | Factory defaults 127.0.0.1:8070 / direct |
Saving a Project-tab field that equals the current global value deletes that KV key, so the project keeps inheriting future global edits. Destination host has no global counterpart. Saving its default * deletes its project key. gori run project network set names one key, so it pins even a value equal to the global (unset is the way to inherit), and an empty upstream_proxy pins a direct route rather than inheriting.
Projects & Database
Each project keeps at most retention.max_flows flows (100,000 by default; see retention). Older ones are pruned. Each project is a SQLite database (via crystal-db / crystal-sqlite3) holding flows, WebSocket messages, scope rules, issues, match rules, HTTP/2 frames, repeater and fuzz sessions, host overrides, sitemap tags, miner sessions, and Probe issues, plus a full-text index over flow bodies. Stored request/response bodies are capped at network.capture_max_mib (2 MiB by default). Larger bodies are truncated in the database, but their true wire size is still recorded. Open any project's database directly with --db PATH. gori run and gori mcp also select a named project with --project NAME.