Revoke your agents' keys at the source. Then check they're dead.

Cutoff finds the keys your coding agents can reach, revokes them through each provider's API, and checks that each one now fails.

Run your first scan Source on GitHub

Open source, Apache-2.0. Runs on your own Linux machine and never stores your secrets.

examples/demo.shrun 2026-11-28
$ ./examples/demo.sh
[...] three agents, six runs, one key each
kill kill_b087445cbfb5: 6 halts, 6 revokes, time to close 203 ms
  github   4aa8ee9a830e9c5b  closed 19 ms
  openai   1068ec768d58f77b  closed 23 ms
  github   39853f0317b18ceb  closed 19 ms
  github   27d2640bf101ab58  closed 20 ms
  github   a02996aa9b29e37e  closed 21 ms
  slack    78b079c1cd449fbf  closed 21 ms
probes after kill:
  opencode  openai_project_key     sk-p…(164 chars)   revoked
  opencode  github_pat_classic     ghp_…(40 chars)    revoked
  hermes    github_oauth           gho_…(40 chars)    revoked
  hermes    slack_bot              xoxb…(56 chars)    revoked
  copilot   github_oauth           gho_…(40 chars)    revoked
  copilot   github_pat_fine        gith…(93 chars)    revoked
evidence: seq 2 hash 9b3de4fe84c61e18  verify ok: True

Output of examples/demo.sh.

Stopping the agent is the easy part

Killing the process takes a second. The keys it held stay valid: the GitHub token in its config, the AWS key in ~/.aws, the Slack bot in an MCP server entry. Then someone spends the day logging into six consoles and still can't say which keys are dead.

A vendor's kill switch stops traffic at that vendor's own gateway and leaves keys from other providers valid. Cutoff maps each key to the agent and run that can use it, revokes it with the API of the provider that issued it, and asks that provider whether it still works.

Scan, revoke, prove

Scan only reads files. Revoke prints its plan and asks before it touches any key.

  1. Scan

    cutoff scan

    Reads the configs, env files and MCP settings of OpenCode, Hermes, Copilot CLI, Claude Code, Codex, Cursor and Gemini CLI, plus host credentials such as gh auth and ~/.aws. It lists the keys each agent can reach, its auto-approve settings and its MCP servers. It makes no network calls and prints fingerprints and short previews, never a raw value.

    The first scan on a development box running OpenCode, Hermes and Copilot CLI:

    15 credentials across 9 providers reachable by 4 agents; 9 auto-approve settings
      8 critical, 27 high, 16 medium, 3 low, 0 info; 2 credentials have an automated revoke adapter

    One GitHub OAuth token turned up in four files across two agents and in a session transcript.

  2. Revoke

    cutoff revoke --execute

    Calls the revocation API of the provider that issued each key, retrying on 429 and 5xx. Without --execute it prints the plan and sends nothing. With it, it shows the plan and asks first. After a "rotate your keys" email, hand it the exported keys with --env-file leaked.env. Cutoff skips values that don't look like credentials, lists them by key name and never prints a value. Where a provider has no revocation API, it prints the manual steps and a link to that provider's key page.

    The plan for a leaked.env with four keys, without the source and URL lines:

    $ cutoff revoke --env-file leaked.env
    Revocation plan for 4 credential(s):
    github     github_pat_classic         ghp_…(40 chars)    fp=249b2037a6480f57
        [auto  ] Submit the token to GitHub's credential revocation API (permanent)
    slack      slack_bot                  xoxb…(56 chars)    fp=8d3b0160b847f1f6
        [auto  ] Revoke the token with auth.revoke, authenticated as itself
    aws        aws_access_key_id          AKIA…(20 chars)    fp=f26af75723be6fcc
        [auto  ] Ask the key to deactivate itself (needs iam:UpdateAccessKey on itself)
    telegram   telegram_bot_token         8571…(46 chars)    fp=e3843f0e62d95270
        [MANUAL] Open @BotFather in Telegram, send /revoke, choose this bot and confirm. [...]
    Dry run: nothing was sent or written. Re-run with --execute to revoke, check that each provider rejects the key, and record a signed receipt.
  3. Prove

    cutoff evidence verify

    After each revocation, Cutoff probes the key with backoff until the provider rejects it or 60 seconds pass. It prints a receipt with time to close per key and appends it to an Ed25519-signed, hash-chained evidence ledger. cutoff evidence verify checks the chain, against a public key you keep somewhere else if you pin one.

    From cutoff revoke --env-file leaked.env --execute:

    PROVIDER  FINGERPRINT       KIND                REVOKED  CLOSED    TIME TO CLOSE  MANUAL STEPS
    github    ff87ebad12bf5609  github_pat_classic  yes      yes       8 ms           -
    slack     4b35df65697efb84  slack_bot           yes      yes       361 ms         -
    aws       f4a7c1c344212d16  aws_access_key_id   yes      yes       14 ms          -
    telegram  f64fe2274ce02886  telegram_bot_token  manual   NO, live  -              1
    
    3 closed, 1 manual
    evidence: seq 1 hash 9c2201f42e450985 (check with `cutoff evidence verify`)

    The command exits 3 here because something is still open: Telegram has no revocation API. GitHub revokes asynchronously, so a GitHub key can outlast the deadline; probe it again later with cutoff probe --live. GitHub and Google refresh tokens and Anthropic and xAI OAuth tokens can be revoked but have no probe endpoint, so Cutoff can't confirm them closed.

