obai

Answers financial market questions by executing OBaI CLI queries with session-based conversation memory.

11|6|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/sixteen-dev/obai --skill obai-sixteen-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: obai
Source: https://github.com/sixteen-dev/obai/tree/main/skills/obai
Command: npx skills add https://github.com/sixteen-dev/obai --skill obai-sixteen-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Getting answers to stock market and financial research questions normally requires juggling multiple data sources and tools. This Skill lets the agent run OBaI CLI queries directly, routing each question to the right specialist agents and returning structured answers with conversation memory across follow-ups. ## Core Features & Use Cases - Autonomous Query Execution: Runs obai query "<question>" --json --session <id> on the user's behalf and presents the parsed response, covering prices, earnings, fundamentals, options, screening, dividends, SEC filings, insider trades, backtesting, crypto, and prediction markets. - Session-Based Memory: Reuses named sessions for follow-up questions on the same topic and creates new sessions when the topic changes, so OBaI retains context across multi-turn research. - Health Checks and Evaluation: Verifies MCP server status with obai status --json and runs evaluation suites to score agent faithfulness and completeness. - Use Case: A user asks "What is AAPL trading at?" then "How does that compare to its 52-week high?" — the agent runs both queries under the same aapl_research session so the second answer builds on the first. ## Quick Start Ask the agent a financial question such as "What is AAPL trading at?" and it will run the OBaI query with a session ID and return the answer.

Frequently Asked Questions about obai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ask OBaI follow-up questions about a stock?▼

Reuse the same --session ID for every query on that topic, for example obai query "..." --json --session aapl_research. OBaI stores conversation memory in ~/.obai/sessions.db, so follow-ups inherit prior context. Start a new session only when the topic changes.

What financial questions can the OBaI CLI answer?▼

It covers stock prices, earnings, fundamentals, options chains and Greeks, market movers, portfolio risk, screening, dividends, SEC filings, insider trades, backtesting, commodity prices, company deep dives, crypto spot data, and Polymarket prediction markets. The Hub routes each query to the right specialist agents automatically.

Why does obai query fail with exit code 3?▼

Exit code 3 indicates an infrastructure error, usually a missing OPENAI_API_KEY or one or more MCP servers being down. Run obai status --json to see which servers are unhealthy, then restart them with ./setup.sh or docker compose up -d.

Does OBaI block non-financial queries?▼

Yes. A guardrail rejects non-financial queries with exit code 1 and sets guardrail_rejected to true in the JSON output. This behavior is controlled by the ENABLE_GUARDRAILS environment variable, which defaults to true.

How do I change the OBaI hub model or reasoning effort?▼

Run obai config set-model gpt-5.6-terra or obai config set-effort high to write ~/.obai/settings.json. Note that ORCHESTRATOR_MODEL and ORCHESTRATOR_REASONING_EFFORT environment variables override the file, and only the web UI applies changes live — CLI clients must be restarted.