v0.1 — open source, MIT · built for Supermemory hackathon

The AI trading agent that actually learns from every trade.

PacificaPilot is a local-first agent for Pacifica perpetual futures. It combines multi-provider AI reasoning with live technical analysis, social sentiment, and persistent memory via Supermemory — so your agent remembers every trade, every preference, and every pattern across sessions.

◆ No cloud dependency◆ Your keys, your machine◆ BYOK · 4 AI providers
~/pacificapilot — pacifica

01 — Install

One command. Runs locally.

PacificaPilot ships as a Python package (3.11+). It runs entirely on your machine — your keys never leave the box. Run pacifica init once to set keys, config, and optional memory.

bash
pipx install pacificapilot

02 — Capabilities

What it does

A focused set of primitives — not a bloated platform. Each capability composes into the agent's tool loop.

Persistent memory

Supermemory stores every trade, pattern, and preference. Said once, remembered forever — across sessions and models.

Agentic tool loop

Claude Code-style multi-turn reasoning. The AI gathers data, calls tools, reasons step-by-step, then responds.

Autonomous loop agent

24/7 market monitoring with AI-driven trading decisions. Every decision written to memory automatically.

9 trading tools

Place orders, close positions, check balances, run TA, detect market regime, pull performance metrics.

Live technical analysis

RSI 5m/1h, MACD, Bollinger Bands, funding rates, volume signals, and regime detection wired into every prompt.

Multi-provider BYOK

Anthropic, OpenAI, Google Gemini, or OpenRouter. Swap providers at runtime with /apikey. No lock-in.

Human-in-the-loop

Every order requires explicit yes/no. Dry-run by default. Testnet first. Nothing hits the exchange without you.

Non-custodial & local

Your keys stay on your machine. With local Supermemory mode, zero data ever leaves the box.

Textual TUI

Fixed 3-panel layout, slash autocomplete, live status sidebar, trade confirmation modals — not a debug REPL.

03 — The Supermemory Advantage

Memory that survives restarts.

Every other trading agent starts from zero every session. Open the CLI, and the AI has no idea what it traded yesterday, what patterns it noticed, or what you told it. This causes hallucination, repetitive questions, and zero learning.

PacificaPilot integrates Supermemory as a persistent, searchable memory layer. Every trade decision, pattern, and preference is stored under container tags and injected into the AI's system prompt on every session.

Cloud mode

Hosted by Supermemory — no local process needed.

Local mode

Runs on localhost:6767. Zero data leaves.

memory containers
decisionsw: Loop Agent · r: Chat Agent

"LONG BTC at $50k, confidence 75%, RSI was 35"

patternsw: Loop Agent · r: Both

"Funding rate spike on ETH: 0.003 at 14:30"

preferencesw: Chat Agent · r: Chat Agent

"User never wants to trade BONK"

performancew: Loop Agent · r: Chat Agent

"Daily: 3 trades, +$12.50 USDC, 67% win rate"

errorsw: Both · r: Both

"Binance fallback activated for BTC at 14:30"

04 — Architecture

A two-agent loop

A Loop Agent runs autonomously on a timer, fetching live data and making AI-driven decisions. A Chat Agent handles your prompts with a multi-turn tool loop. Both share the same trading core and write to Supermemory.

01

Chat Agent

Multi-turn tool loop. Gathers data, reasons step-by-step, then responds. Up to 8 iterations per turn.

02

Loop Agent

Autonomous 24/7 monitoring. Fetches data, decides trades, writes every decision and pattern to memory.

03

Memory Core

Supermemory — 5 container tags, semantic recall, profile injection. Cloud or fully local.

agentic tool loop — one turn
User → "How are BTC markets, should I trade?"
   ↓
[1] AI decides to call get_market_price("BTC")
[2] Execute → { price, RSI, MACD, Bollinger, volume, funding }
[3] Feed result back to AI (not user)
[4] AI calls get_market_regime("BTC")
[5] Execute → { regime: "weak uptrend", guidance: ... }
[6] Feed result back to AI
[7] AI has full context — produces final response
   ↓
User ← "BTC is in a weak uptrend. RSI neutral, MACD bullish.
       Volume confirms. I'd hold for now."

05 — Natural Language

Talk to it like a co-trader.

No DSL, no rigid syntax. Slash commands when you want structure — plain English for everything else.

"open a $50 long on WIF" Places order with confirmation
"close all my positions" Batch closes everything
"how are BTC markets?" Full market analysis with AI reasoning
"what's my performance?" Win rate, Sharpe, PnL
"I never want to trade BONK" Saved to Supermemory permanently
"what did I trade last week?" Recalled from Supermemory

06 — Tools

9 tools at your command

The AI decides which of these to call — you never have to remember function signatures. Trade actions always require confirmation.

ToolWhat it does
place_orderOpen LONG/SHORT positions (with confirmation)
close_positionClose a specific position
close_all_positionsFlatten the entire book (batch confirmation)
get_positionsView open positions with unrealized PnL
get_account_balanceCheck USDC balance, equity, available capital
get_market_priceFull snapshot: price, RSI, MACD, Bollinger, volume, funding, regime
get_trade_historyPast trades with PnL, duration, entry/exit
get_performance_metricsWin rate, Sharpe, profit factor, drawdown
get_market_regimeDetect trending/ranging/volatile with trading guidance

07 — Comparison

Why it's different

FeaturePacificaPilotOther bots
Persistent memoryCross-session via SupermemoryNone — starts from zero
AI providersBYOK: Anthropic, OpenAI, Google, OpenRouterUsually one vendor
UITextual TUI — 3-panel, live sidebarBasic CLI prints or web dashboard
ReasoningMulti-turn agentic tool loopOne-shot ask & respond
Data locality100% local, non-custodialOften a hosted backend
Technical analysisLive RSI, MACD, Bollinger, funding, regimeBasic or none
Installpip install pacificapilotDocker / Kubernetes setup
CostFree + your API keysMonthly SaaS fees

08 — Security

Your keys. Your machine. Your trades.

Non-custodial

Keys stored on your machine, nowhere else.

BYOK AI

Your API keys go directly to your provider — no proxy.

Confirmation prompts

Every trade action requires explicit yes/no.

Dry-run default

All trades simulated by default until you flip the switch.

Testnet first

New setups start on testnet — no real money at risk.

Memory optional

Supermemory is additive. Trading works without it.

09 — Setup

Four steps to first trade

01

Install the CLI

bash
pipx install pacificapilot
02

Run the setup wizard

bash
pacifica init
# → Pacifica keys → AI provider → config → Supermemory
03

Add an AI provider

bash
pacifica config set anthropic.api_key sk-ant-...
04

Launch the TUI

bash
pacifica start

10 — Reference

Slash commands

CommandDescription
/startBoot the autonomous Loop Agent
/stopStop the Loop Agent
/pauseSoft-pause the loop
/resumeResume the loop
/configView/edit trading parameters
/apikeyManage AI provider and Supermemory keys
/modeSwitch testnet/mainnet
/statusView system status
/helpShow all commands