AWS WorkSpaces Logs Token Counts, Not Claude Code Actions

AWS's agent-ready WorkSpaces preview runs Claude Code on a managed desktop under central folder, network, model and tool policies. Its usage logs carry token counts only, with no prompts, responses or connector calls.

By Rajesh Beri·November 30, 2026·11 min read
Share:
A developer's desk with a thin-client monitor showing a Windows cloud desktop with a terminal window open, beside a locked steel filing cabinet whose top drawer is labelled with a blank paper tag.

Illustration generated using AI

AWS's agent-ready WorkSpaces let you run Claude Code on a managed desktop under central folder, network, model and tool policies, but the usage logs record token counts without prompts, responses or connector calls. That makes it a credible alternative to coding agents installed on unmanaged laptops, provided your security team accepts an audit trail that shows how much the agent spent and nothing about what it did. Pilot it now, while the agent features carry no extra charge, and write the logging gap into the pilot's exit criteria.

AWS announced the preview on November 29, 2026, the day before re:Invent opened. It runs only in US East (Ohio), there is no extra charge for the agent features while it is in preview, and you pay normal WorkSpaces and Amazon Bedrock rates for the desktop and the model calls.

What AWS Shipped in the Agent-Ready WorkSpaces Preview

An agent-ready WorkSpace is a managed Windows cloud desktop with Claude Code preinstalled, whose model access, folders, network and tools are set by an administrator-defined persona. The admin guide says that during the preview "the agent is Claude Code," and the employee can work with it through chat, a terminal or the full Windows desktop.

The eligibility list is narrow. You need a Power bundle or larger (GPU bundles included), Windows Server 2025, the DCV protocol and the WorkSpaces web client. Value, Standard, Performance and BYOL bundles are excluded, as is anything on PCoIP. Simple AD is not supported. Most important for planning: agentic capabilities can only be turned on when a WorkSpace is created, so the guide is explicit that you cannot add them to an existing desktop. Your current fleet does not convert. A pilot means provisioning new desktops in Ohio.

Connectors in the preview are GitHub and Asana, each signed in once per user from inside the WorkSpace. Model choice is limited to Anthropic models on Bedrock: the models page lists Claude Haiku 5.5, Opus 4.7, Opus 4.8, Opus 5, Opus 5.5, Sonnet 5 and Sonnet 5.5, served through US cross-Region inference in N. Virginia, Ohio and Oregon. If your Amazon Bedrock account has not submitted Anthropic's one-time use case form, allowing a model in WorkSpaces will not catch it, because WorkSpaces does not check your Bedrock access when you allow one.

Do not confuse this with the other WorkSpaces agent product. WorkSpaces for AI agents, generally available since June 30, 2026, lets any MCP-speaking agent operate legacy desktop applications and is priced on active session time. AWS's AI agents landing page describes both, and its "Get started" button points at the older product's AppStream 2.0 guide, so check which documentation your team is actually reading.

What the Policies Actually Enforce

The controls are real, and stronger than a default laptop install of a coding agent. AWS splits them into two layers, documented on the security policies page. The OS policy, enforced by Windows, controls internet access and which folders the agent can read or write, and it also restricts any program the agent starts. The Agent Harness policy, enforced by the agent, controls which tools run, which actions need approval and which MCP servers are allowed. AWS's comparison table says plainly that the harness policy does not restrict programs that the agent starts.

That distinction decides your design. A rule in the harness policy that blocks a tool does nothing once the agent has launched a script that does the same thing. Anything you need to hold, such as a path the agent must never read or a host it must never reach, belongs in the OS policy.

The defaults are sensible. With no OS policy, the agent runs under its own Windows account, writes only to its working folder, reads but cannot change Documents, Desktop and Downloads, and "can never read credential files, such as .ssh, .aws, and .npmrc," unless a policy names the exact path. Internet access is off by default, and AWS says the agent can never reach the instance metadata service, whatever the policy says. On the harness side, bypassPermissions and dontAsk are not available as permission modes, and users "can't loosen the policy from their own settings files."

Two defaults need changing. allowManagedMcpServersOnly is false out of the box, so the agent can use MCP servers that were never added to your Agentic Catalog. Set it to true. We have covered how loose agent allowlists turn into arbitrary execution, and an unmanaged MCP server is the same problem.

