IAM Permissions

January 9, 2026 ยท View on GitHub

claws requires appropriate IAM permissions to access AWS resources. The permissions needed depend on which services you want to browse.

Minimum Permissions

For basic read-only browsing, claws needs Describe*, List*, and Get* permissions for the services you want to access.

AI Chat (Optional)

The AI Chat feature (A key) uses Amazon Bedrock. To enable this feature, you need:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "bedrock:InvokeModelWithResponseStream",
      "Resource": "arn:aws:bedrock:*::foundation-model/*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "aws-marketplace:Subscribe",
        "aws-marketplace:ViewSubscriptions"
      ],
      "Resource": "*"
    }
  ]
}

Note: AWS Marketplace permissions are required for first-time model usage in your account. If the model is already enabled, only the bedrock:InvokeModelWithResponseStream permission is needed.

Inline Metrics (Optional)

To display inline CloudWatch metrics (toggle with M key), you need:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "cloudwatch:GetMetricData",
      "Resource": "*"
    }
  ]
}

Metrics are disabled by default. When enabled, claws fetches the last hour of metrics for supported resources (EC2, RDS, Lambda).

Resource Actions

Some resource actions require additional permissions:

ActionPermission Required
Start/Stop EC2ec2:StartInstances, ec2:StopInstances
Delete resources<service>:Delete*
SSO Loginsso:* (for SSO profiles)

For full read-only access with metrics and AI chat:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:Describe*",
        "rds:Describe*",
        "lambda:List*",
        "lambda:Get*",
        "s3:List*",
        "s3:GetBucket*",
        "cloudwatch:GetMetricData",
        "iam:List*",
        "iam:Get*"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "bedrock:InvokeModelWithResponseStream",
      "Resource": "arn:aws:bedrock:*::foundation-model/*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "aws-marketplace:Subscribe",
        "aws-marketplace:ViewSubscriptions"
      ],
      "Resource": "*"
    }
  ]
}

For full access, use AWS managed policies like ReadOnlyAccess or ViewOnlyAccess.

Read-Only Mode

Run claws with --read-only or set CLAWS_READ_ONLY=1 to disable all destructive actions, regardless of IAM permissions.