CLI

Options Reference

Every tunnel and webhook flag in one reference: responses, verification, forwarding, notifications, and local delivery.

Docs for LLMs

Flags for otterkit tunnel and otterkit webhook. For the other commands, see their own pages or run otterkit <command> --help.

Tunnels and webhooks#

FlagDescriptionDefault
--daemonRun in the backgroundoff
--ttl <duration>Auto-stop after e.g. 45m, 4h, 3d, or "never"24h
--subdomain <name>Use a stable URL, reserved to your account on first userandom name
--jsonPrint the result as JSON (requires --daemon)off

Tunnel only#

FlagDescriptionDefault
--host <host>Local host to forward to127.0.0.1
--logCapture requests to a local JSONL log for inspect and replayon
--no-logTurn off traffic captureoff
--auth <user:pass>Require HTTP Basic auth, checked locallyoff

Webhook: response#

FlagDescriptionDefault
--respond <status>Auto-response status200
--respond-body <data>Auto-response body{"received":true}
--respond-content-type <type>Auto-response Content-Typeapplication/json, or guessed from the body
--respond-header <name:value>Extra response header (repeatable, max 16)none
--respond-delay <ms>Delay before answering, max 100000
--respond-match <k=v>Make the --respond* flags a conditional rule (repeatable)off
--respond-script <code|@file>Compute the response per request in a sandboxed isolateoff

Webhook: verification and inbox#

FlagDescriptionDefault
--verify <provider:secret>Check each request's provider signature on arrival (16 providers)off
--verified-onlyRules created by this command fire only on valid signatures (needs --verify)off
--emailAdd an inbox at <subdomain>@otterkit.appoff
--claim <code>Continue a webhook started on the /try pageoff

Webhook: forwarding#

FlagDescriptionDefault
--forward <url>Deliver matching requests to this URL, signed, with retriesoff
--match <k=v>Filter for --forward: method=, path=, or a JSON dot-path (repeatable)all requests
--forward-transform <tpl>Deliver a rendered template instead of the raw capture (@file reads from disk)JSON envelope
--forward-script <code|@file>Run JavaScript per match in a no-network isolate (50 ms CPU). The return value is the body; null skips. Cannot combine with --forward-transformoff
--forward-content-type <type>Content-Type of the transformed deliveryapplication/json

Webhook: notifications#

FlagDescriptionDefault
--notify-emailEmail on arrivals, at most 1 per 15 minutesoff
--notify-match <k=v>Email when a matching request arrives (repeatable)off
--notify-push [k=v]Push to your enabled devices, at most 1 per minute per rule (repeatable)off

Webhook: local delivery#

FlagDescriptionDefault
--deliver <target>Mirror every capture to a local port, host:port, or URLoff
--deliver-exec <cmd>Run a shell command per capture: body on stdin, metadata in OTTERKIT_* variablesoff