Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 855 Bytes

File metadata and controls

42 lines (26 loc) · 855 Bytes

OpenAI Agents with Cloudflare Sandbox

A conversational AI assistant that executes shell commands and edits files in a Cloudflare Sandbox.

Setup

Create a .env file with your OpenAI API key:

OPENAI_API_KEY=your-api-key-here

Then start the development server:

npm start

Usage

Enter natural language commands in the chat interface. The assistant can:

  • Execute shell commands
  • Create, edit, and delete files

All conversations are saved in your browser's localStorage.

Deploy

npm run deploy

Security Warning

This example auto-approves all AI operations without human review. The AI can:

  • Execute ANY shell command
  • Create, modify, or delete ANY file in /workspace
  • No safety limits beyond the container itself

Do not use in production without proper approval flows and rate limiting.