API Key Inventory
Request a live demo · Odoo.sh or On-Premise only, not Odoo Online (SaaS).
30 days
of silence before a key counts as idle
1 min
the finest grain of the last-use stamp
4
flags: never used, idle, no expiry, expired
19
automated tests, none failing
1
click and one confirmation to revoke a key
base
the only module it depends on
Every API key in the database in one list, with who owns it, when it expires and when it was last actually used, so the forgotten ones can be revoked
API Key Inventory is for the administrator of an Odoo 19 database who has been asked a simple question and could not answer it: which API keys are still in use? Integrations, scripts, a consultant's test and an AI agent each leave a key behind, and every key is a standing way into your data. Odoo shows a key's owner, name and creation date, but nothing about whether anything still uses it. This app adds the two facts that decide what to do: when the key was last used, and when it expires. It lists every key worst first, flags the ones worth a look, and lets you revoke a key with one click and one confirmation. Everything on this page was checked on an Odoo 19 database seeded with made-up users and keys, including a live call made with a real key.
How it works
Why a key nobody uses is the dangerous one
Use it when an auditor, a departing contractor or a security review asks which integrations still have access, and nobody can say.Reads keys, writes only a last-use stamp
An API key is a password that never asks for a second factor. It is made once, pasted into a script or an integration, and forgotten. If the integration is working, nobody touches the key. If it was a trial, nobody touches it either. From the outside the two look identical, and the safe-looking choice, leaving it alone, is the one that keeps the forgotten key valid for years.
Odoo does give you something to work with. Each user can see their own keys in their preferences, and administrators have a plain listing of every key (a Manage API Keys button in Settings > General Settings) with its owner, description, scope and creation date, and a delete button. What that listing cannot tell you is whether a key is alive. It has no last-use column and no expiry column, so a key created two years ago for a one-day trial sits in it beside a key carrying thousands of calls a day, and you have to guess.
API Key Inventory records the moment each key is used, at the point where Odoo checks it, and keeps that next to the key's owner, description, scope, creation date and expiry date. A Settings menu entry shows all of it in one list, sorted so the keys that have been quiet longest come first, with four filters for the cases that matter. A Revoke button deletes a key you have decided is dead.
It is a small app on purpose. It adds one list, one form and one menu with two entries, plus a few lines that run when a key is verified. It does not create keys, does not rotate them and does not send alerts.
Northfield Office Supply runs Odoo with a Shopify sync, a dock scanner gateway, a bank feed import and a Power BI report, and over the years two consultants have each left a test key behind. The administrator installs the app, presses Refresh and sees eight keys. Three are carrying traffic. Two have never been used at all, two have been silent for 52 and 214 days, and one has already expired. That is the list she takes to the IT lead, instead of a guess.
It does not tell you what a key did, only when it was last used. It does not decide for you: a key that looks idle may belong to a quarterly job, and only you know that.
1 Refresh: read every key into the inventory
Use it when you are opening the inventory for the first time, or want it to include keys made since you last looked.Copies key details into the inventory
Keys are made from each user's own preferences, so there is no event on the administrator's side to say that a new one now exists. An inventory that waited to be told would always be out of date.
The app adds an API Keys menu to Settings with two entries, Inventory and Refresh , visible to administrators only. Refresh goes and looks. It adds a row for each key it has not seen, removes the row of any key that no longer exists, and refreshes the details of the rest, so an expiry date changed since the last visit is picked up. Then it opens the list.
The inventory keeps a copy of each key's details (owner, description, scope, created and expiry dates), never the key itself. Pressing Refresh twice gives the same list, not duplicates. A key that has been used is also added to the list at that moment, even if nobody pressed Refresh, which is how a key made today shows up once it starts working.
Two entries under Settings, and nothing else added.
Before the first Refresh the list is empty, and says why.
Right after installing, the administrator opens Inventory and finds it empty. She opens Refresh and the list fills with eight rows: the keys of six users, made over the previous two years. Later a developer creates a ninth key in his preferences. It is not in the list until she presses Refresh again, or until the key is first used.
It does not refresh by itself on a schedule, and it does not watch for new keys. It also does not read the key values: Odoo itself only keeps a hashed form of them.
a list that matches the keys that exist right now: new keys added, deleted keys dropped, changed expiry dates updated.


