From d52cf1ca3fa75e1f7481d1d171614b7efd6a44be Mon Sep 17 00:00:00 2001 From: Shawn TIAN Date: Wed, 23 Apr 2025 11:46:23 +0800 Subject: [PATCH] update docs of phala tee deployment --- docs/swarms_cloud/phala_deploy.md | 20 +++++++++++--------- tee/README.md | 9 +++++++-- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/docs/swarms_cloud/phala_deploy.md b/docs/swarms_cloud/phala_deploy.md index 47bb6699..c0cf0de3 100644 --- a/docs/swarms_cloud/phala_deploy.md +++ b/docs/swarms_cloud/phala_deploy.md @@ -6,7 +6,7 @@ This guide will walk you through deploying your project to Phala's Trusted Execu - Docker installed on your system - A DockerHub account -- Access to Phala Cloud dashboard +- Register a [Phala Cloud](https://cloud.phala.network/) account ## 🛡️ TEE Overview @@ -54,28 +54,30 @@ Choose one of these deployment methods: - Use [tee-cloud-cli](https://github.com/Phala-Network/tee-cloud-cli) (Recommended) - Deploy manually via the [Phala Cloud Dashboard](https://cloud.phala.network/) - 1. Navigate to the [Phala Cloud dashboard](https://cloud.phala.network/dashboard) - 2. Create a new Swarms agent application + 1. Click `Deploy` button on the Phala Cloud dashboard. + 2. Choose `docker-compose.yaml` and then click `Advanced` tab to paste the content of your docker-compose.yaml file. + 3. Importantly, make sure to add the `OPENAI_API_KEY` in the `Encrypted Secrets` section with your own OpenAI API key. + 4. Click `Create` button to create a new Swarms agent application.

- Creating a Swarms agent on Phala Cloud + Creating a Swarms agent on Phala Cloud

### 3. Monitor Your Deployment 1. Check the initialization logs of your agent

- Agent initialization logs - Detailed initialization logs + Agent initialization logs + Detailed initialization logs

2. Verify your container is running

- Swarms Agent Container Status + Swarms Agent Container Status

3. Monitor your agent's output

- Swarms Agent Logs + Swarms Agent Logs

### 4. Verify TEE Attestation @@ -83,7 +85,7 @@ Choose one of these deployment methods: Visit the [TEE Attestation Explorer](https://proof.t16z.com/) to check and verify your agent's TEE proof.

-TEE Attestation Verification +TEE Attestation Verification

## 📚 Additional Resources diff --git a/tee/README.md b/tee/README.md index 657179e9..137e44dc 100644 --- a/tee/README.md +++ b/tee/README.md @@ -10,6 +10,8 @@ Welcome! This guide will walk you through running your Swarms Agent in a Trusted ## 📝 Step-by-Step Guide +Firstly, you need to register a [Phala Cloud](https://cloud.phala.network/) account before you can create a new Swarms agent application. + ### 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. @@ -47,7 +49,10 @@ volumes: ### 2. 🚀 Deploy Your Agent 1. Navigate to the [Phala Cloud dashboard](https://cloud.phala.network/dashboard) -2. Create a new Swarms agent application +2. Click `Deploy` button on the Phala Cloud dashboard. +3. Choose `docker-compose.yaml` and then click `Advanced` tab to paste the content of your docker-compose.yaml file. +4. Importantly, make sure to add the `OPENAI_API_KEY` in the `Encrypted Secrets` section with your own OpenAI API key. +5. Click `Create` button to create a new Swarms agent application.

Creating a Swarms agent on Phala Cloud

@@ -82,4 +87,4 @@ Ensure your agent is running in a secure TEE environment by checking the attesta 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. -If you have any questions, please reach out to us on [Phala Cloud](https://cloud.phala.network/). +If you have any questions, please reach out to Phala on [Phala Cloud](https://cloud.phala.network/).