AI keys and revocation

How EDEXTRON AI keys work, what each permission allows, and how to revoke a key that may have leaked.

An AI key lets an AI client (Codex CLI, Claude Code or any MCP client) act on your account through the MCP server at https://mcp.edextron.com/mcp. It is sent as Authorization: Bearer edx_....

Creating a key

On Connect AI:

  1. Enter a Key name that tells you where it is used ("Codex laptop", "Claude Code office PC").
  2. Choose the Permissions:
Permission Scope Allows
Read devices and relay states devices:read list_devices, get_device, get_relay, recent_activity
Switch relays (where AI control is allowed) relays:write set_relay, only on relays with Allow AI control on
Rename relays outputs:rename rename_output
  1. Press Create key and copy it. The key is shown only once and cannot be recovered. If you lose it, revoke it and create a new one.

Give each computer or tool its own key. Then you can revoke one without breaking the others.

What a key can never do

  • See or switch boards in another account
  • Switch a relay where Allow AI control is off
  • Turn Allow AI control on or off. Only you can, in the web dashboard
  • Add or remove boards, create pairing codes, or create other keys

How keys are stored

  • The server stores only a keyed hash (HMAC-SHA256 with a server-side secret) of the key, never the key itself. Nobody at EDEXTRON can show you your key again.
  • The list shows each key's first characters, Created and Last used (or Never used), so you can spot keys that are unused or unexpectedly active.
  • Keys do not expire. They work until you revoke them.
  • You can have up to 10 active keys.

Revoking a key

Press Revoke next to the key and confirm. Revocation takes effect immediately: AI clients using the key get 401 "Invalid or expired API key." on their next request, and a command still waiting to be sent with that key is not sent. A revoked key stays in the list marked Revoked and can't be turned back on.

Revoke a key when:

  • a computer with the key is lost, sold or shared,
  • the key was pasted into a chat, a screenshot, a ticket or a Git repository,
  • you no longer use that AI client,
  • Last used shows activity you don't recognise.

Then remove it from the client: delete the EDEXTRON_TOKEN variable (Codex) or run claude mcp remove edextron --scope user (Claude Code).

Rate limits per key

To protect your boards, each key is limited to about 120 requests per minute (bursts of 20), 30 relay switches or renames per minute (bursts of 5), and 4 requests at a time. Over the limit, tools return RATE_LIMITED with a suggested wait.