Skip to content
Last updated December 3, 2026

PromptGate 0.9 — changelog

Archived from CHANGELOG.md, which keeps the unreleased changes and, until the next release, the latest one.

One more question on the first start, so PromptGate can stay running: after the guardrails and the web UI, promptgate start asks whether to run in the background, and a yes leaves a service behind instead of a terminal window. Nothing changes on the request path.

  • The first promptgate start asks a third question: run PromptGate in the background (default no). Yes installs and starts the service with the variables the config uses, waits for it to answer and shows the same overview — where to point your apps, the web UI and its first sign-in — on a clean screen (first start).

The first minutes, made shorter. promptgate start on a fresh machine asks two things — which guardrails, and the web UI or not — and runs, because passing requests through needs no provider or key setup; the overview it opens with says where to point your apps. The installers show what they did and put PromptGate on your PATH, Homebrew installs it (brew install promptgate-ai/tap/promptgate), promptgate config set changes one setting without opening the file, pause and resume take PromptGate out of the way and back, and Kimi joins the providers. Nothing changes on the request path.

  • Provider preset kimi: Moonshot AI’s Kimi models (OpenAI-compatible, MOONSHOT_API_KEY), priced from the same LiteLLM table as the rest; Claude Code and other Anthropic clients reach them through translation.
  • promptgate config get|set|unset <path> (and config path): one setting at a time, like git config — config set limits.providers.openai 50/s, values as YAML. Checked like validate before it is written, comments kept, the previous file backed up, the change recorded in the audit trail; a running gateway applies it.
  • promptgate pause and resume: pause sends connected coding agents directly to their providers and stops the service; resume starts it, waits until the gateway answers, then routes those agents through it again.
  • A start page on the gateway’s port: a browser opening http://127.0.0.1:7878 sees that PromptGate runs, a link to the web UI and the base URLs; API clients still get JSON.
  • Homebrew: brew install promptgate-ai/tap/promptgate (macOS; the cask carries the Linux binaries too). The release workflow writes the cask after the binaries are uploaded, through a deploy key that can write to the tap only; on macOS the cask clears the download’s quarantine flag, since the binaries are signed with PromptGate’s own key, not notarized by Apple.
  • The first promptgate start asks two things instead of six: which guardrails (a ready-made level, or picked one by one in a checklist) and whether to turn on the web UI (off unless you say yes). No provider, API key, pg_ key, agent or service questions: passing requests through needs none of them, and promptgate setup still asks all six. Then the screen clears and the overview opens with where to point your apps. Menus answer to the arrow keys and Space; without a terminal they take numbers.
  • Install scripts: the logo with the version and steps that say what happened (downloaded, checksum verified, installed). install.sh adds the install directory to your shell’s profile when it isn’t on the PATH (zsh, bash, fish, or ~/.profile; once; PROMPTGATE_NO_MODIFY_PATH to skip); install.ps1 also puts it on the PATH of the running PowerShell. Both install the version version.json names, so an install during a release never mixes two.
  • The logo shows above promptgate, help and every --help too (in a terminal only), with an Akyros Labs line.
  • Docs: the guardrails, AI Gateway endpoints, end users, MCP gateway and API Gateway pages open with everything the feature can do and one config that uses all of it (each checked with promptgate validate). New pages: operations (log, metrics, events, webhooks, audit, anomalies at a glance), MCP servers (server settings, protocol versions, local programs) and the pgfuzz quality gate.
  • Docs: the quality gate page lists all 26 stages (the MCP and API Gateway stages were missing); links to pgfuzz go to its docs page.

