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:
Run the following command to start the whole system with your local network.
sudo bash quickstart.sh
eai CLINavigate 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
Example output:

eai agent start -n <agent_name>
eai agent chat -n <agent_name>
eai agent stop -n <agent_name>
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.
$ claude mcp add eternal-ai \
-- python -m otcore.mcp_server <graph>