AgentKit
Tài liệuBộ kitTham chiếu CLIỨng dụng Desktop

secrets

ak secrets grants

Liệt kê các grant đã ghi cho agent.

Liệt kê các grant đã ghi cho agent.

Dùng ak secrets grants với đối số và tùy chọn dưới đây. Phần help nguyên bản giữ nguyên thuật ngữ, cú pháp, tác động và điều kiện thực thi của CLI để đối chiếu chính xác.

Contract và help của lệnh

List recorded agent grants

Synopsis

Show every grant recorded under {AGENTKIT_HOME}/secrets/grants.json, which is ~/.agentkit unless AGENTKIT_HOME says otherwise. Grants whose expiry has passed are pruned as they are read, so what this prints is what would actually apply right now. A block outranks any allow on the same scope.

Effects: Reads the grants file. Rows that have already expired are compacted out of it as housekeeping, so a listing can rewrite the file even though it decides nothing. Stored secret values are not read.

Exit status: 0 success, 1 command failure, 2 invalid flags or arguments

ak secrets grants [flags]

Examples

  ak secrets grants           # table
  ak secrets grants --json    # machine-readable

Options

  -h, --help             help for grants
      --json             Emit machine-readable JSON (implies --no-interactive)
      --no-interactive   Disable interactive prompts (CI-safe)
  -q, --quiet            Suppress non-error output on stderr
  -V, --verbose          Extra diagnostic output on stderr (loses to --quiet)
  -y, --yes              Assume yes for all prompts

SEE ALSO

  • ak secrets - Manage named secret values (API keys, tokens)