2 The inventory: every key, worst first
Use it when you want to see all keys at once and know which to look at first.Read-only list
A list of keys in the order they were made puts your newest, probably healthiest keys first and buries the old ones. The keys you need to see are the ones nobody has used for the longest time, and they should not need hunting for.
One row per key with the owner, the description, the scope, when it was created, when it was last used, the number of days since last use, the expiry date, a tick if the key never expires, and a coloured status badge. The use count is available in the column picker and hidden by default. The Scope column can be hidden the same way.
The list is sorted by the last activity, oldest first. For a key that has never been used, the creation date stands in for the last use, so a key made two years ago and never used ranks as old rather than as brand new. Rows are coloured to match: red for a key that has never been used or never expires, amber for an idle key, grey for an expired one. Days since last use is counted in whole days and never shows a negative number.
You can search by owner, description or scope, and group the list by owner. Opening a row shows the same facts in a form (see section 5). The full screen, with the status badges and Revoke buttons, is shown at full width in the Screenshots section at the end of this page.
The left half of the list: who owns each key, when it was made, when it was last used, and the days of silence.
On the Northfield database the first row is a key described as Zapier trial (March) , owned by Daniel Ortiz, created 600 days ago and never used. Below it sits Legacy payroll export , last used 214 days ago, then another never-used test key, then the expired reporting key, then a bank feed import that has been silent for 52 days. Everything that is actually working, the Shopify sync and the dock scanner, is at the bottom with a green badge.
The list is a snapshot taken at the last Refresh, with use recorded as it happens. Keys that were made after the last Refresh and have not been used yet are not on it. It does not export or email the list: use Odoo's standard export on the selected rows if you need a file.
the keys that have been quiet longest are the first rows you read, and each one carries its own colour.

3 Last use, stamped when Odoo verifies the key
Use it when you need proof that a key is carrying real traffic, not somebody's belief that it is.Writes a stamp when a key is used
Odoo checks a key on every call an integration makes, and keeps no record that it did. The only way to learn that a key is alive is to switch it off and wait for somebody to complain, which is a poor way to find out.
It adds a few lines to Odoo's own key check. After Odoo has verified a key and accepted it, the app finds the key's row (creating it if the key was never listed), stamps Last Used with the current time and adds one to the Use Count . Because the stamp is made at the point of verification, it reflects real traffic. A wrong key records nothing, and neither does a key Odoo refuses.
The stamp is written at most once a minute per key. A key may be checked many times a second, and a write for each would cost more than the fact is worth. A second call inside the same minute changes nothing. The consequence is stated on the form too: the use count measures how many minutes a key was active in, not how many calls it made.
Each verified call costs two small lookups: one to find the key by its index and one to find its row. Writes are limited to once a minute.
Before: the Never used filter finds two keys, both created long ago and never called.
The two never-used keys are the Zapier trial and a Postman test owned by Priya Nair. To prove the recording works, a call was made over XML-RPC using the real Postman key. Odoo accepted it, and the Postman row moved to In use with Last Used set to that moment and zero days idle. Calls with the expired key and with a made-up key were both refused and recorded nothing. The after-picture is the full-width screen in the Screenshots section below.
Recording starts when the app is installed. A key that was last used yesterday, before you installed, shows as never used until its next call. After a week or two of running, the answer is far more useful than a guess, but on day one, treat Never used as never used since install.

