AWS Greenlight for Agents (Preview): Install in Claude Code, Kiro and Codex

Logeshwaran
—

AWS Greenlight, in preview since December 1, 2026, is a new AWS service that writes and mathematically checks the rules your AI agent must follow, then enforces them outside the agent so it can’t talk its way past them.

⚡ Quick Answer

• What it does: turns your procedures (or plain English) into policies on which tool calls an agent may make, proves them with automated reasoning, and enforces them on an AgentCore gateway or Strands Box.

• Install: curl -fsSL https://downloads.aws.com/aws-greenlight/plugins/LTS/latest/install.sh | bash, then build the Dogwood CLI and say “govern my agent” in Claude Code, Kiro or Codex.

• Needs: a Mac or Linux machine (no Windows yet), Rust, an AWS profile, and an agent behind an AgentCore gateway or in a Strands Box.

• Cost: no separate Greenlight price in the preview; you pay for the gateway, CloudWatch Logs and S3, plus your coding agent’s model use.

• Watch out: your coding agent sends the recorded tool calls, including emails and card numbers, to its model provider. Start with a test account.

Jump to: Basics · How it checks · Before you start · Install · Govern an agent · FAQ

Here’s the catch: Greenlight runs inside your coding agent, so your agent’s history travels with it. To learn your rules, it reads the tool calls your agent already made, and whatever it reads goes to your coding agent’s AI model provider, customer emails and card numbers included. Use the sample or a test account first.

Jake’s shop added an AI helper that can issue refunds. His one rule: anything over $500 needs a manager to approve it first. He wrote it into the prompt and hoped.

Jake: "Can a prompt really stop it?"

Ethan: "A prompt asks nicely. Greenlight puts the rule outside the agent and checks every call before it runs, and it proves no sequence of calls can sneak a big refund through."

New to this? The plain-English version

  • AI agent: an AI that takes actions by calling tools, such as “look up order” or “issue refund.”
  • Tool call: one action the agent asks to perform. Greenlight decides which calls are allowed.
  • Policy: a written rule, like “deny a refund over $500 unless a manager approved it in this session.”
  • Automated reasoning: math that checks every possible sequence of calls, not just a few test examples.
  • AgentCore gateway and Strands Box: the two places on AWS where your agent’s tool calls pass through and the policies are enforced.
  • Dogwood: the open source language Greenlight writes its policies in.

Jake: "So it’s a referee that knows the rulebook by heart?"

Ethan: "And one that proved the rulebook has no loopholes before the game started."

Can you use it today? Three quick questions

  1. Are you on a Mac or Linux? Windows isn’t supported yet.
  2. Do you use Claude Code, Kiro or Codex? Greenlight runs inside one of them.
  3. Does your agent sit behind an AgentCore gateway or run in a Strands Box? If not, the help desk sample builds a gateway for you to try it on.

How AWS Greenlight checks your rules

CheckWhat it does
ValidationMakes sure every policy names tools and fields that really exist in your agent’s schema
SimulationReplays your agent’s recorded calls and shows which ones each policy would have denied
AnalysisFinds policies that change nothing, tools no call can reach, and tools any input can reach
Property checksProves whether something can ever happen, such as resetting a password without verifying the user
Test casesWrites one session that follows a rule and one that breaks it, and checks the policy allows and denies them

Answers come back Verified (holds for every allowed sequence of calls), Not verified (with a trace of calls that breaks the rule) or Inconclusive (the check couldn’t be settled; neither a pass nor a failure). Nothing changes on your gateway until you approve the policies, and the gateway’s policy engine or Strands Box does the enforcing.

AWS Greenlight pricing: what it costs in the preview

No separate Greenlight price is published for the preview. What you pay for:

  • The AWS resources it uses: your AgentCore gateway, Amazon CloudWatch Logs, and an S3 bucket for test results (it offers to create greenlight-results-ACCOUNT-REGION).
  • Your coding agent’s model use, because Greenlight runs on your coding agent’s model. The recommended models are Claude Opus 5.5, GPT-6.1 Sol, Claude Sonnet 5.5 and GPT-6.1 Terra.
  • If you run the help desk sample: its gateway, Lambda function and roles, in a test account.

Before you start

  • A Mac (run xcode-select --install) or Linux (install gcc, unzip, tar and curl).
  • Rust from rustup: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. The Greenlight installer doesn’t install it.
  • Claude Code, Kiro CLI or Codex. Our Claude Code on Bedrock guide covers running Claude Code on your AWS account.
  • An AWS CLI profile that works: aws sts get-caller-identity --profile your-profile, and permission to attach IAM policies to that role or user.
  • A supported Region: US East (N. Virginia, Ohio), US West (Oregon), Europe (Frankfurt, Ireland, Stockholm) or Asia Pacific (Sydney).
  • An agent behind an AgentCore gateway in the same Region, with a policy engine attached, logs going to CloudWatch Logs, and the x-amzn-bedrock-agentcore-policy-session-id header (a new UUID per task) on every call. Or an agent in a Strands Box.

Step 1: Install AWS Greenlight and the Dogwood CLI

curl -fsSL https://downloads.aws.com/aws-greenlight/plugins/LTS/latest/install.sh | bash

The installer needs no sudo, shows its plan and waits for Return. It checks every download’s SHA-256, unpacks to ~/aws-greenlight-for-agents, adds uv and the AWS CLI if missing, never touches your AWS credentials or shell files, and asks which coding agents to install into. Then build the Dogwood CLI yourself:

rustup toolchain install 1.97.1
cargo +1.97.1 install --locked --root ~/policy-builder-deps dogwood-cli@1.1.0
~/policy-builder-deps/bin/dogwood --version   # dogwood 1.1.0

Check the plugin: claude plugin list (or codex plugin list) should show greenlight-for-agents@aws-greenlight; in Kiro, look in ~/.kiro/powers/installed/greenlight-for-agents. If the installer printed a PATH line for ~/.local/bin, add it and open a new terminal.

Step 2: Give your AWS profile two policies

Greenlight prints a read policy (your gateway, logs, checks and the results bucket) and an enforce policy (adding and removing its policies on the gateway), filled in with your account. For an AgentCore gateway:

cd ~/aws-greenlight-for-agents/plugins/greenlight-for-agents/skills/agent-policies
sh scripts/run aws.permissions policy --target-type agentcore \
  --account 111122223333 --region us-east-1 \
  --gateway-id your-gateway-id \
  --gateway-role arn:aws:iam::111122223333:role/your-gateway-role > ~/greenlight-policies.json

Split the file into the two policies and attach them with aws iam put-role-policy to the role your profile uses (put-user-policy for an IAM user). Don’t use an administrator role, and in production put enforce on a separate role with its own profile.

Step 3: Say “govern my agent”

In Claude Code, Kiro or Codex, in a project folder, type govern my agent. Greenlight walks through six stages, each with a page in your browser:

  1. Agent: which gateway or box, account and Region.
  2. Sources: your procedures, rules or a plain-English description, plus how far back to read recorded calls.
  3. Clarifications: questions where your rules are vague.
  4. Decisions: choices where rules conflict or leave gaps.
  5. Approval: the proposed policies with their check results and which past calls they’d have denied.
  6. Enforcement: turning the approved policies on.

Reply with your answers only; if you also ask a question, it answers it and asks again. You can stop at any time and say “govern my agent” again in the same folder to continue. The first proposal takes about 10 minutes.

Jake: "And the $500 rule?"

Ethan: "It writes a policy that denies a big refund until the approval call has happened, replays last week’s refunds to show what it would have stopped, and proves no sequence of calls gets around it."

Common mistakes

MistakeWhat happensDo this instead
Trying it on WindowsNot supportedUse a Mac or Linux machine
Skipping the Dogwood CLI buildPolicies can’t be checked against your schemaInstall Rust 1.97.1 and build dogwood-cli 1.1.0
Pointing it at production data firstCustomer data in tool calls goes to the model providerUse the help desk sample or a test account
No session ID header on gateway callsSession-based rules can’t track callsSend x-amzn-bedrock-agentcore-policy-session-id with a new UUID per task
Using an administrator roleFar more access than neededAttach only the printed read and enforce policies
Reading “Inconclusive” as a passAn unproven rule goes liveTreat it as unsettled and simplify or retest the policy

How Ethan locked down Jake’s refund agent

  1. He installed Greenlight into Claude Code on his Mac and built the Dogwood CLI.
  2. He tried the help desk sample in a test account first, to see the six stages.
  3. He pointed Greenlight at the shop’s refund agent behind its AgentCore gateway and pasted the one-line refund rule.
  4. Greenlight’s replay showed two past refunds over $500 that the new policy would have stopped. He approved the policy.
  5. He turned it on; the gateway now checks every refund call before it runs.

Jake: "So the agent can’t forget the rule?"

For readers preparing for an AWS certification

We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.

Exams that test this topic: AI Practitioner (AIF-C01) • Security – Specialty (SCS-C03) • Solutions Architect – Associate (SAA-C03).

Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:

1. A company wants an AI agent behind an Amazon Bedrock AgentCore gateway to be unable to issue refunds over a limit without a prior approval call, enforced outside the agent. Which AWS service helps write and verify that rule?

