A self-hosted Kalshi cockpit built for both humans and AI agents.

Live WebSocket market data, a Kalshi-style market board with props folded under their matchups, multi-model AI research (Claude / ChatGPT / Grok / Ollama), a dedicated agent API with its own credential — and guarded order execution behind a mode gate, a risk engine, and a kill switch. One local web app, reachable from anywhere over Tailscale.

  • Kalshi-style market board. Categories first, busiest first. Sports derivatives — spreads, team totals, player props — are grouped under their parent matchup with a ▸ N props expander, instead of flooding the board as sibling cards. In the detail view, GAME chips hop between Winner / Spread / Team Total / player props for the same game. Search matches folded props, so "judge home run" surfaces the Yankees game.
  • Live everything. The backend keeps order books current over Kalshi's WebSocket (snapshot + delta with sequence resync) and rebroadcasts to the browser — no polling. Visible cards subscribe to live books; lopsided resting depth and aggressive taker flow get flagged on the card.
  • Smart-money read. Order-flow heuristic per market: resting-depth imbalance, taker flow, and large-trade skew, weighted into a lean. Honest about what it is — Kalshi doesn't publish holders.
  • Multi-model research — with a scoreboard. Claude, ChatGPT, Grok, and local Ollama each get the market, book, and flow; their probabilities ensemble into one verdict with an explicit edge vs. the market price. Calibrated to say PASS most of the time. Every verdict is logged and scored after the market settles: Brier score per model against the market price itself, recommendation hit rate, realized edge — the Σ ai stats view tells you which models to actually trust.
  • Agent-native, two ways. A separate, revocable AGENT_TOKEN unlocks /api/agent/* for any external agent (browse → research → guarded order), and a zero-dependency MCP server (mcp/server.mjs) exposes the same surface as native tools for Claude Desktop / Claude Code / any MCP client. A bundled Claude Code skill teaches Claude sessions how to drive it safely.
  • Positions & orders management. The ▤ portfolio view shows every open position with live marks and unrealized P&L, one-click close, and resting orders with one-click cancel — mirrored on the agent API.
  • Book-aware pricing. The trade panel prices orders off the live book: instant (pay the ask, fills now), mid (middle of the spread), bid+1 (beat the best resting bid — first in queue), or custom — click any level in the order-book ladder to load it as your price. The buttons flip from BUY to BID when your order would rest, the panel shows exactly what each mode saves vs. paying the ask, and resting bids are good-till-canceled with a one-click cancel.
  • The AI monitor. Open any market and click 👁 Add to AI monitor — the AI re-researches it every few minutes (MONITOR_MINUTES) and shows its read live in the portfolio view. In armed AUTO mode it buys when the edge clears your bar — once per market, position-aware (it never stacks or re-buys), sized by your risk caps, and it reports exactly why it did or didn't act. This is the only path that places orders automatically.
  • Guarded execution. Three modes — RESEARCH (orders blocked), APPROVE (human click required), AUTO (armed + risk-limited only). Every order from every source passes the same risk engine; the red KILL switch stops everything instantly.
  • https://github.com/jangles-byte/ALSHI
u/Jimgle7 — 3 days ago
▲ 858 r/BuildWithClaude+1 crossposts

Adding more layers. All visible to your agent with 1 api call. Live feeds from across the globe.

What it does:
•Fuses 30+ free, keyless live feeds into one real-time world-state on a live globe — conflict (GDELT, Ukraine front lines), natural hazards (quakes, storms, wildfires), markets (indices, crypto, Polymarket odds), humanitarian (displacement, disease, food insecurity), and movement (flights, satellites, maritime)
•Fully agent-ready: one local call returns a prose world summary + every event with coordinates + live forecasts. OpenAPI spec, SSE streaming, runtime model-switching
•A local model forecasts across 24h → 1 year, with a council of four personas (Strategist, Economist, Naturalist, Skeptic) surfacing where they agree and split

Stack: Ollama for the local LLM, FastAPI + HTTP/JSON/SSE for the API, built by fusing two existing OSS projects — MiroFish (swarm prediction) and Osiris (live globe). MIT.

Repo: https://github.com/jangles-byte/Pythia

u/Jimgle7 — 5 days ago
▲ 7 r/coolgithubprojects+2 crossposts

PYTHIA — a local, keyless tool that gives your agent the entire live world in one API call (Ollama, MIT)

Most agents are blind to the real world. PYTHIA fixes that — one local call returns every major global event happening right now (with coordinates) plus forecasts of what’s next.

Runs entirely on your own hardware via Ollama. No cloud, no keys, no cost. Runtime model-switching, OpenAPI spec, SSE streaming, per-domain filtering.
Watches 30+ free keyless feeds:
•Conflict & security — GDELT, live Ukraine front lines (DeepStateMap), cyber threats, GPS jamming, critical/nuclear infrastructure
•Natural hazards — earthquakes (USGS), NWS storm/flood polygons, wildfires (FIRMS), EONET disasters, radiation
•Markets — oil, indices, commodities, crypto, Polymarket crowd odds
•Humanitarian — displacement (UNHCR), disease (WHO), food insecurity (WFP), inflation/unemployment/GDP/poverty (World Bank), censorship (OONI)
•Movement — flights (civil/private/military), satellites, maritime, live news/CCTV
Forecasts span 24h/week/month/year, each re-scored by a council of four personas (Strategist, Economist, Naturalist, Skeptic) that surface consensus AND dissent. Honest: these are LLM reasoning over live data, not a statistical model — a grounding layer for agents, not a crystal ball.

Built on MiroFish (@666ghj) + Osiris (@simplifaisoul); PYTHIA is the engine that fuses them. MIT.

github.com
u/Jimgle7 — 6 days ago