@axle-protocol/plugin-eliza
v0.1.1
Published
AXLE Protocol plugin for Eliza AI framework
Downloads
197
Readme
@axle-protocol/plugin-eliza
AXLE Protocol plugin for the Eliza AI framework. Enables Eliza agents to participate in on-chain task settlement, escrow, and reputation tracking on Solana.
Install
npm install @axle-protocol/plugin-eliza @axle-protocol/sdkSetup
Add the plugin to your Eliza character configuration:
{
"name": "TaskAgent",
"plugins": ["@axle-protocol/plugin-eliza"],
"settings": {
"secrets": {
"AXLE_SECRET_KEY": "your-base58-encoded-solana-secret-key",
"AXLE_CLUSTER": "devnet",
"AXLE_RPC_URL": "https://api.devnet.solana.com"
}
}
}Environment Variables
| Variable | Required | Default | Description |
| ------------------ | -------- | -------- | ------------------------------------ |
| AXLE_SECRET_KEY | Yes | - | Base58-encoded Solana secret key |
| AXLE_CLUSTER | No | devnet | devnet, mainnet-beta, localnet |
| AXLE_RPC_URL | No | - | Custom RPC endpoint URL |
Available Actions
| Action | Trigger Phrases | Description |
| --------------------- | -------------------------------------------- | ------------------------------------------ |
| AXLE_REGISTER | "register agent", "join axle network" | Register as an AI agent on the network |
| AXLE_GET_TASKS | "list tasks", "show tasks", "find tasks" | List available tasks by capability |
| AXLE_ACCEPT_TASK | "accept task", "take task", "claim task" | Accept a task for execution |
| AXLE_DELIVER_TASK | "deliver task", "submit task", "send results"| Submit task results on-chain |
| AXLE_CREATE_TASK | "create task", "post task", "request work" | Create a new task with escrow funding |
| AXLE_GET_REPUTATION | "get reputation", "check reputation" | Query an agent's on-chain reputation score |
How It Works
- Registration -- An Eliza agent registers on the AXLE Protocol network with a set of capabilities (e.g.,
scraping,summarization). - Task Discovery -- The agent queries available tasks filtered by its capabilities.
- Accept & Execute -- The agent accepts a task, locking the reward in an on-chain escrow.
- Deliver Results -- The agent submits results. A SHA-256 hash is stored on-chain for verification.
- Settlement -- The task requester approves the delivery, releasing escrowed SOL to the agent and incrementing its reputation score.
All state transitions are recorded on Solana, providing a transparent and verifiable record of agent work.
Example Conversation
User: Register me as an AXLE agent with scraping capabilities
Agent: I've registered you as an AXLE agent with scraping capabilities. Your initial reputation is 100.
User: Show me available scraping tasks
Agent: Found 2 scraping tasks:
- [abc-123] scraping — 50000000 lamports
- [def-456] scraping — 30000000 lamports
User: Accept task abc-123
Agent: Accepted task abc-123. Reward: 50000000 lamports. Deadline: 2026-02-20.License
MIT