When the agent is still running

cutoff kill does all of it for a tracked run tree in one command: halts its processes, containers and OpenCode sessions, revokes and probes its keys, and signs the result into the same ledger. That is the output at the top of this page. cutoff drill rehearses the kill on throwaway processes and revokes nothing unless you pass --revoke, so you can show an auditor the stop works.

cutoff run starts an agent as a tracked run with its own token and a dollar budget. Gate hooks for OpenCode, Hermes, Copilot CLI and Claude Code ask Cutoff before every tool call. Calls from halted runs, spent budgets and attempts to edit the hooks are denied. rm -rf, force pushes, terraform destroy, SQL drops and cloud deletes get an ask or a deny.

examples/demo.sh, the run at the top of this page
gate before kill (ls -la): {'opencode': 'allow', 'hermes': 'allow', 'copilot': 'allow'}
gate on rm -rf: {'opencode': 'deny', 'hermes': 'deny', 'copilot': 'ask'}
budget trip: hermes killed after 3 reservations (remaining $0.2)
gate after kill: {'opencode': 'deny', 'hermes': 'deny', 'copilot': 'deny'}

What it covers today

Agents

AgentScanGate hookBudget metering
OpenCodeyesplugin, v1 and v2yes
Hermes Agentyespre_tool_callmanual
GitHub Copilot CLIyespreToolUsemanual
Claude CodeyesPreToolUsemanual
Codex, Cursor, Gemini CLIyesnot yetno

Manual means the agent, or a wrapper, reports spend with cutoff spend.

Providers

ProviderRevokeNeeds
GitHub tokensautomatednothing extra
Slack bot and user tokensautomatednothing extra
Google OAuth tokensautomatednothing extra
Google API keysautomatedCUTOFF_GOOGLE_ADMIN_TOKEN
OpenAI keysautomatedOPENAI_ADMIN_KEY
Anthropic API keysautomatedANTHROPIC_ADMIN_KEY
AWS keys and role sessionsautomatedthe key's own secret, or CUTOFF_AWS_ADMIN_*
Telegram, xAI, OpenRouter and othersmanualCutoff prints the steps and the key page

What it doesn't do yet

Read this before you rely on it in an incident.

  • Revocation is as wide as the key. A revoked GitHub token is gone for every tool that shares it. Per-run credentials are planned. Until then, answer "halt only" when kill asks, or pass --no-revoke.
  • It runs as your user, and so do your agents. Any agent running as your OS user can read ~/.cutoff/token or re-sign the ledger. Run the control plane as a separate OS user or host and pin the evidence key where the agent can't write.
  • Halts can be escaped. A process that clears its environment and double-forks gets away. Closing that needs cgroups.
  • Admin keys for model APIs. Revoking OpenAI, Anthropic and Google API keys needs an admin credential.
  • Budgets need reported spend. Only the OpenCode plugin reports it on its own. Other agents need cutoff spend.
  • Local only. The control plane speaks plain HTTP on localhost, with no TLS.
  • Linux only. No macOS or Windows support, and no gate hooks for Codex, Cursor or Gemini CLI.

Install

Python 3.11 or newer, on Linux. The scan is read-only and sends nothing, so it is a safe first run.

The package is named cutoff-cli and is not on PyPI yet. The cutoff package on PyPI is an unrelated project, so don't pip install cutoff.

Next: cutoff doctor checks the install, then the quick start in the README walks through hooks, tracked runs and your first drill.

$ uv tool install \
    git+https://github.com/anxkhn/cutoff
$ cutoff --version
$ cutoff scan

Planned pricing

The open-source CLI is free under Apache-2.0. The paid tiers below are planned and not yet available; nothing is for sale today.

PlanPriceWhat you getStatus
Open source Free Scan, revoke, probe, kill, drill, the gate hooks and the local signed ledger. No limit on runs or machines. Available
Team $500 a month for up to 50 protected credentials, then $10 each One control plane to kill across machines and CI runners, a kill command in Slack, monthly drills with an evidence report, and evidence export. Planned
Enterprise From about $50,000 a year Priced in bands of protected credentials. SSO, SIEM export, a self-hosted control plane, and kills triggered by webhooks from your security tools. Planned
Staging kill drill $2,500 fixed, credited toward Team On your staging setup: a scan, a kill drill, and revocation of throwaway keys you create for it. You get the signed record and a written report of what closed, how fast, and what could not be proven. On request

A protected credential is one standing key, or one credential source such as a GitHub App or an AWS role, that you register for kills, probes and drills. Scanning is free and unlimited. To ask about a drill or say what you would pay, open an issue on GitHub.

Questions

Does cutoff scan send my secrets anywhere?

No. Scan reads files and the process environment and makes no network calls. Raw values stay in memory and never reach reports, JSON or logs. Files written with --out get mode 0600. Cutoff has no telemetry.

Will it revoke something by accident?

revoke prints a plan unless you pass --execute, and asks unless you also pass --yes. kill lists the keys it would revoke and asks: yes, halt only, or no. Without a terminal to ask on, it halts the runs, leaves the keys valid and exits 3. drill only plans revocation unless you pass --revoke. probe sends nothing without --live, and then sends each key only to the provider that issued it.

If I revoke a shared GitHub token, what else breaks?

Everything that uses that token. A kill revokes the keys the run had, and today those are usually your own standing keys. Per-run credentials (scoped GitHub App tokens, tagged AWS sessions) are planned so a kill only closes what that run could touch.

How is this different from my vendor's kill switch, or a secrets broker?

A vendor's switch stops activity at its own gateway or identity, and keys from other providers that the agent already holds stay valid. A broker keeps new keys out of the agent, for traffic routed through it. Cutoff closes the keys the agent already has, at the provider that issued them, and can run next to either.

Can't the agent just turn Cutoff off?

Not through its own tools. Edits to hook, plugin and agent config files are always denied, the hooks check halt files before they start Python, and tracked runs fail closed when the control plane can't answer. An agent running as your OS user can still read the admin token or write a script the rules don't catch, so run the control plane as a separate user. Revocation at the provider does not depend on the agent cooperating.

What does the signed record prove?

That the ledger hasn't changed since it was written, and what each revoke, kill and drill did: which runs halted, which keys were revoked, which probes came back rejected and how long each took. The signing key lives on the same host, so pin the public key somewhere the agent can't write and verify with cutoff evidence verify --pubkey.