The operations release, and the one to start with: promptgate start on a fresh machine asks six questions, writes a config with protection on — secrets masked, personal data redacted and restored, prompt injection refused, a daily budget per key — points Claude Code and Codex at the gateway and keeps it running in the background. For the people who run it, every change and every incident becomes an event: a hash-chained audit trail that shows when an entry was edited or removed, and signed webhooks that take events to a chat channel, a pager or a SIEM, queued durably and retried for two days. Guardrails read their words, networks and phrases from files and URLs, and the keyword guard finds 20,000 of them as fast as a handful.

  • Operational events (events), the base of v0.9’s webhooks: one catalogue (promptgate events) with a stable payload (type, id, timestamp, data).

    • Runtime events: budget.warning at 80 % and budget.exceeded, once per scope, limit and period; limit.exceeded and guardrail.blocked, the first per bucket (or key and guard) and minute, later ones counted in repeated.
    • Health events: anomaly.detected/resolved; provider.failing/recovered (5 failures in a row, fallbacks included; 429 and local refusals don’t count); mcp.server_down/up (unreachable, failed start, crash); oauth.needs_reconnect; log.dropped.
    • Publishing never blocks: bounded queues per listener, drops counted. Error texts lose URL query strings, and end-user ids never appear in limit.exceeded.
    • Metrics promptgate_events_total{type} and promptgate_events_dropped_total{subscriber}.
  • Hash-chained audit trail (audit trail): every entry signed with HMAC-SHA256 over its fields and the previous entry’s MAC, keyed from the secret key (PROMPTGATE_SECRET_KEY / secret.key), in the request log database (schema v16, table audit). An edited, deleted, inserted or reordered entry breaks the chain. One writer for the web UI (ui:<user>), the command line (cli), the MCP control plane (mcp:<key>) and the gateway, and every entry is published as an event under its action.

    • Actions follow the event catalogue (key.created, config.changed, auth.login_failed, …).
    • The web UI’s v0.8 entries move over as legacy and are signed by the first write after the upgrade.
    • audit.retention (minimum 1d) deletes old entries daily and leaves a signed audit.pruned marker, so the chain still verifies.
    • The UI’s audit page filters by actor and shows each entry’s number.
  • promptgate audit list | verify | export (audit trail):

    • verify walks the chain, prints the head and exits 1 at the first bad entry.
    • export writes every field, the chain’s included, as JSON lines or CSV. CSV cells are guarded against spreadsheet formulas, and an existing file is never overwritten.
    • Filters: --since and --until (duration, date or RFC 3339), --actor, --action key.*.
  • The web UI’s audit page shows the chain’s state (intact with its head, broken at an entry, or not signed yet) and exports the filtered entries as CSV or JSONL.

  • Exports are recorded as audit.exported.

  • Webhooks (webhooks): webhooks.<name> sends the events it subscribes to (budget.*, *, …) to a URL, signed per Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature; whsec_ secrets or 24+ bytes).

    • Durable queue in the request log (schema v17), delivered in order per webhook, retried after 30 s up to 24 h, 10 attempts (about two days); 410 gives up, redirects aren’t followed, the same webhook-id on every retry.
    • SSRF-checked like the API Gateway (private: true for receivers on a private network); at most 10,000 waiting deliveries per webhook; finished ones kept 30 days with status and the first 2 KB of the answer.
    • promptgate webhooks list (state ok / failing / idle / disabled, waiting, delivered and given up in 24 h), test <webhook> (a signed webhook.test now, exit 1 unless 2xx), deliveries (filters, --id with the event and the answer), redeliver <id>… | --failed <webhook> (audited as webhook.redelivered); metrics promptgate_webhook_deliveries_total{webhook,result} and promptgate_webhook_pending{webhook}; a receiver example in Go.
  • First start sets everything up (first start): promptgate start without a config asks six questions — provider, API key, protection, a pg_ key with a daily budget, coding agents, background service — then runs. setup asks the same; setup --yes takes --protection, --budget, --connect, --service.

  • Ready-made protection (guardrails): recommended (secrets masked, personal data redacted, prompt injection blocked, token saver), strict, log, off. Without any config file, recommended applies.

  • promptgate connect claude-code|codex sends the agent through PromptGate by setting the base URL in its own config (backed up first); disconnect undoes it, and uninstall offers to.

  • start names the active guardrails.

  • Guardrail lists from files and URLs (lists): lists fills keywords words, ip_allowlist ranges, prompt_injection phrases and pii allowed values. Files are watched; URLs are fetched in the background (headers with ${ENV}, refresh, ETag), the last good copy kept and used across restarts, required to refuse starting without one. Events list.updated and list.failed; promptgate lists [--check].

  • keywords finds all words in one pass: 20,000 words cost 3.3 µs per 2 KB request, where word-by-word search took half a millisecond.

  • The config setup writes has guardrails on (recommended) and, with a pg_ key, a daily budget of $20 per key. Before, every guardrail was commented out: a fresh install only logged. Configs already written keep what they have. Started without any config file (a container without one), PromptGate now applies recommended; before, it applied no guardrails.

  • setup no longer asks for the listen address (--listen sets it).

  • The command line now records its changes in the audit trail: keys create/revoke/enable/delete, oauth connect/refresh/disconnect/prune, mcp import --write and the key mcp setup creates. Before, only ui users and ui passwd were recorded.

  • Control-plane changes are recorded under the tool’s action (key.created), with the agent as mcp:<key>. Before, the action carried an mcp_ prefix.

  • Audit entries become events in the running gateway, which reads new entries every second, so changes made by promptgate commands in another process reach webhooks too. Before, only the process that wrote an entry published it.

  • A web UI save could reload the config twice. When the file watcher noticed the write before the UI’s reload request arrived, both reloaded. A reload now happens only when the files changed since the last successful one. SIGHUP still always reloads. The watcher test now writes files the way the UI does (temp file and rename). Before, the watcher could read a half-written file under load and reload once more.
  • Publishing a release could leave latest/checksums.txt missing on install.promptgate.dev, so install.sh failed for the latest version: the upload synced latest/ with --delete, which against R2 removed the file it had just uploaded. latest/ is now copied.
  • The request log could drop rows with database is locked (SQLITE_BUSY) while another process wrote to the same database (the command line, the web UI, the webhook queue). SQLite’s settings (busy_timeout among them) were applied to one pooled connection only, and a transaction that read before it wrote failed at once when another writer came in between. Every connection now gets the settings, and transactions take the write lock when they begin.

Release run against v0.8.1, same config, every feature on: the proxy path measures the same (0.09 ms at the median at one client, 0.26 ms at 16, about 55,000 req/s), with or without a 10,000-entry keyword list; starting takes 41–59 ms, RSS 52–60 MB — see bench/results.

Was this page helpful?