How do I remove an API key that AI agents use?
In Settings > Accounts center > My agents, on the API keys panel, click Remove on the key. The window lists the agents that use that key. While any of them is Active, the Remove key button stays locked: pause the agent, switch its key or delete the agent from the same window.
Before you start
- Permission: removing the key, pausing and switching keys need permission to edit AI agents. Deleting an agent needs permission to delete AI agents.
Steps
- Open Settings > Accounts center > My agents.
- On the API keys panel, click Remove on the key you want to take out.
- Under Agents using this key, each row shows the agent, its status and the View agent button.
- For each Active agent, open the row's ⋯ menu and pick an option:
- Pause agent: it stops answering and no longer blocks the removal.
- Switch to another key: pick another valid key from the same provider. The agent keeps answering with it.
- Delete agent: confirm with Delete on the row itself. Conversations stay in the history.
- With no active agent on the list, click Remove key.
What happens to paused or draft agents
They are left without a key. Such an agent can't be turned back on until it has another key: trying to activate it shows This credential was removed. Pick another key for the agent.
To fix it, open the agent, go to the Configuration tab and, on the Model panel, use Pick another key. The switch applies right away, without publishing.