---
title: "Give an agent permission"
description: "Choose which shows and actions an agent can use."
---

> Documentation Index
> Fetch the complete documentation index at: https://podstead.wking.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Give an agent permission

Give an agent the access needed for its task. Owner sign-in, an agent credential, and Cloudflare deployment credentials are different things.

| Identity | What it is for |
| --- | --- |
| Cloudflare provisioning identity | Creating and updating hosting infrastructure |
| Owner Access session | Managing the installation and granting access |
| Scoped agent credential or OAuth grant | Working on selected shows with selected permissions |

Do not hand an agent your provisioning credentials or owner session as its podcast credential.

## Default access

New agent grants allow reading, private drafts, uploads, previews, and release preparation. Publishing, scheduling, cancellation, withdrawal, distribution changes, and creating new shows need explicit capabilities.

Agents cannot manage grants. The owner creates and revokes them.

## Create a grant

For example, a credential that can work on drafts for one show:

```json
{
  "shows": ["my-show"],
  "capabilities": ["podcasts:read", "drafts:write", "assets:upload", "assets:preview", "releases:prepare"],
  "expiresAt": "2027-01-01T00:00:00Z"
}
```

Choose an expiry that fits your task. Save this as `grant.json`, then run as the owner:

```sh
r2cast grant create --file grant.json --key create-editor --output-credential ./agent.local.json
```

The output file contains the credential. Keep it outside Git and use `R2CAST_MCP_TOKEN_FILE` or `--token-file` to load it.

To permit publishing, explicitly include `releases:publish`. Scheduling needs `releases:schedule`; cancelling needs `releases:cancel`. Withdrawal needs the applicable publishing and withdrawal capabilities.

For remote OAuth, choose shows and capabilities in consent. Publishing and scheduling start unchecked.

## Change or revoke access

```sh
r2cast grant list
r2cast grant revoke GRANT_ID --key revoke-editor
```

Grants are not edited in place. Issue a new grant, reconnect the agent, and revoke the superseded one. OAuth clients can reconnect through consent.

Revocation stops new commands, uploads, and private previews. It does not cancel already accepted publication or schedules. [Cancel those releases explicitly](https://podstead.wking.dev/docs/guides/schedule/).

`podcasts:create` permits creating a show and grants private work on that new show. It does not automatically permit publishing it.

Source: https://podstead.wking.dev/docs/guides/permissions/index.mdx
