# Introducing Trusted Remote Execution: Policy-Enforced Scripts for AI Agents and Humans

DevFeed: [Introducing Trusted Remote Execution: Policy-Enforced Scripts for AI Agents and Humans](<https://devfeed.tech/articles/introducing-trusted-remote-execution-policy-enforced-scripts-for-ai-agents-and-humans-4759.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/opensource/introducing-trusted-remote-execution-policy-enforced-scripts-for-ai-agents-and-humans/>)

Author: Nick MacDonald

Published: 2026-05-04T15:34:36Z

Content type: release

Language: en

Sources: [AWS Open Source Blog](<https://devfeed.tech/sources/aws-open-source-blog.md>)

Topics: [AI Bots](<https://devfeed.tech/topics/ai-bots.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [case-study](<https://devfeed.tech/tags/case-study.md>), [code](<https://devfeed.tech/tags/code.md>), [logs](<https://devfeed.tech/tags/logs.md>), [model](<https://devfeed.tech/tags/model.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [operations](<https://devfeed.tech/tags/operations.md>), [policy](<https://devfeed.tech/tags/policy.md>), [production](<https://devfeed.tech/tags/production.md>), [remote](<https://devfeed.tech/tags/remote.md>), [review](<https://devfeed.tech/tags/review.md>), [safety](<https://devfeed.tech/tags/safety.md>), [sandboxes](<https://devfeed.tech/tags/sandboxes.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [software](<https://devfeed.tech/tags/software.md>)

## AI overview

Trusted Remote Execution (Rex) is an open-source scripting runtime that authorizes each host operation against a Cedar policy. It is designed to give service owners runtime control over scripts generated by AI agents or used by humans.

## Source excerpt

Today, we're announcing Trusted Remote Execution (Rex, for short) -- an open source scripting runtime where every system operation is authorized by policy. Scripts are written in Rhai, a lightweight language with no built-in system access. The only way to reach the host is through operations Rex explicitly provides, which are authorized against a Cedar [...]