Claude Code✓ Confirmed in official docsAdded Oct 20
How to check Managed Agents security settings with /claude-api managed-agents-secure in Claude Code
Claude Code 2.1.304 (October 19) added /claude-api managed-agents-secure. It compares a Claude Managed Agents agent's settings with Anthropic's published security guide. It doesn't change anything, so it's safe to run against an agent already in production.
- Check that Claude Code is 2.1.304 or later.
claude --version
- Type the command at the Claude Code prompt.
/claude-api managed-agents-secure
- Read the result against the security guide. These are the settings it lists, most important first.
- Use a cloud environment unless your tools must run on infrastructure you control.
- Set the environment's
networking.typetolimitedand list only the hosts the agent needs inallowed_hosts. A create request that omitsnetworkingmight getunrestricted, so set it in every request. - Keep credentials in vaults and inject them into request headers only.
- Put an
allowed_domainslist on each ofweb_fetchandweb_search. - Set
permission_policytoalways_askon tools whose changes you can't undo. - Set
default_config.enabledtofalseon the toolset, then enable only the tools the agent needs. - Put a
budgetsized to the expected cost on each session and deployment.
Apply any fixes yourself. To build a new agent from scratch, use /claude-api managed-agents-onboard from the same skill.
Sources
Get notified when a new tip lands
Tip alerts only go out in the app. Install it and turn notifications on.