管理密钥不再必须拥有整个组织的完全管理员权限。现在,您可以将密钥设置为只读、限制其仅适用于某个工作区,或同时应用这两种限制,从而确保每个密钥只能执行其创建时指定的任务。只读密钥可以查看 API 密钥、活动记录和用量数据,而读写密钥还可以创建、更新和删除 API 密钥。如果密钥泄露或被滥用,损害范围将得到严格控制。
该功能今日面向所有计划下的所有组织开放。您可以从工作区的“密钥”页面或管理 API 密钥页面创建密钥,并查阅管理 API 密钥指南以了解每种密钥可调用的路由。
团队运行自己的独立工作区,现在其自动化流程也能如此。
随着组织在 OpenRouter 上的规模扩大,他们通常将工作拆分为多个工作区,往往每个团队对应一个工作区。每个团队运行自己的独立工作区,而组织管理员则负责管理所有共享资源:积分、预算和组织设置。
在此之前,管理密钥始终拥有对整个组织的完全读写权限。如果某个团队希望自动化其自身的工作区,就必须使用能够访问其他所有工作区的密钥。
现在,每个密钥都具备两项设置。范围(Scope)决定密钥的作用域:可以是单个工作区或整个组织。访问级别(Access level)决定其在该范围内的操作权限:只读或读写。工作区管理员可以为自己的工作区创建密钥,因此部署流水线可以轮换团队的 API 密钥,智能体可以配置护栏,或者脚本可以将新成员添加到工作区,而所有这些操作都不会触及另一个团队的工作区。
范围将密钥限制在单个工作区内
仅限工作区的密钥仅在其所属工作区内生效。如果请求指定了其他工作区或属于其他工作区的资源,OpenRouter 将拒绝访问。即使智能体存在缺陷或密钥泄露,也无法触及您组织内的其余部分。
在其所属工作区内,该密钥可以管理 API 密钥、成员、护栏及护栏策略、自有提供商密钥、可观测性目标以及预设配置。它还可以读取工作区的预算、活动记录和数据分析数据。
预算限制、积分和组织设置仍由您的组织管理员掌控。团队可以自动化其工作区内的所有事务,但仍无法自行提高其工作区的预算。设置工作区预算、创建或删除工作区、管理组织成员以及私有端点仍需使用组织密钥,其运作方式与以往一致。
访问级别是第二项设置,同样适用于工作区密钥和组织密钥。只读密钥可以调用其范围允许的所有读取路由,包括数据分析查询。任何旨在创建、更改或删除内容的请求都将返回错误。
这非常适合仅需查看数据的工具。成本看板可以拉取用量数据,监控智能体可以监视活动记录,审计脚本可以列出密钥、护栏和提供商密钥。您可以接入新的报告或审计工具,而无需授予其对您账户的写入权限。
为每项任务分配仅具备所需访问权限的密钥
范围和访问级别组合成四种类型的密钥:
为单个团队创建并轮换 API 密钥的智能体,应获得该团队工作区的读写密钥。
用于单个团队的用量看板,应获得该团队工作区的只读密钥。
全组织的审计或成本工具,应获得只读的组织密钥。
任何需要创建工作区或设置预算限制的任务,都应保留读写性质的组织密钥。
这两项设置在创建密钥时即已固定,因此密钥无法在后续获取额外权限。如需更改任一设置,请创建新密钥并删除旧密钥。
在仪表盘中创建密钥
打开工作区,进入“密钥”页面,并选择“管理密钥”标签页。工作区管理员可以为其自己的工作区创建密钥,组织管理员则可以为任何工作区创建密钥。
点击“新建管理密钥”。对话框将显示该密钥的作用域所属的工作区。
输入名称,选择过期时间,并在访问级别下选择“只读”或“读写”。
在密钥显示时复制它。您将无法再次看到它。
对于覆盖整个组织的密钥,组织管理员可以使用“管理 API 密钥”页面。
您的代理和工具将以它们目前使用管理密钥的方式使用该密钥,即作为管理 API 上的 Bearer token:
curl https://openrouter.ai/api/v1/keys \
-H "Authorization: Bearer $MANAGEMENT_KEY "
要查看您已有的管理密钥,请打开“安全设置”,进入“密钥安全”,打开“筛选密钥”,并选择“显示管理密钥”。每个活跃密钥都会列出其所有者、最后使用时间和过期时间。《管理 API 密钥指南》列出了每种密钥可以调用的所有路由。
Management keys no longer have to come with full admin access to your whole organization. Now you can make a key read-only, limit it to one workspace, or both, so each key can only do the job it was created for. Read-only keys can view API keys, activity, and usage, and read/write keys can also create, update, and delete API keys. If a key leaks or gets misused, the damage stays contained.
Available today to every organization, on every plan. Create a key from your workspace’s Keys page or from Management API Keys , and see the management API keys guide for the routes each kind of key can call.
Teams run their own workspace, and now their automation can too
As organizations grow on OpenRouter, they split their work into workspaces, often one per team. Each team runs its own workspace, and Organization Admins look after what everyone shares: credits, budgets, and organization settings.
Until now, a management key always had full read and write access to the whole organization. A team that wanted to automate its own workspace had to use a key that could reach every other workspace too.
Now each key has two settings. Scope sets where a key works: one workspace, or the whole organization. Access level sets what it can do there: read only, or read and write. Workspace Admins can create keys for their own workspace, so a deploy pipeline can rotate a team’s API keys, an agent can set up guardrails, or a script can add teammates to the workspace, without any of them reaching another team’s workspace.
Scope keeps a key inside one workspace
A workspace-scoped key only works on its own workspace. If a request names another workspace, or a resource that belongs to one, OpenRouter refuses access. A buggy agent or a leaked key can’t reach the rest of your organization.
Inside its workspace, the key can manage API keys, members, guardrails and guardrail policies, your own provider keys, observability destinations, and presets. It can read the workspace’s budgets, activity, and analytics.
Budget limits, credits, and organization settings stay with your Organization Admins. A team can automate everything inside its workspace and still can’t raise its own workspace budget. Setting a workspace budget, creating or deleting workspaces, managing organization members, and private endpoints still need an organization key, which works the way it always has.
Access level is the second setting, and it applies to workspace keys and organization keys alike. A read-only key can call the read routes its scope allows, including analytics queries. Any request that would create, change, or delete something returns an error.
That fits the tools that only need to look. A cost dashboard can pull usage, a monitoring agent can watch activity, and an audit script can list keys, guardrails, and provider keys. You can connect a new reporting or audit tool without giving it write access to your account.
Give each job a key with only the access it needs
Scope and access level combine into four kinds of key:
An agent that creates and rotates API keys for one team gets a read/write key for that team’s workspace.
A usage dashboard for one team gets a read-only key for that team’s workspace.
An organization-wide audit or cost tool gets a read-only organization key.
Anything that creates workspaces or sets budget limits keeps a read/write organization key.
Both settings are fixed when you create a key, so a key can’t gain access later. To change either, create a new key and delete the old one.
Create a key in the dashboard
Open the workspace, go to Keys , and select the Management keys tab. Workspace Admins can create keys for their own workspace, and Organization Admins can create them for any workspace.
Click New management key . The dialog shows which workspace the key is scoped to.
Enter a name, choose an expiration, and pick Read only or Read and write under Access level .
Copy the key when it’s shown. You won’t see it again.
For a key that covers the whole organization, Organization Admins use the Management API Keys page.
Your agents and tools use the key the way they use a management key today, as a Bearer token on the management API:
curl https://openrouter.ai/api/v1/keys \
-H "Authorization: Bearer $MANAGEMENT_KEY "
To review the management keys you already have, open Security settings , go to Key safety , open Filter keys , and select Show management keys . Each active key is listed with its owner, last use, and expiration. The management API keys guide lists every route each kind of key can call.
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-11-30 | 8.4 | 12 | 入选 |
| 2026-11-22 | 8.4 | 22 | 入选 |
| 2026-11-21 | 8.4 | 38 | 未入选 |
| 2026-11-20 | 8.49 | 35 | 未入选 |
| 2026-11-19 | 8.77 | 39 | 未入选 |
| 2026-11-18 | 9.22 | 32 | 未入选 |