Skip to content

Add TEE support for swarms agent #814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ For more documentation on the CLI [CLICK HERE](https://docs.swarms.world/en/late

---

## TEE

Head to the [TEE README](./tee/README.md) for more detailed instructions.

# Usage Examples 🤖
Here are some example scripts to get you started. For more comprehensive documentation, visit our [docs](https://docs.swarms.world/en/latest/).

Expand Down
7 changes: 7 additions & 0 deletions tee/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## To run project in Phala TEE

1. Build the docker image and publish it to the docker hub
`docker compose build -t <your-dockerhub-username>/swarm-agent-node:latest`
`docker push <your-dockerhub-username>/swarm-agent-node:latest`
2. Deploy to Phala cloud using [tee-cloud-cli](https://github.com/Phala-Network/tee-cloud-cli) or manually with the [Cloud dashboard](https://cloud.phala.network/).
3. Check your agent's TEE proof and verify it on the [TEE Attestation Explorer](https://proof.t16z.com/).
19 changes: 19 additions & 0 deletions tee/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
swarms-agent-server:
image: swarms-agent-node:latest
platform: linux/amd64
volumes:
- /var/run/tappd.sock:/var/run/tappd.sock
- swarms:/app
restart: always
ports:
- 8000:8000
command: # Sample MCP Server
- /bin/sh
- -c
- |
cd /app/mcp_example
python mcp_test.py

volumes:
swarms: