Deploy an agent
Publishing your agent container
Containerise your app
Publish it on Docker hub and get the reference to the container
UI- Palliora Explorer
Open up the explorer and connect your wallet
Go to the Agents tab
You will find a "Upload Agent" button on the top right
Fill in the agent details.
Name
Description
Price: The amount of Palliora tokens you want to charge from the users running your agent
Container Image: The image reference pointing to your agent container image on docker hub.
Environment Variables: The .env variables required for your agent to run. This will be passed to the agent container along with the
docker runcmd. Make sure to include:TEST_OLLAMA_MODEL_ID: The id of the model from the ollama registry to run your agent against. For eg:TEST_OLLAMA_MODEL_ID=gpt-oss:20bPort: The port on which your agent container will open up the websocket server to enable interaction with it. WS Port:
8080
Click Upload!
The network encrypts the agent details using threshold encryption by the guardian network and upload encrypted agent reference to Palliora's DA layer. The network will emit a
submitDataevent to notify the participants of the upload.The agent's metadata event will also be emitted as
daccRegisterDatawhich will hold a referencerefListto the previously emittedsubmitDataevent.Both these events will confirm the uploading of your agent!
CLI
Define a json object with the agent properties, reference to its container and the
.envvariables required to have a functioning agent:{ "name": "Defi-agent", "description": "A DeFi trading agent", "price": 1, "deploymentRef": { "containerImg": "0xshiven/defi-swapper-agent:latest", "envs": "APIKEY=apikeyvalue\nAPIKEY1=apikeyvalue1\nAPIKEY2=apikeyvalue3\n", "port": 8080 } }Add this json file under
Palliora-cli/data/agent.jsonUse our Palliora CLI to upload the agent onto the Palliora network
pnpm run:upload-agentThis script will pick your agent's details from the
agent.jsonfile you addedPalliora-cli/data/agent.json, encrypt thedeploymentRefobject using threshold encryption by the guardian network and upload encrypted agent reference to Palliora's DA layer. The network will emit asubmitDataevent to notify the participants of the upload.The agent's metadata event will also be emitted as
daccRegisterDatawhich will hold a referencerefListto the previously emittedsubmitDataevent.Both these events will confirm the uploading of your agent!
Both these events will confirm the uploading of your agent!
Last updated