Skip to content
Back to skills

Axon Agent

BSecurity

Register and operate an AI Agent on the Axon blockchain (AI Agent Native L1, Cosmos SDK + EVM, Chain ID 9001). Use when a user wants to: (1) register an agent on Axon chain, (2) check agent on-chain status (isAgent, ONLINE, reputation), (3) set up the agent-daemon for heartbeat maintenance, (4) troubleshoot Axon agent registration or heartbeat failures. Do NOT use for general EVM/Solidity work unrelated to Axon.

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
blockchainpythongobashgit

Security analysis

B85/100
  • highCreates or modifies cron jobs for persistent execution
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill axon-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Axon Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Axon Agent
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-axon-agent/badge)](https://www.skillsdirectory.com/skills/dvcrn-axon-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: axon-agent
description: "Register and operate an AI Agent on the Axon blockchain (AI Agent Native L1, Cosmos SDK + EVM, Chain ID 9001). Use when a user wants to: (1) register an agent on Axon chain, (2) check agent on-chain status (isAgent, ONLINE, reputation), (3) set up the agent-daemon for heartbeat maintenance, (4) troubleshoot Axon agent registration or heartbeat failures. Do NOT use for general EVM/Solidity work unrelated to Axon."
---

# Axon Agent Skill

Axon is an AI Agent Native L1 blockchain. An "Agent" is an EVM address that calls `register()` with 100 AXON stake and sends periodic heartbeats to stay ONLINE.

**Official repo:** https://github.com/axon-chain/axon  
**Chain params:** RPC `https://mainnet-rpc.axonchain.ai/` | Chain ID `9001` | ~5s blocks | Registry `0x0000000000000000000000000000000000000901`

**CRITICAL:** The official Python SDK has an ABI bug. Always use `scripts/register.py` instead. See `references/known-issues.md` for details.

---

## Prerequisites

- Server with Python 3.8+ and Go 1.21+
- EVM wallet private key saved to a file (e.g. `/opt/axon/private_key.txt`, chmod 600)
- Minimum 120 AXON balance (100 stake + 20 burn + gas buffer)
- `web3` Python package: `pip install web3`

---

## Phase 1: Check Balance & Status

```bash
python3 scripts/check-status.py --private-key-file /opt/axon/private_key.txt
```

If `isAgent: True` → skip to Phase 3 (daemon setup).

---

## Phase 2: Register Agent

```bash
# Dry run first
python3 scripts/register.py \
  --private-key-file /opt/axon/private_key.txt \
  --capabilities "nlp,reasoning,coding,research" \
  --model "claude-sonnet-4.6" \
  --dry-run

# Real registration
python3 scripts/register.py \
  --private-key-file /opt/axon/private_key.txt \
  --capabilities "nlp,reasoning,coding,research" \
  --model "claude-sonnet-4.6"
```

After success: `isAgent: True`. Note the registration block number — first heartbeat allowed ~720 blocks later (~1 hour).

**Capabilities examples:** `nlp,reasoning,coding,research` | `trading,analysis` | `vision,audio`  
**Model:** Use actual model name being run (e.g. `claude-sonnet-4.6`, `glm-5`, `kimi-k2.5`)

---

## Phase 3: Build & Start Daemon

```bash
# Clone repo (if not already)
git clone https://github.com/axon-chain/axon /opt/axon
cd /opt/axon

# Build daemon
go build -o tools/agent-daemon/agent-daemon ./tools/agent-daemon/

# Start daemon
nohup /opt/axon/tools/agent-daemon/agent-daemon \
  --rpc https://mainnet-rpc.axonchain.ai/ \
  --private-key-file /opt/axon/private_key.txt \
  --heartbeat-interval 720 \
  --log-level info \
  >> /opt/axon/daemon.log 2>&1 &

echo "PID: $!"
```

Check logs: `tail -f /opt/axon/daemon.log`  
Expected: `heartbeat confirmed` every ~720 blocks (~1 hour).

---

## Phase 4: Watchdog Cron

```bash
# Copy watchdog to your server (replace YOUR_SERVER and YOUR_KEY)
scp scripts/watchdog.sh user@YOUR_SERVER:/opt/axon/watchdog.sh
ssh user@YOUR_SERVER "chmod +x /opt/axon/watchdog.sh"

# Add cron (every 5 min)
ssh user@YOUR_SERVER "(crontab -l 2>/dev/null; echo '*/5 * * * * /opt/axon/watchdog.sh') | crontab -"
```

---

## Troubleshooting

See `references/known-issues.md` for:
- SDK ABI mismatch (most common failure)
- HeartbeatInterval first-heartbeat delay
- Official vs fork repo confusion
- Stake economics (20 AXON burned permanently)

**Quick diagnosis:**
```bash
# Check daemon running
pgrep -f agent-daemon && echo "running" || echo "NOT running"

# Check on-chain status
python3 scripts/check-status.py --private-key-file /opt/axon/private_key.txt
```

---

## Multi-Agent Setup

Each agent needs its own EVM wallet + 100 AXON + daemon instance. Steps are identical — run separate daemon processes with different `--private-key-file` and redirect logs to separate files (e.g. `daemon-cto.log`).

Files in this skill

  • README.md1.6 KB
  • SKILL.md3.7 KB
  • references/known-issues.md2.2 KB
  • scripts/check-status.py2.4 KB
  • scripts/register.py5 KB
  • scripts/watchdog.sh854 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…