An open API service indexing awesome lists of open source software.

https://github.com/oasisprotocol/demo-trustless-agent


https://github.com/oasisprotocol/demo-trustless-agent

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

          

# 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].

[Oasis ROFL]: https://docs.oasis.io/build/rofl
[Sapphire]: https://docs.oasis.io/build/sapphire

# Test the Agent Locally

This will spin up an agent locally without TEE:

```shell
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:

```shell
oasis rofl build --verify
```

# Deploy your own instance

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

```shell
oasis rofl init --reset
```

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

```shell
oasis rofl create --network testnet
oasis rofl build
echo -n "" | oasis rofl secret set OPENAI_API_KEY -
echo -n "https://sepolia.infura.io/v3/" | oasis rofl secret set RPC_URL -
echo -n "" | oasis rofl secret set PINATA_JWT -
oasis rofl update
oasis rofl deploy
```

# Testing it out

Obtain the URL of your agent by invoking

```shell
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