AWS Greenlight (preview): it turns business rules into policies on tool calls, verifies them with automated reasoning, and the gateway policy engine enforces them before each call runs.

2. Why is enforcing agent rules at the gateway stronger than writing them into the agent prompt?

Prompt instructions can be ignored or bypassed by the model; gateway policies are deterministic checks evaluated on every tool call outside the agent, regardless of what the model decides.

3. What does a Verified result from automated reasoning mean, compared with passing unit tests?

The property holds for every possible sequence of calls the policies allow, not only for the specific test cases or recorded calls that were tried.

4. Which least-privilege setup does AWS Greenlight recommend for production permissions?

Attach only the generated read and enforce IAM policies, avoid administrator roles, and place the enforce policy on a separate role with its own profile.

5. A team is concerned about customer data in an AI coding assistant workflow that reads agent traces. What precaution applies?

The coding agent sends what it reads, including recorded tool calls with values like emails and card numbers, to its model provider, so use a test account or sample data first.

Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.

Ethan: "It never had to remember it. The gateway enforces it, every time."

AWS Greenlight documentation and official references

Frequently asked questions

What is AWS Greenlight?

A preview AWS service, announced December 1, 2026, that turns your business rules into policies controlling which tool calls an AI agent may make, and uses automated reasoning to prove those policies work before you switch them on.

How much does AWS Greenlight cost?

No separate Greenlight price is published for the preview. You pay for the AWS resources it uses, such as your AgentCore gateway, CloudWatch Logs and an S3 bucket for results, plus your coding agent’s own model usage.

Does AWS Greenlight work with Claude Code?

Yes. It installs as a plugin for Claude Code and Codex and as a power for Kiro. Check it with claude plugin list and look for greenlight-for-agents@aws-greenlight.

Does AWS Greenlight work on Windows?

Not yet. You need a Mac or a Linux computer, plus Rust to build the Dogwood CLI.

What is Dogwood?

An open source policy language for AI agents. AWS Greenlight writes its policies in Dogwood, and the Dogwood CLI 1.1.0 checks them against your agent’s tool schema.

How do I install AWS Greenlight?

Run curl -fsSL https://downloads.aws.com/aws-greenlight/plugins/LTS/latest/install.sh | bash, then build the Dogwood CLI with cargo, attach the read and enforce IAM policies it prints, and say “govern my agent” in your coding agent.

Which agents can AWS Greenlight govern?

Agents behind an Amazon Bedrock AgentCore gateway with a policy engine attached, or agents running in a Strands Box. A help desk sample sets up a gateway for you in a test account.

What does “Verified” mean in AWS Greenlight?

The rule holds for every possible sequence of calls the policies allow, not just the calls you recorded. “Not verified” comes with a trace that breaks the rule, and “Inconclusive” means the check couldn’t be settled either way.

Does AWS Greenlight change my gateway automatically?

No. It changes nothing until you approve a policy set and confirm the change, and then applies only what you approved. Your gateway’s policy engine or Strands Box enforces the rules.

Which Regions support AWS Greenlight?

US East (N. Virginia, Ohio), US West (Oregon), Europe (Frankfurt, Ireland, Stockholm) and Asia Pacific (Sydney).

Is my data sent anywhere by AWS Greenlight?

Your coding agent sends what it reads, including your agent’s recorded tool calls and values such as email addresses and card numbers, to its AI model provider. Try it with a test account or the sample before real customer data.

Which AI models work best with AWS Greenlight?

It runs on your coding agent’s model. The recommended models are Claude Opus 5.5, OpenAI GPT-6.1 Sol, Claude Sonnet 5.5 and OpenAI GPT-6.1 Terra.

What IAM permissions does AWS Greenlight need?

Two policies it prints for you: read (gateway, logs, checks and an optional results bucket) and enforce (adding and removing policies on the gateway). Don’t use an administrator role; in production, put enforce on a separate role.

What is automated reasoning?

Math-based checking. Instead of testing a few examples, a solver searches every possible sequence of calls for one that breaks a rule. AWS uses the same kind of reasoning in IAM Access Analyzer.

Can AWS Greenlight write rules from my documents?

Yes. Give it your procedures and rules or describe them in plain English, and it drafts policies for you to review. It also infers rules nobody wrote down from the calls your agent has already made.

What is the x-amzn-bedrock-agentcore-policy-session-id header?

A header your agent must send with every call to the AgentCore gateway, with a new ID such as a UUID per task, so the policies can track the calls that belong to one session.

Revision note. Written December 2, 2026, the day after the preview opened. Preview tools, versions and Regions change quickly, so check the live getting started guide before you install. “Good fences make good neighbors”: put the rules where the agent can’t move them.

Related