The second concerns network paths. The models page says model requests leave through an endpoint that WorkSpaces manages, so your VPC's egress controls, "such as security groups, network firewalls, and proxies, don't apply to this traffic." That keeps the agent working with internet access off, and it also means your proxy and DLP stack never see the prompts. Combined with the logging gap below, nothing in the WorkSpaces feature records what was sent to the model. The calls do run on Bedrock in your own account, so Bedrock's account-level model invocation logging, which is off by default, may capture them; AWS's WorkSpaces documentation does not say either way, so test it in the pilot.

Persona configurations are immutable. The personas page says you cannot edit one after you create it, and the security policies page says the same of policies. Changing a persona also does not touch WorkSpaces already built from it. You change a running desktop's models, connectors or policies directly; model changes land in about two minutes. Each persona holds up to 25 models, 25 MCP connectors, 50 contexts totalling 5 MiB, one OS policy and one harness policy, and an account gets 100 persona configurations per Region. AWS says the per-persona quotas are fixed. Name personas with a version number from day one, because you will be making new ones instead of editing old ones.


What the Usage Logs Leave Out

The usage logs tell you who spent tokens on which model, and nothing about what the agent read, wrote or called. The monitoring page describes "one record per agent inference request," carrying the WorkSpace, the user, the model and the token counts, in OpenTelemetry format under the event name gen_ai.client.inference.usage. It then says records contain identifiers and model names, "not prompts or responses," and "Calls that agents make to connectors aren't included."

For a FinOps team, that is enough. Records arrive within about five minutes, carry input, output and cache token fields, and include an outcome code that can read denied or capped. You can send them to CloudWatch Logs, S3 or Data Firehose. Set the log delivery up in us-east-2, because AWS warns that a delivery created in another Region "is created without error but receives no records." AWS CloudTrail captures administrative API calls, which covers who changed a persona or policy, and not what the agent did with it.

For an incident responder, the record is thin. If an agent pushes a secret to GitHub through the connector, the WorkSpaces logs will show that a user spent tokens around that time. The push itself is in GitHub's audit log, if your GitHub plan keeps one. The prompt that caused it is not in any log WorkSpaces gives you, and reconstructing an agent's actions after an incident starts with exactly that prompt and tool history.

The prerequisites page gives you one more signal. Model calls run under an IAM role that must be named AgenticWorkspacesInferenceRole, using a short-term Bedrock API key that expires with the session, and they show up in CloudTrail under the session name agentic-workspaces-<account-id>. Your SCPs must allow Bedrock inference, including bedrock:CallWithBearerToken, in all three US inference Regions, or setup and model calls fail. Bedrock API keys were the credential at the centre of October's LLMjacking incidents, so expect your cloud security team to ask about that permission.

The Registry Switch That Removes the Controls

One machine-wide registry value turns the governed agent into an ungoverned one. The sign-in page lets administrators allow other sign-in methods for Claude Code, including a Claude account or SSO, an Anthropic API key, the customer's own Bedrock configuration and Google Cloud. You enable it by setting ClaudeCodeMode to SelfManaged under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Amazon\AgenticWorkspaces and restarting the desktop.

AWS lists what stops applying: the gateway's model allowlist, connectors and usage logs, the Agentic Catalog settings, the security containment ("Claude Code runs as the user") and both the OS and harness policies. Traffic then goes "directly to the provider" through the WorkSpace's network interface in your VPC. At that point the agent is a laptop install with a remote display.

The switch has legitimate uses. A team on a Claude Enterprise contract may want its existing seat, data terms and admin console. If you allow it, AWS points you to Claude Code's own managed settings, placed on Windows at C:\Program Files\ClaudeCode\managed-settings.json, to restrict which providers users can choose. Anthropic's authentication docs describe forceLoginMethod and an allowedProviders key that refuses sessions for any other provider at startup, which needs Claude Code v2.1.285 or later. The same page warns that server-managed settings alone are "a convenience for machines you can't reach with device management, not as enforcement." We covered how managed settings hold up against plugin supply-chain attacks in September.

The bigger caveat sits in the troubleshooting guide: "A local administrator on the WorkSpace can bypass some on-instance controls." If your WorkSpaces standard grants developers local admin, the OS policy is advisory for those users. Decide who holds local admin on these desktops before you decide anything else.

How It Compares With the Laptop Alternatives

The strongest case for AWS's design is that it puts the controls on a machine you own end to end. Microsoft's MXC agent containers sandbox agents on Windows 11 endpoints but shipped before Intune could manage them. OpenAI's Codex runs stdio MCP servers outside its sandbox by default. Against those, default-deny credential paths, no metadata service access and internet off by default are a better starting point than most endpoint agents offer.

