API Key management
An API Key tells AgentEarth which account a call comes from. Every integration method except the plugin marketplace (MCP, CLI, HTTP API, conversational install) needs one.
Creating a key
- Log in and open the Agents page.
- Click Create Agent and give it a recognizable name, such as "Claude Code – work laptop".
- Copy the generated key and store it somewhere safe.
We recommend a separate key for each client or use case. The account endpoint returns a stable agent_id and the current agent_name for each key, and if one key leaks you can disable it without affecting other clients.
Using it in environment variables
Use the environment variable name AGENTEARTH_API_KEY:
export AGENTEARTH_API_KEY="<your API Key>"When you reference it in a command, use double quotes; variables inside single quotes are not expanded:
--header "X-Api-Key: $AGENTEARTH_API_KEY"Disabling, enabling and deleting
| Action | Effect |
|---|---|
| Disable | Calls with this key fail immediately; you can enable it again at any time |
| Enable | The key works again; it's unchanged, so no client config needs updating |
| Delete | Permanently removed and cannot be restored; clients using it need a new key |
If you're not sure whether a key is still in use, disable it first and watch, rather than deleting it outright.
Agent limits
Each personal account can have up to 20 Agents in total, including both manually created and OAuth-authorized Agents. Disabled Agents still count toward this limit. Deleting an Agent frees a slot.
- Your account tier sets the limit for active manually created Agents. OAuth-authorized and disabled Agents do not count toward this limit. Existing Agents stay active after a downgrade. To create another Agent, you also need an available slot in the total limit.
- Expired keys can't be re-enabled; create a new one.
OAuth apps from plugin marketplace authorization
After you install and authorize AgentEarth from the WorkBuddy, TRAE or another plugin marketplace, an entry marked "OAuth-authorized app" appears on the Agents page for that client.
- Disable: the client disconnects immediately; enable it again to restore access, with no need to re-authorize.
- Delete: revokes that client's authorization; it disconnects immediately and you need to authorize again in the client to keep using it.
Keeping keys safe
- Don't put keys in code repositories, screenshots or public chats; store them in environment variables or your client's secret settings.
- Before sharing your screen or recording a demo, make sure no key is visible in your config files.
- If a key may have leaked, disable or delete it on the Agents page right away, then create a replacement.
