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.
Render key types
| Type | Prefix | Secret? | Scope | Expiry |
|---|---|---|---|---|
| API key Shown in full only at creation. Render's API docs do not say whether a key covers one or all workspaces. | — | Yes | — | — |
How to create a Render key
- Sign in to the Render Dashboard and go to Account Settings.
- Add an API key.
- Copy it immediately; it is displayed in full only when created.
- 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
- Create a new API key in Account Settings.
- Update
RENDER_API_KEYand any integrations. - Revoke the old key in the dashboard.
How to revoke a Render key
- In the Render Dashboard open Account Settings.
- Revoke the API key you no longer want and generate a new one if needed.
If your Render key leaked
- Revoke the exposed key in Account Settings.
- Generate a replacement and update where it is used.
- Do not post keys publicly, commit them to version control, or share them outside your organization.
Environment variables and CLI
Render's SDKs and docs read the key from RENDER_API_KEY.
Render CLI (render): render login authorizes the CLI in your browser and saves a token locally; for CI set RENDER_API_KEY, which takes precedence over CLI tokens and does not expire
Things that catch people out
- The key is displayed in full only once.
RENDER_API_KEYtakes precedence over CLI login tokens and doesn't expire, so use it only in automated environments.
Using your Render key with AI agents
A coding agent that can read your .env file or your shell history can read the key, and anything in its context can end up in logs, transcripts or a prompt-injected request. The safer pattern is to keep the key in a credential broker that performs the authenticated step for the agent and hands back only the result.
BotPassword works this way. For a Render key, these intents fit:
| Intent | What BotPassword does |
|---|---|
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. |
Render also publishes its own MCP server. Whatever server the agent uses, keep the credential it authenticates with out of the agent's context.
Set it up in your agent: Aider · Amp · Claude Code · Claude Desktop · Cline · OpenAI Codex CLI · all agents
Frequently asked questions
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.