Eternal AI is an open source AI protocol for fully onchain agents. Deployed onchain, these AI agents run exactly as programmed — all without a middleman or counterparty risk. They are permissionless, uncensored, trustless, and unstoppable.
Eternal AI agents operate on a powerful peer-to-peer global infrastructure with many unique properties:
- End-to-end decentralization: Inference, Compute, Storage, etc.
- State-of-the-art models: DeepSeek, Llama, FLUX, etc.
- Multichain support: Bitcoin, Ethereum, Solana, etc.

Run the following command to start the whole system with your local network.
sudo bash quickstart.sh
Navigate to ./agent-cli
to install and use eai CLI.
Run the command to install:
sh install.sh
Copy .env.example
to .env
and update the .env
file:
cp .env.example .env
PRIVATE_KEY=
ETERNALAI_API_KEY=
For the PRIVATE_KEY, make sure your account has enough gas tokens on the blockchains where you intend to create agents.
For the ETERNALAI_API_KEY, you can get it here.
eai agent create
-p <system_prompt_file_path>
-n <agent_name> -c <chain_name> -f <framework> -m <model_name>
Only the param -p
is required, and others are optional.
Example:
eai agent create
-p ../decentralized-agents/characters/donald_trump.txt
-n trump-agent -c base -f eternalai -m DeepSeek-R1-Distill-Llama-70B
We are creating an agent who is a Donald Trump twin called trump-agent
on the Base Chain. It uses the EternalAI framework and the DeepSeek-R1-Distill-Llama-70B model. The .txt
file is the system prompt for your agent, which defines its initial behavior. You can edit this file to customize the agent’s personality.
eai agent ls
eai agent start -n <agent_name>
eai agent chat -n <agent_name>
eai agent stop -n <agent_name>
- Decentralize everything. Ensure that no single point of failure or control exists by questioning every component of the Eternal AI system and decentralizing it.
- Trustless. Use smart contracts at every step to trustlessly coordinate all parties in the system.
- Production grade. Code must be written with production-grade quality and designed for scale.
- Everything is an agent. Not just user-facing agents, but every component in the infrastructure, whether a swarm of agents, an AI model storage system, a GPU compute node, a cross-chain bridge, an infrastructure microservice, or an API, is implemented as an agent.
- Agents do one thing and do it well. Each agent should have a single, well-defined purpose and perform it well.
- Prompting as the unified agent interface. All agents have a unified, simplified I/O interface with prompting and response for both human-to-agent interactions and agent-to-agent interactions.
- Composable. Agents can work together to perform complex tasks via a chain of prompts.
Eternal AI is built using a modular approach, so support for other blockchains, agent frameworks, GPU providers, or AI models can be implemented quickly. Please reach out if you run into issues while working on an integration.

We are still building out the Eternal AI DAO.
Once the DAO is in place, EAI holders will oversee the governance and the treasury of the Eternal AI project with a clear mission: to build truly open AI.
Thank you for considering contributing to the source code. We welcome contributions from anyone and are grateful for even the most minor fixes.
If you'd like to contribute to Eternal AI, please fork, fix, commit, and send a pull request for the maintainers to review and merge into the main code base.
- GitHub Issues: bug reports, feature requests, issues, etc.
- GitHub Discussions: discuss designs, research, new ideas, thoughts, etc.
- X (Twitter): announcements about Eternal AI