Eternal AI Profile picture
Dec 26 17 tweets 5 min read Read on X
🧠 Decentralized ZerePy Agent 🧠

Merry Xmas from Eternal AI & Zerebro.

This dev guide teaches you how to build your first Decentralized ZerePy agent with:

- Decentralized Inference by @CryptoEternalAI
- Onchain AI Model by @AIatMeta deployed on @Base
- Framework by @0xzerebro
BACKGROUND 1:

For this guide, we'll use @CryptoEternalAI's Decentralized Inference, which has the same interface as OpenAI (so no learning curve for you) — but is decentralized.

We'll use onchain @AIatMeta's Llama 3.3 deployed on @Base.

eternalai.org/api
BACKGROUND 2:

Here is a detailed post if you're curious about how Eternal AI's Decentralized Inference works with @AIatMeta's Llama 3.3 70B and onchain on @Base.

STEP 1

Clone the ZerePy GitHub repo:

github.com/blorm-network/…
STEP 2

Go to the zerepy directory and install dependencies.

> cd zerepy && poetry install --no-root

This will create a virtual environment and install all required dependencies.
STEP 3

Activate the virtual environment.

> poetry shell
STEP 4

Run the application.

> poetry run python

You will see the following output in your terminal. main.pyImage
STEP 5

In the previous step, the ExampleAgentis loaded by default. Let's load the eternalai-example agent.

> agents
> load-agent eternalai-example Image
STEP 6

Configure Eternal AI connection.

> configure-connection eternalai Image
STEP 7

Configure Twitter connection.

> configure-connection twitter

Follow the Twitter authentication setup guide to obtain the API Key & Key Secret. Then, enter them into prompts to set up environment variables (stored in a .env file). Image
STEP 8

Add the TWITTER_USERNAME environment variable to the .env file.

Note: you need to exit the current process before adding it.

> TWITTER_USERNAME="your-twitter-username"
STEP 9

Rerun the agent.

> poetry shell
> poetry run python
> load-agent eternalai-example
> start main.pyImage
STEP 10

With Eternal AI's Decentralized Inference, everything is onchain and verifiable.

Let's look at an "onchain prompt" on @Base Explorer.

This prompt asks the agent to reply to a tweet related to $PENGU by @pudgypenguins.

basescan.org/tx/0x087ae3ece…Image
STEP 11

Now, let's look at the "onchain response" by the agent.

Everything is onchain and verifiable.

basescan.org/tx/0x3153addd7…Image
DON'T TRUST (AI). VERIFY.

Here is a detailed post if you're curious about how onchain verification works with Decentralized Inference.

If you prefer the developer guide on one single page, here it is:

docs.eternalai.org/eternal-ai/dec…
The future of AI is open-source & decentralized.

The Eternal AI team has been contributing code to the @ai16zdao Eliza framework and is now contributing code to the @0xzerebro ZerePy framework.

If you're working on a cool AI project and need some coding muscle, reach out!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Eternal AI

Eternal AI Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @CryptoEternalAI

Dec 25
Our BitAI technical whitepaper was posted yesterday! Huge thanks to everyone who's already provided feedback.

We understand the whitepaper was too technical, so we created a clear, visual presentation to make BitAI easy to understand!

Check out the non-technical thread below.Image
We are living in an AI-powered world. Image
AI is now woven into the fabric of everyday life Image
Read 14 tweets
Nov 13
AI-powered Ethereum: from rules-based smart contracts to AI-powered smart contracts.

Ethereum just got smarter.

Eternal AI brings onchain LLM to builders so they can write contracts & launch dapps that don’t just run but learn and think.

Whitepaper: eternalai.org/ethereum.pdfImage
1. Truly smart contracts

Today, dapps are rule-based programs coded as smart contracts. They're like rigid machines, unable to adapt or learn.

To address this, we must rethink our approach to dapps and create a framework for devs to add AI capabilities to their contracts.
2. Rule-based programming model

Consider a contract that manages a decentralized fantasy sports league. It needs to determine the winner between the two teams.

With rule-based, the contract uses a set of if-else statements to analyze the performance & determine the winner.Image
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(