Skip to main content

What this does

A fleet pauses when a tool or a new grant needs your approval. Open the request in its conversation to see the proposed action and affected resources. Read the scope on the card. Choose Approve or Deny. If the response is uncertain, choose Check status to see the recorded decision. Use agentsfleet fleet approvals to inspect requests and decide them from your terminal.

Before you begin

A fleet uses request_access to ask for a web host, workspace secret or connected app. If its grant already covers the request, it can continue. The account owner gives consent when connecting an app. The workspace connection can then approve a fleet’s request for that app. You review new requests for web hosts and workspace secrets. You also review requests for a grant someone denied or revoked, or for new access when another fleet started the work. Requests already waiting for a person still need a decision. For GitHub, the request names the repositories and the access level. A write request can specify a base branch for each repository. For example, an approved site might redirect from docs.example.com to support.example.com. With Public internet off, the fleet stops before contacting support.example.com unless you’ve approved that host. If it requests access, the card shows both hostnames. Approve lets this fleet retry the read and reach the new host on future runs until you revoke access. Deny resumes the conversation with that host still blocked. A workspace secret needs a separate approval. Sign in to the workspace that owns the fleet. Approving or denying a request needs a person’s session with approval:resolve. A workspace-authorized API key with approval:read can list and read requests.

Steps

  1. List the requests in the active workspace. The list includes earlier decisions. Look for a request with status pending or timed_out.
    Add --fleet <FLEET_ID> to narrow the list to one fleet.
  2. Read the requested access. Copy <GATE_ID> from the request’s ID column.
    Check the fleet, request kind, status, and blast_radius. This field describes which resources or actions the request covers.
  3. Choose one decision.
    Use this command to deny the request.

Verify it works

Run agentsfleet fleet approvals show <GATE_ID> again. The result names the person or connection that made the decision, such as connection:github. The same decision appears in the fleet conversation.

Common problems

A request with status timed_out can still take a decision. UZ-APPROVAL-002 means the request could not be found. Check the workspace and request identifier. UZ-APPROVAL-006 means a decision already stands. Read the outcome with agentsfleet fleet approvals show <GATE_ID>. Submitting the same decision again returns the recorded result. UZ-GRANT-001 means the fleet has no approved grant for the service. No credential is issued, and the run makes no provider call. Check with agentsfleet fleet grants list --fleet <FLEET_ID>. For repository writes, check Can access for the repository and Read and write. Outside a durable task, a fleet can create its own branch and open a draft pull request (PR). A durable task uses the same write grant. Its runner reads the repository, and agentsfleet publishes the verified changes. The task can open a draft PR or update an open PR on a branch in the same repository. For an existing PR, its head branch must be unprotected and different from the default branch.

Remove or undo

A request can be decided once. You can revoke approved access from Can access on the fleet’s page. To revoke a grant, copy <GRANT_ID> from agentsfleet fleet grants list --fleet <FLEET_ID>. Then run agentsfleet fleet grants revoke <GRANT_ID> --fleet <FLEET_ID>. To add repositories or request write access, ask the fleet to request the wider scope. The grant keeps its existing repositories. If either scope allows writes, the combined grant allows writes across those repositories. The fleet keeps its current access while that request is pending, and choosing Deny revokes the entire grant. To remove a repository or switch to read-only access, revoke the grant first. Ask the fleet to request the smaller scope and review the new card. The next run and token mint use the updated approval. A credential already issued to a live run remains with that run.