

# Choose how users sign in to Claude Code

**Note**  
This feature is in public preview. Features and behavior are subject to change.

Agent-ready WorkSpaces include Claude Code, installed as Anthropic publishes it. You choose how your users sign in to it. Every sign-in method that Claude Code supports works with the preinstalled copy, and users don't need to install a separate copy.


| Sign-in method | Who provides the credentials | Who bills you | 
| --- | --- | --- | 
| Amazon Bedrock through the WorkSpaces gateway (default) | Your AWS account, through the IAM role that account setup creates | AWS, for Amazon Bedrock usage | 
| Claude Platform on AWS | Your organization's Claude Platform on AWS workspace | AWS Marketplace | 
| Claude account, including single sign-on (SSO) | The user's or your organization's Claude account | Anthropic | 
| Anthropic API key | Your organization's Claude Console | Anthropic | 
| Amazon Bedrock in your own configuration | Your AWS account | AWS | 
| Google Cloud | Your Google Cloud project | Google Cloud | 
| Any other method that Claude Code supports | As configured | The provider | 

For the full list of methods and how each one works, see [Authentication](https://code.claude.com/docs/en/authentication) on the Claude Code documentation website.

## Default: Amazon Bedrock through the WorkSpaces gateway
<a name="agentic-claude-signin-default"></a>

By default, Claude Code uses Amazon Bedrock in your AWS account, through the WorkSpaces gateway. With this method:
+ Requests run on the IAM role in your account, and Amazon Bedrock bills your account.
+ Users can use only the models that you allow in the Agentic Catalog.
+ The OS policy and Agent Harness policy for the WorkSpace apply. For more information, see [Security policies](agentic-security-policies.md).
+ Users can work with the agent through chat, the terminal, or the desktop in the web client.

If you want your users to use only this method, you don't need to do anything.

## Allow other sign-in methods
<a name="agentic-claude-signin-allow-other"></a>

To let users sign in with other methods, you turn on the **Self-managed** sign-in setting for the WorkSpaces by using Group Policy. Users then sign in when they start Claude Code, using any method that you allow.

With other sign-in methods, Claude Code runs like a standard installation on the WorkSpace, and the following agent-ready WorkSpaces features don't apply to it:
+ **Governance:** The WorkSpaces gateway isn't used. Model allowlists, connectors, and usage logs from the WorkSpaces gateway don't apply.
+ **Agentic Catalog settings:** The persona configuration's models, connectors, and contexts aren't applied to Claude Code.
+ **Security containment:** Claude Code runs as the user, not as the agent's separate Windows account. The OS policy and Agent Harness policy don't apply.
+ **Agent experience:** The chat and terminal views in the web client aren't available. Users run Claude Code from a terminal on the WorkSpace desktop, for example Windows PowerShell or Windows Terminal.
+ **Billing:** Usage runs on your organization's or the user's own credentials, and the provider bills you or the user directly.

Claude Code connects directly to the provider that the user signs in with, such as Anthropic, Amazon Bedrock, or Google Cloud, through the WorkSpace's network interface in your VPC. Make sure that your VPC allows this traffic, for example through a NAT gateway, or through a VPC endpoint for Amazon Bedrock.

**To allow other sign-in methods**

1. On a computer that can manage Group Policy for your directory, open the Group Policy Management console.

1. Create a Group Policy object (GPO), or edit an existing one, that's linked to the organizational unit (OU) that contains your agent-ready WorkSpaces.

1. Go to **Computer Configuration**, **Preferences**, **Windows Settings**, **Registry**, and create a registry item with these values:
   + Hive: `HKEY_LOCAL_MACHINE`
   + Key path: `SOFTWARE\Policies\Amazon\AgenticWorkspaces`
   + Value name: `ClaudeCodeMode`
   + Value type: `REG_SZ`
   + Value data: `SelfManaged`

1. Restart the WorkSpaces so that they apply the setting.
**Note**  
If the setting doesn't take effect, restart the WorkSpace again. To confirm that the WorkSpace received the setting, check that the `ClaudeCodeMode` value exists under `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Amazon\AgenticWorkspaces` on the WorkSpace.

1. Tell your users how to sign in. When a user runs `claude` in a terminal on the WorkSpace desktop, Claude Code asks them to sign in.

### Limit which sign-in methods users can choose
<a name="agentic-claude-signin-limit"></a>

After you allow other sign-in methods, you can limit users to specific methods by using Claude Code's managed settings. For example, you can require users to sign in with your organization's Claude account. For the available settings, see [Restrict which API providers a machine may use](https://code.claude.com/docs/en/authentication#restrict-which-api-providers-a-machine-may-use) on the Claude Code documentation website. Deploy the managed settings in one of these ways: as the file `C:\Program Files\ClaudeCode\managed-settings.json`, or as a Group Policy registry value named `Settings` (type `REG_SZ`, containing the JSON) under `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\ClaudeCode`. For more information, see [Deploy managed settings](https://code.claude.com/docs/en/managed-settings) on the Claude Code documentation website.

### Return to the default
<a name="agentic-claude-signin-return-default"></a>

Delete the `ClaudeCodeMode` registry value, or remove the registry item from the GPO, and then restart the WorkSpaces.