DEV Community

Alex Flash
Alex Flash

Posted on

🥷 Setting up CryptoNinja mode in evi-run

This is a simple guide for replacing files on a Linux server to activate CryptoNinja mode. What are we doing? We simply copy the modernized files from modes/crypto_mode/ to the project's working directories.

What is CryptoNinja

CryptoNinja is a profile for the evi-run multi-agent system, tailored for crypto context. It includes functions: crypto market overview, fundamental analysis, technical analysis, DEX monitoring, Solana integration, token swaps, portfolio management, and trading educational materials.

Requirements

1. Verification and navigation

# navigate to project root 
# specify your path if necessary (if it doesn't match)
cd /opt/evi-run
Enter fullscreen mode Exit fullscreen mode

Check for file presence (optional):

  • crypto agent source: modes/crypto_mode/agents_.py
  • locales: modes/crypto_mode/en/txt.ftl and modes/crypto_mode/ru/txt.ftl

2. Backup and replace agents_.py

cd /opt/evi-run

# backup current agents_.py
cp -v bot/agents_tools/agents_.py bot/agents_tools/agents_.py.bak-$(date +%F_%H%M%S)

# replace with file from Crypto Mode
cp -v modes/crypto_mode/agents_.py bot/agents_tools/agents_.py
Enter fullscreen mode Exit fullscreen mode

3. Backup and replace Fluent locales (txt.ftl for en/ru)

The typical path I18N/... is shown below.

cd /opt/evi-run

# backup current locales
cp -v I18N/en/txt.ftl I18N/en/txt.ftl.bak-$(date +%F_%H%M%S)
cp -v I18N/ru/txt.ftl I18N/ru/txt.ftl.bak-$(date +%F_%H%M%S)

# replace with files from Crypto Mode
cp -v modes/crypto_mode/en/txt.ftl I18N/en/txt.ftl
cp -v modes/crypto_mode/ru/txt.ftl I18N/ru/txt.ftl
Enter fullscreen mode Exit fullscreen mode

4. Restart the bot

  • Restart Docker Compose:
docker compose down
docker compose up --build -d
Enter fullscreen mode Exit fullscreen mode

5. Quick check

  • Start a test dialogue with the bot and ask about "fresh crypto news" — the response should be in CryptoNinja style.

Community and Support


This article was written for beginners in the technical community on DEV who are interested in deploying AI systems. Questions and suggestions for improvement are welcome!

Top comments (0)