OpenAI has released version 1.58.0 of its API command-line tool with a clearer way to inspect API keys and service accounts. The 29 November release labels the scope of a terminal inventory, brings owner and identity information forward, and masks known one-time secret fields in the readable view. It is a client-side change aimed at people who need to know what they just queried before acting on the result.
The change is particularly useful in organisations that run multiple API projects. An account can have development, staging and production credentials that look similar on a small terminal screen. An empty result below a generic heading tells an operator little about whether they checked the right project, used the intended endpoint or were looking at the inventory available to that particular request. Version 1.58.0 gives that information a more prominent place.
The terminal shows which inventory it retrieved
OpenAI’s release links to the merged implementation, which describes support for the organisation’s admin-key inventory and selected project inventories. The readable output names the applicable scope. Empty results now describe what that request returned. That is a deliberately narrower claim than saying the organisation has no keys. An inventory is a view from a specific request, with its own permissions, filters and pagination.
Take a team investigating an unexpected dependency on a service account. A production operator may start by listing the project’s service accounts, then inspect the project keys and compare the names and ownership metadata with their deployment records. If the original command ran against the staging project, the inventory can be perfectly accurate and still lead the investigation in the wrong direction. The scope heading makes that error easier to catch at the point where someone reads the result or shares a terminal excerpt with a colleague.
The new view keeps complete IDs and preserves names, owner details and timestamps when the API returns them. It continues to show unfamiliar fields and distinguishes a field returned as null from one that was absent. That lets a reader tell the difference between information the service explicitly left empty and information the response did not include. Neither case is proof that a credential is safe to remove or that it is still being used.
Readable output and machine output serve different jobs
The implementation masks known fields used for one-time secrets in readable inventory output. OpenAI says explicit data formats and credential creation responses retain their existing behaviour. A list used for a routine inventory and a create command that returns a secret for provisioning have different purposes. The rendering change gives routine terminal inspection a narrower exposure surface while preserving the provisioning path.
That distinction matters for shell pipelines and logs. Machine-readable output still needs the same handling it had before the upgrade. Teams should continue to treat output according to the data format and the operation that generated it, rather than assuming the masking behaviour in a terminal screenshot applies to a JSON export. Scripts that parse the human-readable display may also need to account for different headings or field order. The PR says existing raw output, extraction, aliases, filters and pagination continue to work.
The change also handles malformed inventory records by returning an error that avoids exposing the underlying data and suggests retrying the read. That is operationally useful when a script or runbook is deciding whether an inventory ran successfully. An unreadable response and a valid inventory with zero rows should lead to different decisions.
Ownership metadata has a limited meaning
The OpenAI implementation notes draw a distinction between an owner’s project access and the validity of a key. An inventory can show who owns a record and describe the relevant access filter, while an application can still fail to authenticate for reasons the inventory view does not test. For an access review, the inventory helps join identifiers to people and service accounts. An authentication incident still needs evidence from the affected application, credential and project.
The published change is about the CLI’s display and interpretation of existing endpoints. It keeps the underlying request construction in place. OpenAI’s implementation notes say reviewers compared machine output and exercised the readable view with synthetic responses on macOS. They also say live admin-service acceptance and native Windows and Linux inventory were unverified in that review. Those limits matter if a team intends to use the release as evidence for a compliance procedure rather than as a more legible inspection tool.
The practical improvement is modest but real. A terminal inventory is often the first evidence someone gathers before rotating a credential, auditing project access or calling the application team. Making the scope, owner and response boundaries visible gives that first pass a better chance of finding the right record. The CLI remains one view of credential state, and the new output explains more clearly which view it is.