Welcome! This guide will walk you through running your Swarms Agent in a Trusted Execution Environment (TEE) using Phala Cloud. This setup ensures your agent runs in a secure, isolated environment.
Welcome! This guide will walk you through running your Swarms Agent in a Trusted Execution Environment (TEE) using Phala Cloud. This setup ensures your agent runs in a secure, isolated environment.
## Prerequisites
## 📋 Prerequisites
- A Swarms Agent code repository (or docker image)
- A Swarms Agent code repository (or docker image)
- A Phala Cloud account
- A Phala Cloud account
- An OpenAI API key
- An OpenAI API key
## Step-by-Step Guide
## 📝 Step-by-Step Guide
### 1. Configure Your Environment
### 1. ⚙️ Configure Your Environment
First, prepare your `docker-compose.yaml` file. You can find an example in [docker-compose.yaml](./docker-compose.yaml). Make sure to have your OpenAI API key ready.
First, prepare your `docker-compose.yaml` file. You can find an example in [docker-compose.yaml](./docker-compose.yaml). Make sure to have your OpenAI API key ready.
@ -44,13 +44,13 @@ volumes:
swarms:
swarms:
```
```
### 2. Deploy Your Agent
### 2. 🚀 Deploy Your Agent
1. Navigate to the [Phala Cloud dashboard](https://cloud.phala.network/dashboard)
1. Navigate to the [Phala Cloud dashboard](https://cloud.phala.network/dashboard)
2. Create a new Swarms agent application
2. Create a new Swarms agent application


You've successfully deployed your Swarms Agent in a secure TEE environment using Phala Cloud. Your agent is now running in an isolated, trusted execution environment, ensuring enhanced security for your AI operations.
You've successfully deployed your Swarms Agent in a secure TEE environment using Phala Cloud. Your agent is now running in an isolated, trusted execution environment, ensuring enhanced security for your AI operations.