The case against is cost and lock-in. A Power bundle is a large desktop to hand to every developer, and AWS's WorkSpaces pricing page bills AlwaysOn desktops at a flat monthly rate and AutoStop desktops at a monthly base fee plus an hourly charge. The getting started guide adds that an AutoStop WorkSpace "stops after the idle time you set, and the agent stops with it," which rules out long unattended runs on the cheaper billing mode. The agent is Claude Code only, so teams standardised on GitHub Copilot or Cursor get nothing from it yet.


How to Run the Pilot

This Week:

  1. Pick five to ten engineers whose work already touches sensitive repositories, and have your end-user computing lead confirm they can be moved to new Power or larger Windows Server 2025 desktops in US East (Ohio). Existing WorkSpaces cannot be converted.
  2. Have your cloud security lead check your SCPs for Bedrock inference, including bedrock:CallWithBearerToken, in N. Virginia, Ohio and Oregon, and submit Anthropic's use case form in Bedrock if nobody has.
  3. Decide in writing whether pilot users get local administrator rights. If they do, record that the OS policy can be bypassed and treat the pilot as a usability test.

This Month:

  1. Build a locked-down persona with an OS policy (internet off, credential paths denied) and a harness policy with allowManagedMcpServersOnly set to true. Name it with a version number, because you cannot edit it later.
  2. Set up usage log delivery in us-east-2 with a retention policy, and check that records arrive within five minutes of a test session. Turn on Bedrock model invocation logging in the inference Regions too, and check whether the agent's prompts appear there.
  3. Turn on GitHub's audit log streaming for the pilot repositories, so connector actions are recorded somewhere, since the WorkSpaces logs will not have them.
  4. Confirm the ClaudeCodeMode registry value is absent on every pilot image, and add a check for it to your configuration compliance scan.

Before General Availability:

  1. Write three exit criteria into the pilot charter: prompt and response capture you control, connector call logging, and a stated price for the agent features. If AWS ships none of them, the pilot answers a usability question and not a governance one.
  2. Compare cost per developer against your current laptop setup, using the Power bundle rate in Ohio and the Bedrock token spend from the usage logs.

The Bigger Picture

Moving the agent into a managed desktop follows the logic enterprises applied to contractor and offshore access with VDI: when you cannot trust the endpoint, you move the work to a desktop you own, and you record what happens there. AWS's preview delivers the central control and leaves the recording to a later release. Hold the move of a whole engineering org until the logs show prompts, responses and connector calls.

Ask your AWS account team for the logging roadmap before you sign up the second cohort.

Continue Reading

Share:

Frequently Asked Questions

What are agent-ready Amazon WorkSpaces?

They are new Amazon WorkSpaces desktops with Claude Code preinstalled, announced in preview on November 29, 2026. Administrators set the allowed models, connectors, folder and network access, and tool approvals through persona configurations and OS and Agent Harness policies. The preview runs only in US East (Ohio).

Do agent-ready WorkSpaces log prompts and agent actions?

No. AWS's monitoring documentation says usage records carry the WorkSpace, user, model and token counts per inference request, and do not include prompts, responses or calls the agent makes to connectors such as GitHub and Asana. CloudTrail records administrative API calls only.

How much do agent-ready WorkSpaces cost during the preview?

AWS charges nothing extra for the agent features during the preview. You pay standard WorkSpaces rates for the desktop, which must be a Power bundle or larger on Windows Server 2025, plus Amazon Bedrock rates for model usage and any CloudWatch Logs, S3 or Firehose charges for log delivery.

Can I add the agent to an existing WorkSpace?

No. AWS says agentic capabilities can only be turned on when a WorkSpace is created, so a pilot needs new desktops on an eligible bundle using DCV and the web client, in US East (Ohio).

Can users bypass the WorkSpaces agent policies?

Two routes exist. Setting the ClaudeCodeMode registry value to SelfManaged lets Claude Code sign in to other providers, and AWS says the gateway, policies, containment and usage logs then stop applying. AWS's troubleshooting guide also says a local administrator on the WorkSpace can bypass some on-instance controls.

Newsletter

More on AI Governance & Risk, every Sunday

The week's enterprise AI news, AI Governance & Risk included, in one Sunday email.

Weekly, free. Unsubscribe any time. Privacy

Latest Articles

View All →