This section is no longer recommended for deploying on Phala. To build and deploy securely and efficiently, please use the fully managed platform instead. Check out the doc on how to .
This page is dedicated to troubleshooting issues found when building on the AI Agent Contract.
1. Why does my code fail to run a local testnet when executing the commands npm run start and npm run dev?
For these commands to work, you must have Docker installed on your machine. Check out the or try installing .
2. How do I query my local AI Agent Contract build when running a local testnet?
To interact with your local AI Agent Conract build through a local testnet, you will use the following curl commands:
# GET request
curl http://127.0.0.1:8000/local
# GET request with URL queries
curl http://127.0.0.1:8000/local?query1=one&query2=two
# POST request
curl http://127.0.0.1:8000/local -X POST -H 'content-type: application/json' -d '{"foo": "bar"}'
3. How do I add secrets to my AI Agent Contract build when running a local testnet?
Execute the following command to add your secrets. Make sure to set the cid key to value local.