---
title: "agents disable"
description: "Kill-switch an agent credential (reversible)"
canonical: "https://pgbeam.com/docs/cli/agents/disable"
last-updated: "2026-10-30T02:48:39.000Z"
---

# agents disable

> Kill-switch an agent credential (reversible)

URL: https://pgbeam.com/docs/cli/agents/disable

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

Disable an agent credential as a reversible kill-switch. Live connections using it are dropped within seconds and new connections are rejected until the credential is re-enabled with `pgbeam agents enable`. Unlike `revoke`, this does not permanently destroy the credential. A confirmation prompt is shown unless `--yes` is passed.

## Usage

```bash
pgbeam agents disable <id> [flags]
```

## Options

| Option        | Description                                                 | Required | Default |
| ------------- | ----------------------------------------------------------- | -------- | ------- |
| `<id>`        | Agent credential ID                                         | Yes      | -       |
| `--yes`, `-y` | Skip the confirmation prompt (useful for scripts and CI/CD) | No       | `false` |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Disable a credential (with confirmation)
pgbeam agents disable agt_xxx

# Disable without confirmation (CI/CD)
pgbeam agents disable agt_xxx --yes
```

## Output

Confirms the credential was disabled.