Flow-dedicated Autonomous Agents powered by Eliza.
Basic Features
Check out the Eliza's README
Extra Features
- Provide Flow-dedicated Agent without other extra blockchain dependencies runtime(by default).
- You can still use other blockchains if you want.
- Use InversifyJS for dependency injection.
- Share the same instances of providers across the application and plugins.
- All actions / evaluators / providers for plugins can be dynamically loaded and injected.
- Provide standard action / evaluator wrapper for plugins.
- Let develoeprs focus on the business logic of actions / evaluators.
- Use shared
flow.json
for all Flow Cadence contracts dependencies in Flow relevant plugins. - Both Flow EVM and Flow Cadence projects will be supported.
Note for Windows Users: WSL 2 is required.
# Clone the repository
git clone --recurse-submodules https://github.com/fixes-world/elizaOnFlow.git
# If you already cloned without submodules, run:
git submodule update --init --recursive
Copy .env.example to .env and fill in the appropriate values.
cp .env.example .env
Note: .env is optional. If you're planning to run multiple distinct agents, you can pass secrets through the character JSON
pnpm i
pnpm build
pnpm start
# The project iterates fast, sometimes you need to clean the project if you are coming back to the project
pnpm clean
Once the agent is running, you should see the message to run "pnpm start:client" at the end.
Open another terminal, move to the same directory, run the command below, then follow the URL to chat with your agent.
pnpm start:client
- Open
agent/src/character.ts
to apply modifications on the default character. - To load custom characters:
- Use
pnpm start --characters="path/to/your/character.json"
- Multiple character files can be loaded simultaneously
- Use
- Connect with X (Twitter)
- change
"clients": []
to"clients": ["twitter"]
in the character file to connect with X
- change
All Flow Cadence contracts dependencies should be installed to flow.json
file.
To ensure development and deployment, you need to install all dependencies.
flow deps install
And if you want to add a new contract dependency, you can use the following command:
flow deps add mainnet://0xAddress.ContractName
You may need to install Sharp. If you see an error when starting up, try installing it with the following command:
pnpm install --include=optional sharp
- GitHub Issues. Best for: bugs you encounter using ElizaOnFlow, and feature proposals.
- Fixes Telegram. Best for: sharing your applications and hanging out with the Fixes community.
- Eliza Discord
- Flow Discord