/tradecraft:openalice-trading-agentfrom tradecraft
File-driven autonomous AI trading agent using a Trading-as-Git workflow (stage, commit, push to execute). Supports Alpaca, CCXT, and IBKR for equity, crypto, and forex trading locally.
Ships in tradecraft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
USE FOR:
Experimental file-driven autonomous AI trading agent.
"Your own research desk, quant team, trading floor, and risk management — all running on your laptop 24/7."
# Prerequisites: Node.js 22+, pnpm 10+, Claude Code CLI (authenticated)
git clone https://github.com/TraderAlice/OpenAlice.git
cd OpenAlice
pnpm install && pnpm build
pnpm dev
# Access at: http://localhost:3002
No API keys required for default Claude Code setup.
┌──────────── AgentCenter (orchestration) ─────────────┐
│ │
│ ProviderRouter → Claude Code / Vercel AI / SDK │
│ ToolCenter → centralized capability registry │
│ │
│ Extensions: │
│ trading/ → orders, positions, risk │
│ analysis/ → technicals, fundamentals, news │
│ news/ → RSS archive, searchable │
│ │
│ Connectors: │
│ Web UI · Telegram · MCP │
└──────────────────────────────────────────────────────┘
# Stage an order
alice stage buy AAPL 100 --limit 195.00
# Review staged orders
alice status
# Commit with intent message
alice commit -m "buy AAPL on earnings dip"
# Returns: commit hash (8 chars) e.g. a1b2c3d4
# Execute (push to broker)
alice push
# View history
alice log
Each account owns:
// Safety guard pipeline (pre-execution)
const guards = [
new PositionLimitGuard({ maxPositions: 10 }),
new TradeCooldownGuard({ cooldownMs: 60_000 }),
new SymbolWhitelistGuard({ symbols: ["AAPL", "NVDA", "BTC"] })]
| Broker | Status | Assets |
|---|---|---|
| Alpaca | Active | US Equities, Crypto |
| CCXT | Active | 100+ Crypto exchanges |
| IBKR | Pending | Stocks, Futures, Forex, Options |
Data coverage: Equities, Crypto, Forex, Commodities, Macro indicators, Fundamentals, Financial statements, Analyst estimates, Insider trading
| Feature | Description |
|---|---|
| Working memory | Persistent across sessions |
| Emotion tracking | Agent confidence state |
| Cron scheduling | Event-driven strategies |
| Heartbeat | Periodic health + position checks |
| Evolution mode | Agent modifies own source code (sandboxed) |
OpenAlice uses Claude Code CLI as its default AI backend:
// ProviderRouter selects Claude Code by default
const agent = new AgentCenter({ provider: "claude-code" })
// Claude Code handles:
// - Natural language order interpretation
// - Research and analysis tasks
// - Risk reasoning
// - Self-modification (evolution mode)
This makes OpenAlice unique: it's built specifically around the Claude Code workflow, meaning your Claude Code session can directly control the trading agent.
// RSS-based news collection
const news = await alice.news.search("AAPL earnings Q1 2026")
// Fundamentals + financials
const fundamentals = await alice.analysis.company("AAPL")
// Returns: P/E, EPS, revenue growth, analyst estimates, insider trades
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mahmoud20138/tradecraft --plugin tradecraft169 skills in this plugin
/agent-developmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./agentic-storageAgentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
Other plugins' skills for the same job