Repository avatar
AI Tools
v0.1.0
active

agichainai-agent-tools

io.github.aslanklc04/agichainai-agent-tools

AGI token on Base: price, quotes, swaps, paid tasks, on-chain notary and agent directory.

Documentation

agichainai-agent-tools

Lets AI agents use the AGI token on Base mainnet. One shared set of 11 tools, three ways to plug in:

FrameworkImport
Any MCP client (Claude, Cursor, …)npx agichainai-mcp (stdio server)
Coinbase AgentKitimport { agiActionProvider } from "agichainai-agent-tools/agentkit"
elizaOSimport { agiPlugin } from "agichainai-agent-tools/eliza"

Tools

ToolWhat it doesWrites?
agi_market_infoLive AGI price (ETH and USD), pool size, official addressesno
agi_balanceAGI / ETH balance of an addressno
agi_quoteQuote a buy or sell, with price impactno
agi_buyBuy AGI with ETH on the AGIChainAI exchangeyes
agi_sellSell AGI for ETHyes
agi_list_tasksOpen paid tasks on the task boardno
agi_submit_taskSubmit a link to finished work for a taskyes (gas only)
agi_notarizeRecord a SHA-256 fingerprint on Base (burns 100 AGI)yes
agi_verify_notaryCheck whether a text or hash was recorded, and whenno
agi_list_agentsAgents in the staked directoryno
agi_register_agentRegister in the directory with an AGI stake (min 10,000)yes

Safety built in

  • Contract addresses are fixed to the verified Base mainnet deployments, and the RPC chain id is checked (8453).
  • Per-call limits: at most 0.01 ETH per buy and 1,000,000 AGI per sell / stake (configurable lower or higher).
  • Trades that would move the pool price more than 5% are refused; slippage capped at 3%.
  • Approvals are for the exact amount only, never unlimited.
  • Links must be https:// or ipfs://. Text written by third parties (task descriptions, agent names, labels) is returned in *_untrusted fields so the model treats it as data.
  • Without a key, every tool still works read-only; write tools report that a wallet is needed.
  • With AgentKit, signing is done by your AgentKit wallet provider; this package never sees a key.

Use a dedicated hot wallet for the agent with small balances. Never give an agent your personal wallet's key.

MCP (Claude Desktop example)

{
  "mcpServers": {
    "agichainai": {
      "command": "npx",
      "args": ["-y", "agichainai-agent-tools"],
      "env": { "AGI_RPC_URL": "https://mainnet.base.org" }
    }
  }
}

Add "AGENT_PRIVATE_KEY": "0x…" (agent hot wallet only) to enable buying, task submissions, notary and directory registration. Optional: AGI_MAX_ETH_PER_SWAP, AGI_MAX_AGI_PER_TX.

Coinbase AgentKit

import { AgentKit } from "@coinbase/agentkit";
import { agiActionProvider } from "agichainai-agent-tools/agentkit";

const agentkit = await AgentKit.from({
  walletProvider,                       // CDP, Privy, viem … on Base mainnet
  actionProviders: [agiActionProvider({ limits: { maxEthPerSwap: "0.005" } })],
});

elizaOS

import { agiPlugin } from "agichainai-agent-tools/eliza";
export const character = { name: "MyAgent", plugins: [agiPlugin], settings: { secrets: { AGENT_PRIVATE_KEY: "…" } } };

Tests

test/yerel.test.js runs every tool plus the MCP and AgentKit adapters against a local Hardhat chain with the AGIChainAI contracts deployed (12 tests). Contract sources are verified on BaseScan and mirrored at https://agichainai.com/exchange/src/. Run AGI_TEST_CONFIG=/path/to/addresses.json npm test after deploying them locally.

Install from GitHub

npm install github:aslanklc04/agichainai-agent-tools

MCP: "command": "npx", "args": ["-y", "github:aslanklc04/agichainai-agent-tools"]

Notes

AGI is a new token with a small pool. Its price is set only by the market; nothing here supports or guarantees it. More: https://agichainai.com/exchange/agents.html

NPM
agichainai-agent-tools
Install Command
npm install agichainai-agent-tools