# Render API keys: find, store, rotate, and use them safely with AI agents

Source: https://botpassword.com/keys/render
Last checked: 2026-10-25

Render API keys are created in the Render Dashboard under Account Settings and are displayed in full only when created. Revoke a possibly compromised key in the dashboard and generate a new one. The Render CLI can authenticate with `render login` or, in automation, the `RENDER_API_KEY` environment variable.

## Key types

| Type | Prefix | Secret | Scope | Expiry |
|---|---|---|---|---|
| API key | — | Yes | — | — |

## How to create a Render key

1. Sign in to the Render Dashboard and go to **Account Settings**.
2. Add an API key.
3. Copy it immediately; it is displayed in full only when created.
4. Test it with a request to the Render API, which returns a 200 and a JSON array of your services if the key is valid.

## How to rotate a Render key

1. Create a new API key in Account Settings.
2. Update `RENDER_API_KEY` and any integrations.
3. Revoke the old key in the dashboard.

## How to revoke a Render key

1. In the Render Dashboard open **Account Settings**.
2. Revoke the API key you no longer want and generate a new one if needed.

## If the key leaked

1. Revoke the exposed key in Account Settings.
2. Generate a replacement and update where it is used.
3. Do not post keys publicly, commit them to version control, or share them outside your organization.

## Environment variables

- `RENDER_API_KEY`

## Gotchas

- The key is displayed in full only once.
- `RENDER_API_KEY` takes precedence over CLI login tokens and doesn't expire, so use it only in automated environments.

## Using this key with AI agents (BotPassword)

- `list_credentials`: Lists the credentials this agent is granted and what it may do with each. Never values.
- `run_with`: Runs a command with the key injected as an environment variable or a 0600 temporary file, never on the command line, and redacts the key from the output.
- `http_request`: Makes an authenticated API call after checking the destination against the hosts this key may be sent to. The response comes back with credential-shaped values redacted, and one that holds the key itself is refused.
- `cli_login`: Lets git, Docker, the AWS CLI and kubectl log in through bpw's credential helper, so the token is fetched when the tool needs it and not written into its config. The helper hands the value to the tool, so the grant is always disclosing. Other tools use run_with; OAuth device logins are planned.
- `rotate`: Partly built: creates a new key, stores it as pending, verifies it, promotes it, then revokes the old key after a grace period. Today it works for Cloudflare tokens and AWS IAM keys you have set up, and an agent can start it only under a grant with autopilot; other providers cannot be rotated through their API yet.
- `store_secret`: Saves a value the agent already holds as a new vault item.

## FAQ

### Where do I find my Render API key?

You can't view it again. Create a key in the Render Dashboard under Account Settings and copy it immediately.

### How do I revoke a Render API key?

Revoke it in Account Settings in the dashboard and generate a new one.

### How does the Render CLI authenticate in CI?

Set the `RENDER_API_KEY` environment variable to an API key.

### Can an AI agent use my Render key without seeing it?

Yes, if the key never enters the agent's context. Instead of pasting the key into a chat or leaving it in a `.env` file the agent can read, keep it in a credential broker that injects it into the command or request on the agent's behalf. BotPassword does this with `list_credentials`, `run_with`, `http_request`, so the agent gets the result and never the value.

## Sources

- https://render.com/docs/api
- https://render.com/docs/cli
- https://render.com/docs/mcp-server
