Skip to content

oasisprotocol/demo-trustless-agent

Repository files navigation

Oasis Trustless Agent Demo

This is a demo of a trustless AI agent built on ElisaOS. It extends functionality with privacy features powered by Oasis ROFL such as key derivation and submission of ROFL-authenticated transactions to Sapphire.

Test the Agent Locally

This will spin up an agent locally without TEE:

elizaos start

Verify Current Deployment

To check whether the source code in front of you is the one currently registered on-chain and running on the nodes, run:

oasis rofl build --verify

Deploy your own instance

To build your own instance of a trustless agent, run:

oasis rofl init --reset

Then create a new ROFL, set secrets and deploy it.

oasis rofl create --network testnet
oasis rofl build
echo -n "<your-openai-key-here>" | oasis rofl secret set OPENAI_API_KEY -
echo -n "https://sepolia.infura.io/v3/<YOUR_KEY>" | oasis rofl secret set RPC_URL -
echo -n "<your-pinata-key-here>" | oasis rofl secret set PINATA_JWT -
oasis rofl update
oasis rofl deploy

Testing it out

Obtain the URL of your agent by invoking

oasis rofl machine show

Look for the Proxy: section, for example:

Proxy:
  Domain: m1058.opf-testnet-rofl-25.rofl.app
  Ports from compose file:
    3000 (rofl-eliza): https://p3000.m1058.opf-testnet-rofl-25.rofl.app

In the setup above the agent is available on https://p3000.m1058.opf-testnet-rofl-25.rofl.app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages