Machine-readable pricing for okgate hosted: bands (Starter/Pro/Team) with included tool calls per month, the 80% soft alert and 150% hard stop, features, the free trial allowance, `per_call` — buying tool calls outright at POST /api/v1/calls from a prepaid balance, which is the one purchase here an unattended agent can complete — and `one_time`: reports a person pays for once on Stripe Checkout, such as the $49 EU AI Act Article 50 readiness report. Same data as /pricing.json.
无需输入参数。
Read an agent log and report what it spent: totals, calls by tool and by class, estimated
dollars by rail, loops, the largest single run, and — for every overspend — the okgate
band whose cap would have stopped it, the exact cap, and the call that would have tripped
it.
Needs no account and no key. The log is read in the request and discarded; nothing is
stored. Accepts an agentwares audit export (`agentwares.audit/v1`), a Claude Code session
`.jsonl`, or a CSV/JSONL of tool calls with any of `tool`, `ts`, `class`, `amount_usd`,
`rail`, `run_id`, `model`, `input_tokens`, `output_tokens`.
Caps come from the proxy's own default policy, so a band named here refuses exactly what
it says it refuses. Buying that band is a checkout a person completes; the calls-only
purchase an unattended agent can complete is in `okgate_get_pricing` instead.
输入参数log必填detail
Create a hosted okgate proxy in front of an MCP server. Returns the proxy id, the per-customer MCP URL and the proxy key (shown once). Point your agent's MCP client at the URL with `Authorization: Bearer <key>`. Requires an account key.
输入参数modeslug必填upstreamUrl必填upstreamName
Replace a proxy's policy (YAML: mode, upstreams, classify, caps, loop, dry_run, approvals, alerts, chaos, drift). Validated before saving; takes effect within 30 seconds. Requires an account key.
输入参数proxyId必填policyYaml必填
The incident-shaped report for one run: counts (calls, reads, writes, faked, blocked, spend), the call timeline with decisions, dry-run mutations (what would have changed), ledger entries and the audit-chain verification. Requires an account key.
输入参数runId必填proxyId必填
Export a run's hash-chained audit entries (prev_hash, hash, redacted args) with the Merkle root, for disputes and questionnaires. Verify offline with sha256(prev_hash + canonical(entry)). Requires an account key.
输入参数runId必填proxyId必填
okgate_recommend_allowlist
Least-privilege recommendation from the proxy's recorded calls: the minimal tool allowlist, argument keys used per tool, and the upstream tools never used (remove them first). No LLM call here; apply it in the dashboard. Requires an account key.
输入参数proxyId必填