4 Four flags: never used, idle, no expiry, expired
Use it when you want the shortlist of keys that deserve a decision, without reading every row.Read-only filters
Most of a key list is healthy. The risk is in four small groups, and they overlap, so reading the whole list row by row is slow and easy to get wrong.
The search panel has four filters. Never used shows keys that Odoo has never been seen to accept since the app was installed. Idle 30 days or more shows keys last used at least thirty days ago. No expiry date shows keys that nothing will ever retire. Expired shows keys whose expiry date has passed. Each is one click, and the status of a key is worked out when you open the list, so a key that went quiet yesterday appears in Idle today without anybody touching it.
A key has exactly one status badge, chosen in this order: Expired first, then Never used, then Idle, and In use for what is left. An expired key is therefore never shown as idle, whatever its history. The No expiry date filter is separate from the badge, because a key with no expiry can also be idle or never used, and the two flags together are the riskiest keys on the list.
The four filters, one click each.
Idle: two keys last used 214 and 52 days ago.
No expiry date: four keys that will never retire themselves.
The administrator opens Idle 30 days or more and gets two keys: the legacy payroll export, silent for 214 days, and the bank feed import, silent for 52. Both also have no expiry date, so both are on the No expiry list too. Four keys have no expiry. She now has a plan: ask the finance team about the bank feed, and revoke the payroll export.
The thirty-day threshold is fixed. It is not a setting. And an expired key does not stay in the list forever: Odoo's own scheduled clean-up deletes expired keys from its table, and the next Refresh then removes their rows here. Expired keys are visible for a while after they lapse, not permanently. Grouping by Status in the search panel currently raises an error on screen because status is worked out on the fly and cannot be grouped; group by Owner works, and the four filters above do the same job.
one click in the search panel gives the short list of keys that are never used, quiet for a month, without an expiry date or already expired.



5 One key in detail
Use it when you need the full picture of a single key before deciding about it.Read-only form
Before you revoke something that an integration may depend on, you want the whole story in one place, and you want to see which of its states the key is in.
Click a row to open its form. The title is the key's description. On the left you see the owner, the scope and the creation date. On the right you see the last use, the days since last use, the use count, the expiry date and whether the key never expires. A status bar at the top shows where the key stands: Never used, Idle or In use. The Revoke button sits next to it, in red. Nothing on the form is editable: the inventory records facts, and the keys themselves stay under Odoo's own screens.
Under the fields is a reminder that use is recorded at most once a minute, so the count measures minutes of activity rather than calls. The form can be paged through with the arrows, which lets you walk down the worst keys one after another.
The form of a key last used 52 days ago with no expiry date.
The bank feed import belongs to a user called Finance Bot, was created in September 2025, was last used on September 7 and has been called in 905 different minutes. It has no expiry date. That tells the administrator it was a real, busy integration that has stopped, which is a question for the finance team, not a key to delete blind.
It cannot change the scope or the expiry date. That is done in Odoo's own key screen, and this app does not get between you and it.

6 Revoke: delete the key itself
Use it when you have decided a key is dead, or leaked, and it must stop working now.Deletes the key, cannot be undone
Finding a forgotten key is half of the job. Ending it normally means asking the owner to open their preferences and delete it, or going through the standard listing, away from the evidence you just gathered.
Every row has a Revoke button, and so does the form. Pressing it asks for confirmation in plain words: This deletes the key. Anything still using it stops working immediately, and the key cannot be restored - a new one has to be issued. Confirming deletes the key from Odoo through its own removal routine and removes the row from the inventory. The server log records which key, whose it was and who revoked it.
If the key has already been removed by someone else, the app says so and suggests pressing Refresh, instead of failing silently. Only administrators can reach the button.
The confirmation says what will happen before it does.
After confirming: the Zapier trial row is gone, seven keys remain.
The Zapier trial key was created 600 days ago and never used. The administrator presses Revoke on its row and confirms. The list drops to seven keys, and the key can no longer sign in to anything. The log line names the key, its owner Daniel Ortiz and the administrator who revoked it.
It does not ask the owner first, send a notification or keep a copy of the key. If you revoke the wrong key, the integration breaks until a new key is created and pasted in.
the key stops working at once, the row disappears from the list, and the log line records who did it.
Revoking deletes the key from Odoo. Anything still using it stops working immediately, and a new key has to be issued. There is no undo.


