Command line

The Windows installers put it in a cli folder inside the install folder and can add that folder to the PATH. Each release also includes gostman-cli-<os>-<arch> archives with a single gostman binary. With Go installed, go install github.com/kunalgoesbyken/gostman/cmd/gostman@latest installs it, and go build ./cmd/gostman builds it from a checkout.

On this page

On macOS the binary is not notarized: run xattr -d com.apple.quarantine gostman once.

gostman run printing one line per request with its method, name, status, time and checks, the resolved URL under it, and a summary

Commands

Terminal
gostman run orders-api --env CI --var-from-env API_TOKEN --reporter junit --output report.xml
gostman flow run Checkout --workspace orders-api --env CI
gostman send --workspace orders-api "Create user" --select '$.id'
gostman mock orders-api --port 4010
gostman capture --upstream https://api.example.com --workspace orders-api
gostman docs orders-api --output docs.html
gostman import postman_collection.json --out orders-api
gostman export orders-api --format openapi --out openapi.json
  • run takes a workspace folder, a Gostman export or a Bruno collection folder (converted in memory, see Coming from Bruno); a file from another tool, such as a Postman collection, is named by its format with the next step, gostman import <file> --out <folder>. It sends every request in order with its scripts, extraction rules, cookies, OAuth 2.0 tokens and checks. It exits 0 when everything passed, 1 when a check failed, 2 when the command or input is wrong and 3 when a request got no response; see Exit codes. A 4xx or 5xx status alone is not a failure; add a check such as res.status equals 200. Under each request the text report prints the URL that was sent, with variables filled in and secrets shown as {{name}}: values of variables whose names look secret (such as apiKey or password), values read from secret managers, OAuth 2.0 tokens and query parameters with such names. The JSON report keeps the URL as written in url and adds the sent one as resolvedUrl; the HTML report shows both. Requests run in the order the sidebar shows, where requests and subfolders share one order in each folder, and a setNextRequest loop stops after a pass has sent 1000 requests more than it holds; see Run requests.
  • flow run runs a flow of a workspace or export by its name, its id or its YAML file, and flow list prints the flows; see Flows.
  • send sends one saved request, named by its id, its name or its full Folder/Name path, or an ad hoc one (gostman send GET https://example.com -H 'Accept: application/json'; a curl command is refused with a message, because send takes a method and a url: put the command in a file and use gostman import <file> --out <folder> first), and prints only the response body on standard output, or only the selected value with --select, so gostman send "Users/Get user" --select '$.id' | xargs ... works; the short JSON summary and any warnings go to standard error. With --json standard output gets a single JSON document instead, with the body in body.text and its encoding (utf8, or base64 for binary bodies) in body.encoding, so the output can go straight into jq: gostman send --json GET https://example.com | jq -r .body.text. -d or --data gives an unsaved request a body, --select '$.path' prints only that part of a JSON body, --max-body n prints at most n bytes of the body (default 8192), and --include-headers adds the response headers to the summary. Secret values in the output are shown as {{name}}, the same ones run --redact hides (see Variables), including a secret that a script or extract rule of the request stored, such as a login token; other values, such as baseUrl in the resolved URL, stay readable. --reveal prints secrets as they are, so TOKEN=$(gostman send Login --select '$.token' --reveal) hands a token to the next command; anything that can read the output, such as a CI log, then sees the secret, so keep it out of logs and never give it to a coding agent.
  • mock serves the saved examples of a workspace on 127.0.0.1 (a request picks another example of its route with the x-mock-response-name or x-mock-response-code header, see Examples and the mock server); --openapi spec.yaml|url serves a spec's operations instead or as well, --delay, --delay-max, --error-rate and --error-status add latency and failures, and --log prints each request's headers and body with credentials masked. --port sets the port (default 4010) and --env name picks the environment for {{variables}} in URLs; a variable in the path matches any value. --cors answers browser pages served from localhost, and --cors-origin https://app.example.com (repeatable) allows another exact origin.
  • capture forwards everything sent to 127.0.0.1:4020 on to one API, prints each call, and with --workspace saves each new method and path as a request with its response as an example. --port changes the port and --folder name saves into that top-level folder of the workspace. --rules file.yaml applies capture rules (only from the file you name; a workspace's own .gostman/capture.yaml is never read, since rules can send traffic to another host), and --har out.har writes the captured calls as a HAR 1.2 file when you press Ctrl+C; Authorization, Cookie and Set-Cookie values show as *** in it.
  • load sends one saved request many times and reports latency and errors; see Load testing.
  • scan looks for secrets in a workspace or export; see Secret scanner.
  • lint checks an OpenAPI spec for problems; see Linting an OpenAPI spec.
  • diff compares two OpenAPI specs and lists breaking changes; see Comparing two OpenAPI specs.
  • negative sends altered copies of the saved requests and reports answers that look wrong; see Negative tests.
  • fuzz sends inputs derived from the schemas of an OpenAPI spec and reports 5xx answers, timeouts and contract violations; see Fuzzing from an OpenAPI spec.
  • docs writes the collection as one self-contained HTML page, to stdout or to --output file. --title sets the page title (default API documentation), --no-examples leaves out saved example responses and --playground adds a Try it panel, --logo and --accent brand the page, and --versions or --all-tags build one page per Git version; see Generated documentation.
  • relay lets the web app send its requests from your computer; see Local relay for the web app.
  • serve serves the web app and its proxy from your own server; see Self-hosted web app.
  • import and export convert a workspace from and to other tools' formats; see Import and export.
  • init [folder] creates an empty workspace and prints how to import a collection into it and run it, and how to register gostman mcp with a coding agent, using the workspace's absolute path. gostman import <file> --out <folder> accepts a workspace that init has just created. When the folder already holds other files, such as a repository root, the workspace goes in a gostman folder inside it; nothing is overwritten. --skill also writes the Gostman Agent Skill to .claude/skills/gostman/SKILL.md. --ci github|gitlab|azure|circleci|bitbucket also writes a starter pipeline in the current folder, never over an existing file; see Starter pipelines and pre-commit.
  • mcp serves a workspace to a coding agent; see Use from a coding agent.
  • changes [folder] lists what agents saved in the workspace, oldest first, from .gostman/changes.jsonl. --since 5m sets how far back to look (default 1h), --mine --session NAME keeps one session's changes (GOSTMAN_SESSION supplies the name) and --json prints the entries with a summary line each; see Safety.
  • history lists the runs saved by --every and --record, with the pass rate and each request's failures and 50th and 95th percentile duration; see Scheduled runs.

Flags for run and send

gostman help lists every command and flag; gostman help run or gostman run --help shows one command.

Variables

--var name=value sets a variable and --var-from-env NAME reads it from the environment, so secrets stay out of the files. A {{name}} that nothing defines is sent as written; run (at the first request that uses it) and send print a warning: line on standard error that names it, and the output of send lists it under unresolved. Values given on the command line win over every variable saved in the collection, a request's own Vars included, such as the path parameters an OpenAPI import fills in: --var id=7 sends /pets/7 even though the request saves id: 0. Each send starts afresh: variables extracted by an earlier send are not kept, so pass them with --var or use run. --redact replaces the secret values in a report with {{name}}: variables marked secret, variables whose names look sensitive (such as token, password or api_key), values read from a secret manager, values passed with --var-from-env or read from --env-file, OAuth 2 tokens, credentials in auth settings and headers, and cookies. Other values, such as baseUrl, stay readable, so the resolved URL under each request is still useful. Values passed with --var are not treated as secret; pass secrets with --var-from-env or --env-file.

Environments

--env name picks the environment; without it, run, send, load and mcp use the first environment of the collection. In an export from the app, an environment can belong to one collection (a top-level folder, see Environments per collection), and each request uses its own collection's environment, as in the app. Without --env, that is the collection's first own environment, or the first shared one for a collection without its own. --env Local picks each collection's own Local, or the shared Local for a collection without one; if a collection that has environments of its own has neither, the run stops before sending anything and names it. With --folder, run uses one environment for the whole run, chosen from the shared environments and those of that folder's collection (the collection's first without --env); --env "Orders API/Local" names one environment of one collection. When two environments in the same place have the same name, for example after importing the same environment twice, --env stops and lists their ids; rename one of them. An environment that inherits from another gets its parents' variables first (see Inheriting from another environment); if its chain is broken (a loop, a missing parent, more than 5 levels of parents, or a parent from another collection), the run stops before sending anything and the error names the environment and the link.

Secret managers

An environment variable can read its value from HashiCorp Vault (KV 1 and 2), AWS Secrets Manager, Azure Key Vault, Google Cloud Secret Manager, 1Password, Bitwarden or Bitwarden Secrets Manager. The collection stores only a reference (connection name, path, field, version); the connection is yours. Connections named vault, aws, azure or gcp read the standard variables: VAULT_ADDR, VAULT_TOKEN (or VAULT_ROLE_ID with VAULT_SECRET_ID), VAULT_NAMESPACE; AWS_REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN; AZURE_KEYVAULT_URL with AZURE_ACCESS_TOKEN or AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET; GOOGLE_OAUTH_ACCESS_TOKEN (for example from gcloud auth print-access-token) and GOOGLE_CLOUD_PROJECT. Connections named onepassword, bitwarden or bitwarden-secrets run op, bw or bws and read OP_SERVICE_ACCOUNT_TOKEN and OP_ACCOUNT; BW_SESSION; BWS_ACCESS_TOKEN and BWS_SERVER_URL. GOSTMAN_SECRETS_<NAME>_COMMAND says where the tool is when it is not on the PATH. A connection named after its kind is used only when at least one of its variables is set; otherwise declare it with GOSTMAN_SECRETS_<NAME>_KIND. KeePassXC connections only work in the desktop app. Another name such as prod-vault is set up with GOSTMAN_SECRETS_PROD_VAULT_KIND=vault plus GOSTMAN_SECRETS_PROD_VAULT_ADDRESS, ..._TOKEN and so on. Secret references are only read when the run opts in with --secrets (credentials from the process environment) or --secrets-env-file secrets.env (the same variables from a KEY=value file; the process environment wins), so a collection you did not write cannot use the credentials of your shell or CI job. A reference that cannot be read stops the run before anything is sent. Values are replaced in --redact reports and in send and mcp output. Even with the flag, a collection chooses which paths are read, so only pass it for collections you trust. The apps resolve references in the desktop app only, from connections set up under Secret managers; the web version cannot reach them.

Reading files

--allow-files lets {{$file(path)}} and {{$fileBase64(path)}} read files for run, send and load; paths start at the workspace folder or the folder of the export file, or the current folder for a request given as a method and a URL, and cannot leave it. It is off by default, so a collection you did not write cannot send your files. See Reading files.

Data-driven runs

--data users.csv (header row, UTF-8, quoted fields may hold commas and line breaks) or --data users.json (an array of objects) or --data users.xlsx (first sheet, header row) runs the whole collection once per row. A row's columns become variables that win over request, folder and environment variables and over --var; every value from a CSV is text. iteration (from 1) and iterationCount are set for scripts and {{iteration}} in requests. --iterations n repeats a run n times, or uses only the first n rows. Values that scripts and Extract rules write carry over to the next iteration, as in the app and in Postman; only the row's own columns change from one iteration to the next.

--row-label case names each iteration in every report by that column of its row, so a failed check reads Login [iteration 3: expired token] in the text, JUnit, Markdown and HTML reports instead of only the number, and the JSON report adds label. Line breaks, runs of spaces and control characters in the value become one space, and a row with the column empty keeps only its number. The column must exist in the data file. Label with a column that holds a description, not a secret: --redact hides the label only when its value is also a secret it knows. Monitor records (--every, --record) and their webhooks scrub the label like the rest of the record.

--row 3 reruns only row 3 of the data file (row 1 is the first row after the header), and --row 3,7 or a repeated --row runs several, in file order. Each keeps the iteration number and the iteration and iterationCount it had in the full run, so the report names match the failing run and the row's requests are sent the same way. Values that earlier rows' scripts or Extract rules wrote in a full run are not there, so a row that depends on them needs its rows before it as well. --row needs --data and cannot be combined with --iterations; a row number the file does not have exits 2.

Parallel runs

--parallel n sends up to n requests of an iteration at once; iterations run one after another, as in the app's runner. Requests that run side by side see a value another one wrote only if it finished first, so use it for independent requests, and a script cannot change the order (setNextRequest with a name stops the run; setNextRequest(null) still ends the iteration). Variables, cookies and OAuth 2 tokens are shared between workers, and a token is fetched once.

Tags

--tags smoke,api runs only requests that have at least one of the tags (a request also has the tags of the folders it is in), and --exclude-tags slow skips requests that have any of them. Both take a comma list and can be repeated, ignore case, and combine with --folder and --only: a request runs only when it passes every filter. When nothing is left, the run exits 2.

Reports

--reporter text|json|junit|html|markdown, or format:file to write that report to a file. Repeat it to write several reports in one run: --reporter text --reporter junit:report.xml --reporter html:report.html. At most one reporter can go without a file, and it prints to stdout; when every report goes to a file, the text summary is printed. --output file names the file of the reporter given without one, so --reporter junit --output report.xml works as before. --reporter html:report.html writes one self-contained page with a summary, every request's timing, checks, request and response, and a filter for failures; response bodies are included, so add --redact before sharing it. --reporter markdown:summary.md writes the counts and every failed check as Markdown for a CI job summary or a pull request comment. The desktop and web runner dialogs take a data file and a parallel count the same way and can download the same report. Colour is off when NO_COLOR is set or the output is not a terminal.

One run writing a text summary to the terminal, a JUnit file and an HTML report

Contract checks

--contract openapi.yaml (a file or an http(s) address) checks every HTTP response of the run against the spec: the status is documented for the operation with the same method and path, the content type is documented for that status, and a JSON body matches the response schema. Each check is reported like any other check, named like Status 200 is documented for GET /pets/{id}, with "kind": "contract" in the JSON report, so a mismatch fails the run; the text summary adds a Contract line. A response whose path matches no operation gets a warning line instead of checks. Without the flag, runs are unchanged. The app runs the same checks for folders linked to a spec; see Contract checks.

Snapshot checks

A request with a matches snapshot check (see Checks) compares the response with the stored copy on every run, in the app's Runner and in gostman run. gostman run shop --update-snapshots replaces the stored value of each snapshot check that failed with what the response returned, writes the request files of the workspace folder, and passes those checks in that run; it prints updated 2 snapshots in shop to stderr. Ignored paths and the ignore-order setting are kept, and ignored values, fields with credential-like names and token-like strings are not written. Before writing, the content is checked against every secret value the run knows (variables, secret marks, sign-in tokens, data-file values, values captured while it ran); if one is found, nothing is written and the command exits with status 2. With this flag the report is redacted as with --redact. Review the change with git diff before committing. The flag needs a workspace folder; it exits with status 2 for an export file or a flow.

OpenAPI coverage

A response key of the spec that is not a three-digit code, 1XX to 5XX or default is left out of the contract and of the coverage, and a warning names it.

With --contract, the report also says how much of the spec the run exercised. An operation counts as covered when at least one response came back for a request that matches it, and each status the spec documents for it counts as covered when a response with that status came back (a 2XX or default entry is matched the same way as in the contract checks). The text summary gets a line such as Coverage 7 of 12 operations (58.3%), 10 of 25 documented responses (40.0%).

  • --coverage also lists the operations that were not called and the documented statuses that never came back.
  • --min-coverage 80 fails the run with exit status 1 when fewer than 80 percent of the operations were called, and prints gostman: operation coverage is 58.3% (7 of 12 operations), below the required 80.0% to stderr. The percentage counts operations, not statuses.
  • Both flags need --contract and exit with status 2 without it.

The JSON report has a coverage object (operations and responses with total, covered and percent, and one entry per operation with its documented statuses), every result names its operation, the HTML report has an OpenAPI coverage section, and the JUnit report carries the totals as openapi.operations.* and openapi.responses.* properties on the first test suite. Responses of gRPC, MCP and other non-HTTP requests are not counted.

Proxies and certificates

run, send, load and mcp take --cacert ca.pem (PEM or DER, trusted as well as the system's certificates; repeatable), --client-cert cert.pem --client-key key.pem (presented to every host), --client-cert client.p12 or a PEM file that holds the key (no --client-key), --client-cert api.example.com=cert.pem,key.pem or api.example.com=client.p12 (presented to that host only; *.example.com covers subdomains; repeatable), --client-cert-pass-env NAME (the passphrase of encrypted keys and PFX/P12 files, read from that environment variable), --proxy http://user:pass@proxy:8080 (http, https or socks5) and --noproxy localhost,*.internal.example.com (hosts that skip --proxy), --resolve api.example.com:443:203.0.113.10 (connect that host and port to that address; repeatable) and -4 or -6 (IPv4 or IPv6 only). Without --proxy, the standard HTTPS_PROXY, HTTP_PROXY and NO_PROXY variables are used; Go never sends localhost or 127.0.0.1 through them. A workspace folder's network section in gostman.yaml is applied first and the flags win over it; see Network settings for a collection. The same settings apply to gRPC, OAuth 2 token requests and sendRequest in scripts. A missing file, a file that is not a certificate, or a wrong or missing passphrase exits 2 before anything is sent.

OAuth 2 sign-ins

The authorization code and device code grants need a person in a browser, so run, send and mcp cannot get their first token. Pass one with --oauth-token-env NAME (an access token) or --oauth-refresh-token-env NAME (a refresh token that the run exchanges at the request's token URL, with its client ID and secret). They are used for every request with those grants that has no token yet (for mcp, also by the agent's requests, with the tokens hidden from it like any credential), are kept in memory only and are never written to a workspace file. Client credentials and password grants fetch their own tokens as before.

Other run flags

--only "Folder/Name" (name, id or path, repeatable), --bail, --delay ms, --timeout ms, --env-file .env (KEY=value lines, --var wins; also for send, load and mcp; its values count as secret for --redact), --stream-timeout s (time budget for each streaming (SSE) request, default 10 seconds) and --insecure, which is off unless you pass it.

Flows

Terminal
gostman flow list --workspace orders-api
gostman flow run Checkout --workspace orders-api --env CI --reporter junit:flow.xml
gostman flow run orders-api/flows/checkout.yaml --env CI --var-from-env API_TOKEN
gostman run orders-api --flow Checkout --env CI

flow run takes every flag of run except the ones that choose or repeat requests (--folder, --data, --iterations, --row, --row-label, --parallel, --only, --tags, --exclude-tags, --bail and --delay, which exit with status 2). --workspace names the workspace folder or export file; without it, the current folder is used, or the workspace that holds the flow file. gostman run <workspace> --flow <name> does the same. flow list prints each flow with its number of steps and id, and --json prints them as JSON.

The text report adds a FLOW line for every step that sends no request, and a request that failed but that the flow handled, by trying again or going to another step, is printed in yellow with the reason. The steps of a flow run by a Run flow step are indented under it. The exit status follows the outcome of the flow, see Exit codes; the JSON report adds a flow object with the outcome, its message and every step in order, with the steps of a nested flow under the step that ran it. See Flows for the steps and the file format.

gostman flow run executing the Check todos flow: a retried request, the steps of a loop, a failed check with the value that was found, and the reason the flow failed

Scheduled runs

Terminal
gostman run orders-api --env Staging --every 5m --notify-env SLACK_WEBHOOK
gostman flow run Checkout --workspace orders-api --every 1h --times 24 --reporter json:latest.json
gostman history orders-api
gostman history orders-api --target Checkout --json

--every <duration> makes run and flow run repeat on an interval of one second or more (30s, 5m, 1h) until you press Ctrl+C. Each run prints one line instead of the full report: the time, the number of the run, PASS or FAIL, and the counts. A --reporter with a file, such as json:latest.json, is written again after every run, so the file always holds the latest one; a reporter without a file prints its whole report each time. The next run starts when the interval has passed since the last one started, or at once when a run took longer. The collection is read again before every run, so edits to the files are picked up. --times <n> stops after n runs and --until-fail stops at the first run that fails.

The exit status is the worst of the runs: 3 when a request in any run got no response, else 1 when any run failed, else 0. Ctrl+C ends the loop, drops the run in progress and exits with that status, so a monitor that was stopped after passing runs exits 0. Wrong flags exit 2 before anything is sent.

History. With --every, every run is saved to a history unless you pass --no-record; --record does the same for a single run. A run's file holds its time, target, counts, duration, and for each request its status, duration, error and the messages of failed checks. It holds no response bodies, query strings are cut from URLs in messages, and every value the run knew as a variable, a data file row, a sign-in token or something a script or extract rule stored is replaced with {{name}}. With --redact, a run that is also saved or posted hides every variable value in its report, not only the secret ones, because the history is cleaned the same way. If that cleaning cannot be set up, the run exits with an error and nothing is saved or sent. In a workspace folder the files are in .gostman/runs/, which keeps itself out of Git with a .gitignore of its own (gostman init and new workspaces also list it in the root .gitignore, which is never changed otherwise); for an export file or a Bruno folder they are in a Gostman/runs folder of your user configuration directory. --keep <n> keeps the last n runs (default 200). gostman history [workspace] prints the latest runs, the pass rate and a table of every request with its runs, failures, p50 and p95 duration; --target limits it to one flow or --folder, --limit n to the last n runs, and --json prints the trend with the saved runs.

Responses in the app. --keep-responses (on run, flow and send) hands every response, with its status, headers, body, timing and the request that was sent, to the desktop app on the same machine, which lists it in History and in the response panel of the request, labelled with the command. They are written to the responses/inbox folder of the app's data folder (%APPDATA%\Gostman on Windows, ~/.local/share/Gostman elsewhere), never to the workspace, and follow the app's limits from Preferences (by default the last 10 per request and bodies up to 2 MB). Each is kept as the command showed it: send, run --redact and flow --redact hide secret values and credential headers, send --reveal and plain run and flow keep the values they print. The app drops the scripts, OAuth sign-in, local commands and file reads of the requests that arrive this way. gostman mcp does this by default; see Use from a coding agent. Without the flag, nothing is kept.

Notifications. --notify <url> posts a JSON summary when a run fails, and --notify-env NAME reads the address from an environment variable, which keeps it out of the shell history and the process list. The address is a secret: it is never printed, and an error about delivery does not repeat it. Slack incoming webhooks (hooks.slack.com), Microsoft Teams (*.webhook.office.com, and the Workflows addresses under logic.azure.com) and Discord webhooks get the message shape their service expects; any other address gets the plain JSON below. With --every, one message is sent when a run starts failing and one when it passes again, not one for every failing run; --notify-on always also sends passing runs. The post is made once, with a ten second limit, redirects are not followed, and the --proxy and certificate flags apply. A message that could not be delivered is a warning and does not change the exit status.

JSON
{
  "event": "run.failed",
  "target": "orders-api",
  "kind": "run",
  "startedAt": "2026-11-02T04:13:40Z",
  "durationMs": 20,
  "passed": false,
  "requests": 2,
  "failedRequests": 1,
  "failedChecks": 1,
  "failures": [{ "request": "Flaky", "checks": ["is 200: expected response to have status 200 but got 500"] }]
}

event is run.failed, run.passed or run.recovered. For when to use this and when to use cron or a CI schedule, see Scheduled runs and cron.

Exit codes

run, flow run and send exit with:

Code Meaning
0 every request and check passed
1 a check, a script or an MCP tool call failed, or the run was interrupted
2 the command or the input is wrong
3 a request got no response: it could not be sent, the connection failed or timed out

For a flow, 0 means it reached its end or an End step marked passed, and a failure the flow handled does not count; 1 also covers an End step marked failed and a flow stopped by its request limit, and 3 means the request that failed the flow got no response. A run with both kinds of failure exits 3. Scripts that only test for a non-zero code keep working. load, scan and lint exit 1 when their threshold is reached and 2 on wrong input.

gostman run exiting with 1: the failed check is listed under its request with the value that was found

Load testing

gostman load sends one request many times at once and reports throughput, latency percentiles (p50, p90, p95, p99), status codes and error samples. Only target systems you own or have permission to test.

Terminal
gostman load orders-api --request "Orders/List" --concurrency 20 --duration 30s
gostman load --concurrency 50 --requests 5000 GET https://example.com/health
  • --concurrency n (default 10, at most 500), --duration 30s (default 10s unless --requests is set; at most 10m) or --requests n (at most 1,000,000), --rps n to cap the rate and --ramp 5s to start workers gradually.
  • --fail-status 400 counts that status and above as failed (default 500), and --reporter json prints the result as JSON instead of text.
  • --threshold 'p95<300' and --threshold 'errors<1%' (repeatable) set k6-style pass or fail thresholds on min, avg, med, p50, p90, p95, p99, max, errors, failed and rps, with <, <=, > or >=; each result is printed and is in the JSON report as checks. See Threshold expressions.
  • --stages 10s:5,30s:20,10s:0 changes the number of workers over time. Each pair is a duration and the number of workers to reach, moving in a straight line from the previous target (zero at the start). It replaces --concurrency, --duration and --ramp, which are refused with it.
  • --max-p95 500ms and --max-error-rate 1% are shorthand for --threshold p95<=500ms and --threshold errors<=1%; the command exits 1 when a threshold is breached. Exit 1 also follows an interrupt and a run in which no request succeeded; 2 means bad input.
  • Dynamic variables such as {{$guid}} are generated again for every request. Pre-request scripts and checks are not part of a load test, and cookies are not shared between workers.
  • Load testing is not available in the web version, so the hosted proxy cannot be used to generate load.

Secret scanner

gostman scan <workspace | export.json> looks for credentials typed into requests, environments, scripts and saved examples: well-known token formats (AWS, GitHub, Slack, Stripe, Google, private keys, JWTs), random-looking values in fields named like a credential, and literal passwords or tokens in auth settings. Values written as {{variables}} and placeholders are ignored.

Terminal
gostman scan orders-api --fail-on high
  • Findings are listed high before medium, then by location. Each shows at most the first four characters of a value, never the value, plus a short fingerprint that stays the same between runs.
  • --reporter text|json, --fail-on high|medium|none (default medium; exit 1 when a finding is at or above it) and --skip-examples.
  • It is a heuristic. It can miss a token glued to other characters, a human-chosen password that does not look random, and files outside the collection such as .env. A clean scan is not proof that nothing is exposed.
  • The desktop and web apps have a Scan for secrets command, the Share tab warns before you create a link or file when something is found, and the Export tab shows a notice.

gostman scan reporting that it scanned three requests, one folder and two environments and found nothing

Negative tests

gostman negative <workspace | export.json> sends altered copies of the saved HTTP requests and reports answers that look wrong. It is a basic checker that catches common mistakes, not a penetration testing tool, and it does not replace one.

Terminal
gostman negative orders-api --env Staging --allow-host staging.example.com --rate 2

For each request it sends:

  • no credentials, and invalid credentials, when the request or one of its folders uses auth or the request has an Authorization header;
  • for a JSON body: truncated JSON, each top-level field removed, each field with the wrong type, numbers set to 0, -1, 2147483648 and 1e308, text fields that are empty or 10000 characters long, and a body of 1 MB;
  • SQL injection, script, path traversal, header injection and expression strings in each text field of a JSON body and in each query parameter.

Findings: accepted (a 2xx or 3xx where a rejection was expected; high for credentials, medium for wrong types, malformed and oversized bodies, low for a removed field, which may be optional), server-error (5xx), stack-trace and sql-error (the body shows one), and reflected (an injected string comes back unchanged). Findings are hints to review, and an API can accept an input on purpose.

Requests are sent for real, so run it against a test or staging environment. Only localhost and loopback addresses and the hosts named with --allow-host (repeatable) are contacted; a request to any other host gets no response and is counted as not sent. The default rate is 5 requests a second (--rate) and a run stops after 300 requests (--max-requests). --only and --folder limit it to some requests. The app has the same checks in Negative tests; see Negative tests. Agent sessions (gostman mcp) have no tool for it. --reporter json prints the findings as JSON. The command exits 1 when a finding has the severity of --fail-on (low, medium by default, high or none) or higher, 2 for wrong input, 0 otherwise. Variants are built from the saved requests, so requests created from an OpenAPI spec are covered through their saved bodies and parameters.

Fuzzing from an OpenAPI spec

Terminal
gostman fuzz openapi.yaml --base-url http://localhost:8080 --seed 7 --max 300

gostman fuzz <spec file | address> reads an OpenAPI 3.x or Swagger 2.0 document and builds inputs from its schemas for every operation: one valid input, boundary values (the minimum and maximum, lengths and item counts at their limits, empty and very long text, 32-bit and 64-bit integer limits) and invalid ones (a wrong type, null, a value outside an enum, a malformed date-time, email or uuid, a number past a limit, a missing required parameter or property, an unexpected property when additionalProperties is false). Path, query and header parameters and JSON request bodies are covered; other body types are not.

Each input is sent to --base-url (default: the first server in the document). Findings: server-error (a 5xx, high), timeout (no answer within --timeout, default 10 seconds, medium) and contract (the answer breaks the response schemas or documented status codes of the document, medium). The same --seed (default 1) gives the same requests, so a finding can be reproduced; --per-operation (default 25) bounds the inputs for each operation and --max (default 200) the whole run. --only "GET /pets/{id}" limits the run to operations (repeatable). Variables the document's security schemes need, such as {{token}}, come from --var and --var-from-env; their values are masked in the output.

Like Negative tests, requests are sent for real, only localhost and the hosts named with --allow-host are contacted, the rate is 5 requests a second (--rate), --reporter json prints JSON and --fail-on (low, medium by default, high or none) sets the severity that exits 1. Agent sessions have no tool for it.

Linting an OpenAPI spec

gostman lint <file | address> checks an OpenAPI 3.x or Swagger 2.0 document (JSON or YAML) against 23 built-in rules: missing operation ids or descriptions, undeclared path parameters, missing error responses, undefined security schemes, broken $refs and similar.

Terminal
gostman lint openapi.yaml --reporter junit --fail-on warning
  • --reporter text|json|junit, --fail-on error|warning|none (default error).
  • --config file or a .gostman/lint.yaml in the current folder turns rules off or changes their severity under rules:.
  • The spec viewer has a Lint tab in the desktop and web apps.

Comparing two OpenAPI specs

gostman diff <old> <new> compares two OpenAPI 3.x or Swagger 2.0 documents, each a file or an http(s) address, and lists the changes as breaking, non-breaking or informational.

Terminal
gostman diff openapi-v1.yaml openapi-v2.yaml --fail-on breaking
git show main:openapi.yaml > old.yaml && gostman diff old.yaml openapi.yaml --json
  • Breaking: a removed path or operation, a removed 2xx response, a new required parameter, request body or request property, a parameter or property whose type changed or whose limits or enum values narrowed for requests, a response property that was removed or is no longer always present, a content type that is no longer accepted or returned, a removed or changed security scheme, and authentication that is now required or has changed.
  • Non-breaking: an added operation, an optional parameter or property, a looser limit, a removed optional request property.
  • Informational: a new version number or server address, a deprecated operation, an added response or security scheme.
  • Very large, deeply nested or heavily linked specs are compared within a work limit. When it is reached the report says it is incomplete, and --fail-on breaking and --fail-on any exit 1 whatever was found. --timeout (default 1 minute) stops a slow comparison with an error.
  • Only local #/... references are followed. --json prints the report as JSON, --fail-on breaking|any|none (default none) sets when the exit status is 1. The spec viewer's sync dialog and the Compare API specs command show the same list in the apps.

Generated documentation

gostman docs writes one self-contained HTML page. Descriptions on requests, folders and collections are rendered as Markdown (headings, lists, code, tables, links to http, https and mailto; raw HTML is always escaped). --playground adds a Try it panel to each request that sends it from the reader's own browser; secrets are left empty for the reader, and the API must allow cross-origin calls from the page.

--logo logo.svg shows an image (png, jpg, gif, webp or svg, up to 300 KB) above the title, embedded in the page. --accent "#0b6bcb" sets the colour of links and focus rings. The page title comes from --title.

--versions v1.0,v1.1 builds the docs of a workspace that lives in a Git repository once per tag, branch or commit, and --all-tags does it for every tag, oldest first. The workspace is read with git archive, so your working tree and index are not touched, and the folder you name is looked up inside the repository the same way it is on disk. --output is then a folder:

Terminal
gostman docs ./orders-api --all-tags --output site/docs --title "Orders API" --logo logo.svg --accent "#0b6bcb"

It writes site/docs/<version>/index.html for each version, a Version switcher with links to the other versions at the top of every page, and site/docs/index.html, which opens the last version listed. Names with characters other than letters, digits, dots, underscores and dashes are written with a dash in their place. The result is plain static files for any web host.

Local relay for the web app

gostman relay runs the web app's relay on your computer, so the web app reaches localhost and private addresses and its requests go nowhere but to the hosts you call.

Terminal
gostman relay --port 4030

It prints its address, such as http://127.0.0.1:4030. In the web app, open Preferences, Privacy, choose Local relay on this computer, enter that address and press Test. Every request, OpenAPI or import fetch and OAuth 2.0 token request then goes through it; WebSocket connections and AI providers are still called straight from the browser. The browser may ask whether the page may reach apps on this device; allow it. Press Ctrl+C to stop the relay.

  • --port n picks the port. Without it a free port is chosen each time, so pass --port to keep the same address in the web app.
  • It listens on 127.0.0.1 only and refuses requests addressed to any other host name, so other machines and DNS rebinding cannot reach it.
  • Only the Gostman web app (https://gostman.com), pages served from localhost or 127.0.0.1, and programs on your computer that send no Origin header may use it. A browser page from any other site gets no CORS permission and a 403, so it is not an open proxy for websites you visit. --origin https://gostman.example.com (repeatable) allows a copy of the web app served from another address.
  • Requests get the desktop app's limits rather than the hosted relay's: private and loopback addresses are allowed and responses are read up to 50 MB. It never reads files and never starts local MCP commands.
  • Behind a corporate proxy, a private certificate authority or a server that asks for a client certificate, start it with the same network flags as run: --cacert, --client-cert with --client-key, --client-cert-pass-env, --proxy and --noproxy. They apply to every request, gRPC call and OAuth 2.0 token request the web app sends through the relay. Without --proxy, HTTPS_PROXY, HTTP_PROXY and NO_PROXY are used.
  • Anything allowed to use it can send requests from your computer, so stop it when you are done, and do not add origins you do not control.

Self-hosted web app

gostman serve serves a built copy of the web app and its /api/proxy endpoint, so a team can use the web version from its own address.

Terminal
gostman serve --dir gostman-gui/frontend/dist-web --addr 0.0.0.0:8080
  • --dir path is the folder npm run build:web wrote. It is required.
  • --addr host:port is where it listens (default 127.0.0.1:8080).
  • --host name is a name people reach the server by, such as api-client.example.com; repeat it for each name. localhost and IP addresses always work. A request for any other name is refused with 421, which stops a website from pointing its own domain at your server (DNS rebinding) to use its proxy.
  • --allow-private lets the proxy reach localhost and private network addresses. Without it the proxy follows the hosted rules: those addresses are refused and responses are cut at 3 MB. Anyone who can open the page can then use the server to reach your network, so use it only behind authentication, a VPN or a firewall.

Self-hosting the web app covers the prebuilt Docker image ghcr.io/kunalgoesbyken/gostman-web, HTTPS, Vercel and updates. To send requests from your own computer instead, use gostman relay.

Import and export

Terminal
gostman import postman_collection.json --out orders-api
gostman import insomnia.yaml --format insomnia --out orders-api
gostman import traffic.har --skip-static --out orders-api
gostman export orders-api --format postman --out orders.postman_collection.json
gostman export orders-api --format bruno --out orders-bruno
gostman export orders-api --format curl --out requests.sh
  • import <file | folder> --out <folder> creates a workspace from a Postman, Insomnia, Bruno, Hoppscotch, Thunder Client, HTTPie, HAR, WSDL, OpenAPI/Swagger, RAML, API Blueprint, Gostman export, .http or Hurl file, a script of curl commands (.sh and .curl files in a folder too; a .sh file with no curl command is left out without a message), or a folder such as a Bruno collection. --format auto|insomnia|har|wsdl|bruno|postman|openapi|gostman|http|hoppscotch|thunder|httpie|hurl|raml|blueprint|curl (default auto, detected from the content; gostman is an export file from the desktop or web app). --skip-static leaves images, fonts, styles and scripts out of a HAR file; export does not take it. It prints what was imported, with warnings and skipped items on stderr.
  • Imports add data only. Scripts and OAuth settings are kept and reported; tokens, cookie values and secret manager references are never carried over. The values of variables marked secret, such as Postman secret variables, are not written to the workspace; they stay marked secret, and import lists the ones that had a value so you can set them in the desktop app (kept in the system keychain) or pass them with --var, --var-from-env or --env-file. Secret globals become collection variables in gostman.yaml that keep their secret mark and have no value, which has no keychain, so pass those with the same flags, or move them to an environment in the desktop app and mark them secret there. --out must be a new or empty folder, so import cannot add to a workspace that init created; import into a new folder, or add requests from a coding agent with the import_requests tool. The files are created readable by you only.
  • export <workspace> --format <format> --out <path> writes postman (Collection v2.1 with the collection variables, see Back to Postman), bruno (a folder of .bru files), openapi, curl (a shell script that lists the environment variables to set at the top), har, http (.http files for VS Code REST Client and JetBrains HTTP Client) or hurl. --out is a file, or a folder when the export has several files.
  • Passwords, tokens and secret-named headers or variables become {{NAME}} placeholders named after the field, such as {{TOKEN}} or {{X_API_KEY}}; the same value used by several requests gets one placeholder, and they re-import as empty variables. A value that already uses a variable, such as Bearer {{API_TOKEN}}, is kept as written. --include-secrets writes the literal values instead and prints a warning; import does not take it.

Docker and CI

Terminal
docker run --rm -v "$PWD:/workspace" -e API_TOKEN ghcr.io/kunalgoesbyken/gostman run api --var-from-env API_TOKEN

New releases publish ghcr.io/kunalgoesbyken/gostman for linux/amd64 and linux/arm64, tagged with the version and latest. The image is distroless, static and runs as a non-root user. docker build -t gostman . builds the same image from the repository. In GitHub Actions:

YAML
- uses: kunalgoesbyken/gostman@main
  with:
    collection: api
    reporter: junit
    output: report.xml

CI recipes has exit codes, reports, secrets, and GitLab CI, Jenkins and plain GitHub Actions recipes.