Workspaces
Organize API keys, manage team access, and control costs with workspaces.
Workspaces provide a way to organize your API usage within an organization. Use workspaces to separate different projects, environments, or teams while maintaining centralized billing and administration.
How workspaces work
Every organization has a default workspace that cannot be renamed, archived, or deleted. It has no member list of its own, because access to it follows each memberâs organization role. When you create additional workspaces, you can assign members, service accounts, Developer API keys, and resource limits to each one.
Key characteristics:
- Workspace identifiers use the
wrkspc_prefix (for example,wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ). - Maximum 1,000 workspaces for each organization by default (archived workspaces and the default workspace donât count). Creating a workspace at the limit returns a
400error with the messageWorkspace limit reached. Contact your account team if you need more. - The default workspace has a
wrkspc_ID like any other workspace:- API responses carry that ID in the
anthropic-workspace-idresponse header. Get WorkspacePreview with links to the API reference available â press Tab until focus enters the card, Escape to return. and Update WorkspacePreview with links to the API reference available â press Tab until focus enters the card, Escape to return. accept it, but Update Workspace rejects a new name for the default workspace. - List WorkspacesPreview with links to the API reference available â press Tab until focus enters the card, Escape to return. includes the default workspace only when you pass
include_default=true. - The Usage and Cost Analytics API reports its usage and cost under that ID. The legacy Usage and Cost API reports show
nullfor itsworkspace_id. - For a Developer API key scoped to the default workspace, the keyâs
scopefield carries that ID.
- API responses carry that ID in the
- Developer API keys are scoped to one workspace or to the organization. A key scoped to a workspace can only access resources within that workspace. With a key scoped to the organization, send a workspace ID header on each Claude API request to choose the workspace. For the key types, see Key types on the Developer API keys page.
Claude Code workspace
When a member of your organization first signs in to Claude Code with their Claude Console account, Anthropic automatically creates a Claude Code workspace in the organization and adds that member to it. Every subsequent member who signs in to Claude Code is added the same way.
The Claude Code workspace keeps Claude Code traffic separate from your other API workloads:
- Claude Code mints a per-user API key in this workspace at sign-in. You cannot create keys in it manually from the Console.
- A Claude Code key stops working if its owner is removed from the workspace or organization, unlike a workspace key.
- Claude Code usage is rate-limited separately, and admins can cap its share of the organizationâs limits under Rate limits in the Claude Console.
- It is the only workspace that supports per-user monthly spend limits.
Workspace roles and permissions
Members can have different roles in each workspace, allowing fine-grained access control.
| Role | Permissions |
|---|---|
| Workspace User | Use playground only |
| Workspace Limited Developer | Create and manage API keys, use the API (with some limits in the Claude Console, listed after this table) |
| Workspace Developer | Create and manage API keys, use the API |
| Workspace Admin | Manage workspace settings and members (adding service accounts also requires the organization developer or admin role) |
| Workspace Billing | View workspace billing information (inherited from organization billing role) |
The following limits apply only to the Claude Consoleâs interface, not to the API. In the Console, a Workspace Limited Developer cannot:
- Open or start sessions, open memory stores, or manage deployments for Claude Managed Agents
- Download or delete files on the Files page
These limits help keep members from seeing session content by accident. They arenât a security control. With an API key or ant auth login, a Workspace Limited Developer has the same access as a Workspace Developer. In the Admin API, the Workspace Limited Developer role is workspace_restricted_developer.
Role inheritance
- Organization admins automatically receive Workspace Admin access to all workspaces.
- Organization billing members automatically receive Workspace Billing access to all workspaces.
- Organization users and developers must be explicitly added to each workspace.
- Service accounts are added to workspaces on the Service accounts page (
platform.claude.com/keys/service-accounts) in the Claude Console: select Add to workspace in the accountâs menu or on its own page. To see the accounts in one workspace, filter the list by workspace. To add one, you must be an organization admin, or an organization developer who is a Workspace Admin in that workspace.
Key creation by role
Workspace Limited Developers, Workspace Developers, and Workspace Admins can create two key types in their workspace: personal keys and legacy workspace keys. The Claude Code workspace is an exception. A memberâs organization role determines whether they can create service account keys, keys for the default workspace, or keys scoped to the organization. See Who can create which key on the Developer API keys page.
Access on cloud platforms
On the following platforms, your cloud providerâs identity and access management (IAM) controls who can call the API in a workspace. You donât assign members or workspace roles, even in the Claude Console.
- Claude Platform on AWS: A request names its workspace in the
anthropic-workspace-idheader. IAM policies that name the workspaceâs Amazon Resource Name (ARN) grant or deny access to that workspace.- If you use a workspace for each of your customers, these policies can limit each IAM principal to one customerâs workspace.
- A Claude Console session covers the whole organization, and some Console pages bypass IAM checks.
- Claude Models on Google Cloud (Anthropic managed): A request names its workspace in the base URL. You grant IAM roles on your Google Cloud project, so a role applies to every workspace in that project.
- Workspaces in that project keep resources apart, but they donât limit who can read, use, or manage those resources.
- When people or services must not reach certain resources, keep those resources in a separate project. Each project has its own Anthropic organization, so repeat the account setup in each project, starting from step 2 (enabling the services).
- If you use a workspace for each of your customers, separation depends on your application sending the right workspace ID.
Managing workspaces
Using the Console
Create and manage workspaces on the Workspaces page in the Claude Console.
Create a workspace
Open workspace settings
In the Claude Console, go to the Workspaces page (
platform.claude.com/settings/workspaces).Open the Create workspace page
Click Create workspace to open the Create workspace page (
platform.claude.com/settings/workspaces/new) in the Console.Configure the workspace
Enter a workspace name and select a color for visual identification.
Create the workspace
Click Create workspace to finalize.
Edit workspace details
To modify a workspaceâs name or color:
- Select the workspace from the list.
- Open the More actions menu (three dots) and select Edit details.
- Update the name or color and save your changes.
Add members to a workspace
- In the Claude Console, go to the Members page (
platform.claude.com/settings/members). - Click Add to workspace.
- Select the workspace, the organization member to add, and their workspace role.
- Click Add to workspace to confirm.
Remove members from a workspace
- On the Members page in the Claude Console, select the workspace from the Workspace dropdown menu. If it shows All, Remove member removes the member from your organization instead.
- At the end of the memberâs row, open the More actions menu (three dots) and select Remove member.
- Click Remove to confirm.
Set workspace limits
You set a workspaceâs spend limits and rate limits on different Console pages. For the steps, see Setting workspace limits.
Archive a workspace
If you archive the Claude Code workspace, members of your organization can no longer sign in to Claude Code through Console billing. See this pageâs Claude Code workspace section.
To archive a workspace, open its More actions menu (three dots) and select Archive workspace. Archiving deactivates the workspace and keeps its historical data for reporting.
The Admin API still lists the workspaceâs keys, marked as archived.
Using the Admin API
Programmatically manage workspaces using the Admin API.
Authenticate with an Admin API key or an OAuth token with the org:admin scope. You can also use a personal or service account key scoped to the organization. A personal or service account key has the permissions of its user or service account. Keys scoped to a single workspace, including workspace keys, donât work. See the Admin API pageâs Authentication section.
On Claude Models on Google Cloud (Anthropic managed) and Claude Platform on AWS, use the platformâs base URL and credentials instead. See the Admin API pageâs Cloud platforms section.
The following examples read the Admin API key from the ANTHROPIC_API_KEY environment variable. The SDK exposes these endpoints under client.organization.workspaces.
Create a workspace:
client = anthropic.Anthropic()
workspace = client.organization.workspaces.create(name="Production")
print(f"id: {workspace.id}")
print(f"name: {workspace.name}")List workspaces:
client = anthropic.Anthropic()
workspaces = client.organization.workspaces.list(limit=10, include_archived=False)
# Automatically fetches more pages as needed, so `limit` sets the page size, not the total.
for workspace in workspaces:
print(f"{workspace.id}: {workspace.name}")Archive a workspace:
client = anthropic.Anthropic()
workspace = client.organization.workspaces.archive("wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ")
print(f"id: {workspace.id}")
print(f"archived_at: {workspace.archived_at}")For complete parameter details and response schemas, see the Workspaces API referencePreview with links to the API reference available â press Tab until focus enters the card, Escape to return..
Managing workspace members
Add a member to a workspace:
client = anthropic.Anthropic()
member = client.organization.workspaces.members.add(
"wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
user_id="user_01WxYzAbCdEfGhJkMnPqRsTu",
workspace_role="workspace_developer",
)
print(f"user_id: {member.user_id}")
print(f"workspace_role: {member.workspace_role}")Update a memberâs role:
client = anthropic.Anthropic()
member = client.organization.workspaces.members.update(
"user_01WxYzAbCdEfGhJkMnPqRsTu",
workspace_id="wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
workspace_role="workspace_admin",
)
print(f"user_id: {member.user_id}")
print(f"workspace_role: {member.workspace_role}")Remove a member from a workspace:
client = anthropic.Anthropic()
removed_member = client.organization.workspaces.members.remove(
"user_01WxYzAbCdEfGhJkMnPqRsTu",
workspace_id="wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
)
print(f"user_id: {removed_member.user_id}")For complete parameter details, see the Workspace Members API referencePreview with links to the API reference available â press Tab until focus enters the card, Escape to return..
API keys and resource scoping
Apart from organization-level requests, such as Admin API requests, every request runs in exactly one workspace. It can only access resources within that workspace. Which workspace a keyâs requests run in depends on the keyâs type and scope: see Key types on the Developer API keys page.
On Claude Models on Google Cloud (Anthropic managed) and Claude Platform on AWS, these key types donât apply. The request names the workspace, as Access on cloud platforms describes.
Resources scoped to workspaces include:
- Files created through the Files API
- Message Batches created through the Batch API
- Skills created through the Skills API
Prompt caches are also isolated by workspace on the Claude API and on some cloud platforms.
Some resources are managed differently:
- MCP tunnels are managed with a
workspace:manage_tunnelsOAuth token obtained through Workload Identity Federation, not an API key.- Tunnels are created in a workspace. The Console MCP tunnels list and the MCP server picker for Claude Managed Agents show tunnels in the current workspace only.
- The cap of 10 active tunnels applies organization-wide.
- In the Claude Console, managing tunnels requires the admin organization role. Organization developers can view tunnels there but not change them.
- Workspaces themselves and organization members are managed at the organization level through the Admin API. For the credentials it accepts, see Using the Admin API.
To find a workspaceâs ID, use either of these:
- The ID column on the Workspaces page in the Claude Console. The page lists the default workspace too.
- List WorkspacesPreview with links to the API reference available â press Tab until focus enters the card, Escape to return. in the Admin API. It includes the default workspace only when you pass
include_default=true.
Identify the workspace behind an API response
Claude API responses include an anthropic-workspace-id header alongside the request-id and anthropic-organization-id response headers. Its value is the wrkspc_-prefixed ID of the workspace that the requestâs API key or access token resolved to, including when that workspace is the default workspace. For example, a successful response includes headers like these:
HTTP/1.1 200 OK
request-id: req_018EeWyXxfu5pfWkrYcMdjWG
anthropic-organization-id: 0d0e7a3b-52f1-4c7e-9a51-3f6f2f7c1b9e
anthropic-workspace-id: wrkspc_01JwQvzr7rXLA5AGx3HKfFUJThe header is absent when the credential doesnât resolve to a workspace (for example, on Admin API requests) or when the request fails before authentication completes, such as a 401 error.
The following examples send a Messages API request and read the workspace ID from the response headers. Set ANTHROPIC_API_KEY to a key scoped to a single workspace (see Developer API key scope), not to an Admin API key:
client = anthropic.Anthropic()
response = client.messages.with_raw_response.create(
model="claude-opus-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello, Claude"}],
)
workspace_id = response.headers.get("anthropic-workspace-id")
print(f"Workspace ID: {workspace_id}")Workspace ID: wrkspc_01JwQvzr7rXLA5AGx3HKfFUJThe same accessors read the header from other Claude API endpoints too, including the Claude Managed Agents APIs. For example, read anthropic-workspace-id from the response that creates a session to record which workspace the session belongs to.
With the workspace ID from a response, you can:
- Confirm which workspaceâs usage, cost, and rate limits the request counted toward
- Match it against the
workspace_idfield in Usage and Cost Analytics API rows, which carry this same ID for the default workspace - Match it against the
scopefield of Developer API keys in the Admin API, which carries the ID of the workspace that a key is scoped to, including the default workspace - Pass it to Get WorkspacePreview with links to the API reference available â press Tab until focus enters the card, Escape to return. with an Admin API key to check whether itâs your default workspace, which comes back with
"name": "Default" - Find the requestâs resources, such as sessions, files, message batches, and skills: look up the workspaceâs name on the Workspaces page in the Claude Console, then select it in the workspace picker on a page such as Files
Workspace limits
You can set custom spend and rate limits for each workspace to protect against overuse and ensure fair resource distribution.
Setting workspace limits
Workspace limits can keep a workspace below your organizationâs limits, but they canât raise those limits:
- Spend limits: Cap monthly spending for a workspace. To set these, go to Spend limits in the Claude Console (
platform.claude.com/spending/spend-limits). Under Workspace limits, select the workspace from the dropdown menu. Then click Set limit or Adjust limit next to Monthly spend limit. If Anthropic bills your organization directly, you can also set up email alerts for when spending reaches an amount you choose: click Add notification or Edit next to Email notifications. - Rate limits: Limit requests per minute, input tokens per minute, or output tokens per minute. To set these, go to Rate limits in the Claude Console, select the workspace from the Workspace dropdown menu, and click Edit next to a model.
A spend limit on the default workspace might not count or stop some usage in that workspace. This includes usage from the Claude Console (such as playground) and from Claude Managed Agents sessions. It also includes Claude Code or Claude Desktop usage when a member signs in with a Claude Console account and uses the default workspace. Your organizationâs spend limit applies to all of this usage.
For detailed information on rate limits and how they work, see Rate limits. You can also read your current organization and workspace rate limits and set workspace rate limits programmatically with the Rate Limits API, which stores a value above the organizationâs limit but still enforces the lower of the two.
Usage and cost tracking
Track usage and costs by workspace using the Usage and Cost Analytics API:
client = anthropic.Anthropic()
rows = client.beta.organization.analytics.usage.list(
starting_at="2026-09-01T00:00:00Z",
ending_at="2026-09-08T00:00:00Z",
time_bucket_width="1d",
workspace_ids=["wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"],
group_by=["workspace_id"],
)
for row in rows:
print(f"{row.starting_at} {row.group.workspace_id}: {row.usage.total_tokens}")Usage and costs in the default workspace are reported under the default workspaceâs own ID.
Common use cases
Environment separation
Create separate workspaces for development, staging, and production:
| Workspace | Purpose |
|---|---|
| Development | Testing and experimentation with lower rate limits |
| Staging | Pre-production testing with production-like limits |
| Production | Live traffic with full rate limits and monitoring |
Team or department isolation
Assign workspaces to different teams for cost allocation and access control:
- Engineering team with developer access
- Data science team with their own API keys
- Support team with limited access for customer tools
These examples rely on workspace roles and API keys, which work differently on Claude Models on Google Cloud (Anthropic managed) and Claude Platform on AWS. Before you plan your workspaces, read Access on cloud platforms.
Project-based organization
Create workspaces for specific projects or products to track usage and costs separately.
Best practices
Plan your workspace structure
Consider how youâll organize workspaces before creating them. Think about billing, access control, and usage tracking needs.
Use meaningful names
Name workspaces clearly to indicate their purpose (for example, âProduction - Customer Chatbotâ or âDev - Internal Toolsâ).
Set appropriate limits
Configure spend and rate limits to prevent unexpected costs and ensure fair resource distribution.
Audit access regularly
Review workspace membership periodically to ensure only appropriate users have access.
Monitor usage
Use the Usage and Cost Analytics API to track workspace-level consumption.
FAQ
Every organization has a default workspace that cannot be renamed, archived, or deleted. For how it differs from other workspaces, see How workspaces work.
Anthropic creates the Claude Code workspace automatically the first time a member of your organization signs in to Claude Code with their Console account. It isolates Claude Codeâs API keys, usage, and rate limits from your other workloads. See Claude Code workspace for details.
Yes. Each organization can have up to 1,000 workspaces by default, and archived workspaces and the default workspace donât count toward this limit. If you need more, contact your account team.
Organization admins automatically get the Workspace Admin role in all workspaces. Organization billing members automatically get the Workspace Billing role. Organization users and developers must be manually added to each workspace.
Organization users and developers can be assigned Workspace Admin, Workspace Developer, Workspace Limited Developer, or Workspace User roles. The Workspace Billing role cannot be manually assigned; itâs inherited from having the organization billing role.
Not while they hold those organization roles, with one exception: billing members can be upgraded to the Workspace Admin role. Organization admins and billing members also cannot be removed from workspaces while they hold those roles. To change their workspace access in any other way, change their organization role first.
If an organization admin or billing member is demoted to user or developer, they lose access to all workspaces except ones where they were manually assigned roles. When users are promoted to admin or billing roles, they gain automatic access to all workspaces.
Behavior depends on the key type.
A personal or service account key stops working in a workspace shortly after its user or service account is removed from it. A service account key keeps working even if the user who created it is removed. Workspace keys (legacy keys without an owner) continue to work. In the Claude Code workspace, each key is bound to the member who created it and stops working when that member is removed.
Personal keys are archived when their user is removed from the organization. If the user is re-invited, they need to create new keys; archived keys are not restored.
See also
Was this page helpful?