TEE deployment
Complete walkthrough of deploying a sovereign agent to a Trusted Execution Environment with on-chain tokenomics.
Prerequisites
Bun installed
Private key with funds on Base Sepolia
Pinata account (for IPFS)
Step 1: Scaffold the Agent
bunx @regent/cli sovereign-agent \
--template=identity \
--adapter=hono \
--network=base-sepolia \
--installStep 2: Configure Environment
cd sovereign-agent
cp .env.example .envEdit .env:
Step 3: Add Entrypoints
Edit src/agent.ts:
Step 4: Create Dockerfile
Step 5: Deploy to TEE
Step 6: Verify Deployment
Check TEE Attestation
Check On-chain Registration
Test Endpoints
Complete Agent Code
Monitoring
View Bond Status
View Revenue
View Token Holders
Upgrading the Agent
Troubleshooting
TEE Deployment Fails
Bond Not Building
Check revenue is above R_min threshold
Verify payments are routing to treasury
Confirm x402 facilitator is configured correctly
Attestation Invalid
Ensure container image hash matches deployed image
Check TEE firmware is up to date
Verify no modifications to running container
Last updated