7 Built so that recording never refuses a key
Use it when you are being asked to put code in the path that checks every API call.A failure is logged and ignored
Code in the key check is code that can break every integration at once. The thing this app exists to look after must not be put at risk by it. So the recording step runs inside a guard that catches every error it raises, writes it to the server log and lets Odoo carry on with the verified key. In the worst case you lose a timestamp. You never lose a valid key.
The recording only happens after Odoo has accepted the key. Odoo's own checks, including its scope and expiry rules, run first and are not changed. Odoo decides whether a call is allowed; this app only notes that it was.
The app stores no secret. The inventory copies the key's description, owner, scope and dates, and the key's short index is used only to find the right row. The key value itself is never held by the app.
The guard hides failures from the user, so they show up only in the log. Because a lost stamp makes a key look idler than it is, check the log on first use if you plan to rely on the numbers, and test the Never used and In use badges with a key of your own, as we did.
Who it is for
The Odoo administrator who has inherited a database full of integrations and wants to know which keys are alive before the next audit.
The consultant or IT lead who hands a system over, and wants the old test keys gone before they leave.
Whoever answers the security review : the list shows, per key, an owner, a last use and an expiry, which is what reviewers ask for.
It is not for end users, who never see it, and it is not a way to create keys, a secrets manager or an audit log of what each call did.
What this app does not do
Recording begins at install. A key used yesterday, before the app was installed, reads as never used until its next call.
The last-use stamp is written at most once a minute per key, so the use count is minutes of activity, not a count of calls.
The list is a copy taken when you press Refresh. A key created afterwards appears when you refresh or when it is first used.
An expired key is shown only until Odoo's own clean-up removes it from its table. After the next Refresh the row is gone, so this is not a permanent record of expired keys.
The idle threshold is thirty days and cannot be changed in a setting.
Grouping the list by Status shows an error, because status is worked out when you look and not stored. Group by Owner, or use the four filters.
It cannot create keys or change their scope or expiry. It sends no alerts and keeps no history of what each call did. For an AI agent connected over MCP, that is what AI Agent Guardrails is for.
Revoke asks nothing of the key's owner and cannot be undone. Only administrators can see the menu or the data.
Screenshots


Questions buyers ask
Does it show me the keys themselves?
No. It shows each key's description, owner, scope and dates. The key value is never stored by the app, and Odoo itself only keeps a hashed form.
How does it know a key was used?
It adds a few lines to Odoo's own key check. When Odoo accepts a key, the app stamps the time. A refused key records nothing.
A key I know is in use shows as never used. Why?
Recording starts when the app is installed. Use the key once, or wait for its next scheduled call, and it moves to In use.
Does it slow down my integrations?
Each verified call adds two small lookups. The stamp itself is written at most once a minute per key. If recording fails, the failure is logged and the call goes through.
What happens to expired keys?
They show with an Expired badge until Odoo's own scheduled clean-up deletes them. After the next Refresh their rows are gone too.
Can I get a notification when a key goes idle?
No. The app does not send alerts or emails. You open the list and use the filters.
Can it create or change keys?
No. Keys are made in each user's own preferences. This app lists them, records their use and revokes them.
Who can see it?
Only administrators: the menu and the data are both limited to the Settings administrator group.
Can I undo a Revoke?
No. The key is deleted. Create a new one and give it to the integration.
Does it work with keys used by AI agents over MCP?
It records any key that Odoo verifies through its key check, whatever sits on the other end. It does not record what the agent did with the access.
Requirements
- Odoo 19.0 or 20.0. The App Store sells each version separately, so buy the one that matches your database.
- Odoo.sh or On-Premise only. Third-party apps cannot be installed on Odoo Online (SaaS) databases. Check your hosting before buying.
- Module
mh_api_key_inventory, version 19.0.1.0.17, licensed OPL-1.