@aiaiaichain/agent
v0.2.0
Published
AIAIAI Chain Agent — Solana-native AI agent for decentralized AI governance. Ticker: $AIAIAI
Maintainers
Readme
aiaiaichain
$AIAIAI — Solana-native AI agent for decentralized AI governance.
What is AIAIAI Chain?
AIAIAI Chain Agent is a Solana-native AI agent that runs entirely in your terminal. It connects to AI model providers and the DexScreener price API through outbound HTTP calls only — nothing is hosted, nothing listens for inbound connections, and your keys never leave your machine.
Ticker: $AIAIAI
Contract: AVPJS61gZmWKtaEpb7qYPKo8Fk2xQUsayYQxPiPMpump
Chain: Solana (primary)
Inspired by the call for an "AI Associated Institute of America" (AIAIAI) — a vision for decentralized AI governance.
Your machine
├── @aiaiaichain/agent (CLI)
│ ├── Ink TUI ← streaming terminal UI with sidebar
│ ├── AgentRunner ← model loop + tool dispatcher
│ ├── SwarmRouter ← parallel sub-agent orchestration
│ ├── PriceFeed ← DexScreener price data (primary source)
│ ├── NewsFeed ← crypto news + sentiment analysis
│ ├── TechnicalAnalysis ← RSI, MACD, Bollinger, EMA, ATR
│ ├── MarketSentiment ← Fear & Greed, funding rates, DeFi TVL
│ ├── GoalManager ← persistent cross-session goals
│ ├── AgentScheduler ← cron/price-triggered scheduled tasks
│ ├── MemoryStore ← long-term conversation memory
│ └── MCPServer ← Model Context Protocol server
│
├── ~/.aiaiai/
│ ├── .env ← your API keys
│ ├── config/ ← settings
│ ├── memory/ ← long-term memory
│ ├── checkpoints/ ← agent state checkpoints
│ └── sessions/ ← task contexts
│
└── Outbound only:
├── openrouter.ai ← AI model gateway (your key)
├── api.dexscreener.com ← token prices, liquidity, volume
├── api.binance.com ← OHLCV candle data
├── api.alternative.me ← Fear & Greed Index
├── api.llama.fi ← DeFi TVL
├── mempool.space ← BTC mempool
└── cryptopanic.com ← crypto newsInstallation
npm install -g @aiaiaichain/agentQuick Start
# 1. Configure (requires OpenRouter API key)
aiaiaichain setup
# 2. Start the agent
aiaiaichain
# 3. Or check $AIAIAI price directly
aiaiaichain priceCLI Commands
| Command | Description |
|---------|-------------|
| aiaiaichain | Start interactive TUI agent |
| aiaiaichain setup | First-time setup wizard |
| aiaiaichain config | Show/edit configuration |
| aiaiaichain price | Show $AIAIAI token price |
| aiaiaichain status | Quick status + price |
| aiaiaichain --headless "prompt" | Single-turn mode |
| aiaiaichain --help | Show help |
| aiaiaichain --version | Show version |
TUI Commands
Inside the interactive agent:
| Command | Description |
|---------|-------------|
| /help | Show all commands |
| /price | Show $AIAIAI price |
| /news | Latest crypto news |
| /models | List available models |
| /model | Switch AI model |
| /cost | Show token usage cost |
| /goal add <text> | Set a persistent goal |
| /goal done <id> | Complete a goal |
| /goals | List all goals |
| /schedule | List scheduled tasks |
| /memory <query> | Search conversation memory |
| /clear | Clear chat history |
| /exit | Exit the agent |
MCP Server
The included MCP server exposes AIAIAI tools via the Model Context Protocol (stdio):
aiaiai-mcpTools: get_aiaiai_price, get_token_price, get_news, get_candles, get_fear_greed, get_funding_rates, get_btc_mempool, get_defi_tvl, get_solana_stats
Architecture
- Solana-first — primary chain is Solana. EVM chains (Ethereum, Base, Arbitrum, BSC) are available but disabled by default.
- DexScreener — all token price data comes from the DexScreener public API.
- OpenRouter — AI model access via OpenRouter (supports 200+ models).
- Ink TUI — React-based terminal UI with live price sidebar, news panel, and context window tracking.
- Zero inbound — all outbound connections. No server, no listening ports.
Configuration
Configuration lives in ~/.aiaiai/.env:
OPENROUTER_API_KEY=sk-or-...
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
DEFAULT_MODEL=openai/gpt-4oGet an OpenRouter key at https://openrouter.ai/keys
Links
License
MIT
