A key looks like lumi_mcp_ followed by 48 lowercase hex characters. The same key works for the REST API and for MCP. It belongs to one Lumi account and acts as that person’s Lumi.
Make a key
Sign in at ai.avenpa.com, then Settings › Keys › New key › Make. Pick what it’s for and give it a name of up to 24 characters. Lumi asks you to confirm, then shows the key once.
- App or AI: for Claude Code, another AI, a script or your app. The name only tells your keys apart (without one it is “Lumi key”).
- Robot or device: the name is the robot’s, such as Bolt. It is also listed with your devices, and the robot API uses that name when a request doesn’t send one.
Both kinds are the same key: each works for the REST API and for MCP.
An account can hold up to 3 keys made this way. A fourth answers 409 too many keys; unlink one first. Apps that sign in with OAuth are counted apart (up to 10).
What a key can do
Whatever holds the key can talk to the account’s Lumi (paid from its credits), read, add to and take off its to-dos, calendar, memos, alarms and timers, read the recent chat and what Lumi remembers (and make it forget a line), and use its devices’ faces and voice. Lumi shows this list before it makes the key.
A key can’t change the account’s settings, plan or own AI key, and it never receives a password: when Lumi needs one, the person types it in the Lumi app.
Send it
Authorization: Bearer lumi_mcp_…
Bearer may be written in any case. A missing or malformed key answers 401 no_key; one that was unlinked or never made answers 401 bad_key.
Where it goes
| What | How |
|---|---|
| Claude Code | claude mcp add --transport http lumi https://ai.avenpa.com/mcp --header "Authorization: Bearer lumi_mcp_…" |
| Another MCP app | The address https://ai.avenpa.com/mcp and the header above. See Connect an AI. |
| Your own app | POST https://ai.avenpa.com/api/v1/chat with the header. See Chat. |
| A robot | POST https://ai.avenpa.com/api/v1/robot with the header. Without robot.name, the key’s name is used. See A robot’s brain. |
Keep it safe
- Keep it on your server or device, in an environment variable or a secrets store, not in code you commit.
- Never put it in a web page or a mobile app’s bundle. The API doesn’t allow browsers to call it for this reason.
- We keep only a fingerprint of the key, so we can’t show it again. If you lose it, make a new one.
End a key
A key doesn’t expire. Settings › Keys › Unlink ends it at once; the next call with it answers 401 bad_key. If a key may have leaked, unlink it and make a new one.