musashi-api is the standalone backend repository for Musashi.
It keeps the shared prediction-market intelligence stack that used to live inside the monolithic Musashi/ project:
- REST API handlers in
api/ - analysis pipeline in
src/analysis/ - market/Twitter clients in
src/api/ - SDK client in
src/sdk/ - Supabase schema and the auxiliary backend server in
server/
This repo is the new source of truth for shared functionality. Both musashi-extension and musashi-mcp should consume this API instead of importing code from the old Musashi/ directory.
pnpm dev: run the local API shim onhttp://127.0.0.1:3000pnpm backend:dev: run the Supabase-backed auxiliary backend fromserver/api-server.mjspnpm test:agent: run the API/SDK smoke and contract tests against URLhttps://musashi-api.vercel.apppnpm test:agent:local: run the same agent test suite against the local API athttp://127.0.0.1:3000pnpm typecheck: type-check core sources plus Vercel API handlers
- The original reference docs were copied in
*.upstream.mdfiles so functionality and historical guidance remain available in this split repo. vercel.jsonnow includes theground-probabilityroute so local and deployed API behavior stay aligned.