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.
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.py
STEP 5
In the previous step, the ExampleAgentis loaded by default. Let's load the eternalai-example agent.
> agents
> load-agent eternalai-example
STEP 6
Configure Eternal AI connection.
> configure-connection eternalai
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).
STEP 8
Add the TWITTER_USERNAME environment variable to the .env file.
Note: you need to exit the current process before adding it.