-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.env.example
More file actions
119 lines (91 loc) · 3.96 KB
/
Copy path.env.example
File metadata and controls
119 lines (91 loc) · 3.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# =============================================================================
# OBaI Environment Variables
# =============================================================================
# Reference for every variable OBaI reads. Nothing loads a repo-root .env —
# to set any of these, either export it in your shell or put it in
# ~/.obai/.env, which setup.sh and the CLI load at startup (neither overrides
# a value already exported).
# --- Required API Keys ---
# OpenAI API key — powers all agents via the Agent SDK
OPENAI_API_KEY=your-key-here
# Financial Modeling Prep — used by 6 of 7 MCP servers (~$19/mo)
# https://financialmodelingprep.com/
FMP_API_KEY=your-key-here
# --- Optional API Keys ---
# Massive.com — options chain data (free tier available)
# https://massive.com/
MASSIVE_API_KEY=your-key-here
# Tavily — AI-optimized news search for events-news-server (free tier available)
# https://tavily.com/
TAVILY_API_KEY=your-key-here
# Anthropic — only needed for LLM-judge cross-family evaluation
# Leave empty if you don't plan to run evals with Anthropic models as judges
ANTHROPIC_API_KEY=
# --- Agent Models ---
# Model and reasoning effort for the Central Hub orchestrator.
#
# These two are also settable from the web UI settings modal and from
# `obai config set-model` / `obai config set-effort`, which save your choice to
# ~/.obai/settings.json. Exporting them (or putting them in ~/.obai/.env) WINS
# over that file — do it only to pin the hub, because it makes the UI and CLI
# appear to do nothing. Either way, changes apply on the next hub start
# (`obai restart`), and `obai config show` reports which source is winning.
#
# Hub model choices: gpt-5.6-sol (default) | gpt-5.6-terra
# ORCHESTRATOR_MODEL=gpt-5.6-sol
#
# Reasoning effort: none | low | medium | high | xhigh | max (default: medium).
# `minimal` is NOT accepted by any gpt-5.6 model. The UI and CLI offer the top
# four; none and low are valid but too shallow for hub routing and synthesis.
# ORCHESTRATOR_REASONING_EFFORT=medium
# Model for specialist agents (can reason about tool selection)
SPECIALIST_MODEL=gpt-5.6-luna
# Reasoning effort for specialist agents (same tiers as above)
# SPECIALIST_REASONING_EFFORT=medium
# Per-agent model overrides (leave empty to use SPECIALIST_MODEL default)
# MARKET_DATA_MODEL=
# FUNDAMENTALS_MODEL=
# EVENTS_NEWS_MODEL=
# OPTIONS_MODEL=
# SCREENER_MODEL=
# PORTFOLIO_MODEL=
# Strategy, crypto, and prediction markets run a tier above the other
# specialists — their analysis is heavier than tool selection
# STRATEGY_MODEL=gpt-5.6-terra
# CRYPTO_MODEL=gpt-5.6-terra
# PREDICTION_MARKETS_MODEL=gpt-5.6-terra
# Per-agent reasoning effort overrides for those same three (leave empty to
# use SPECIALIST_REASONING_EFFORT) — the first knobs to turn back up if
# answer quality slips
# STRATEGY_REASONING_EFFORT=medium
# CRYPTO_REASONING_EFFORT=medium
# PREDICTION_MARKETS_REASONING_EFFORT=medium
# --- Guardrails ---
# Filter non-financial queries before they reach agents (cost optimization)
ENABLE_GUARDRAILS=true
# --- Inline Scoring ---
# Run faithfulness + completeness scoring on every CLI/TUI query
ENABLE_INLINE_SCORING=true
# --- Opik Tracing (Self-Hosted) ---
OPIK_ENABLED=true
OPIK_OBAI_PROJECT_NAME=obai-eval
OPIK_URL=http://localhost:5173
# --- MCP Server URLs (defaults work with docker-compose setup) ---
# MCP_FUNDAMENTALS_URL=http://localhost:8001/mcp
# MCP_MARKET_DATA_URL=http://localhost:8002/mcp
# MCP_EVENTS_NEWS_URL=http://localhost:8003/mcp
# MCP_OPTIONS_URL=http://localhost:8004/mcp
# MCP_SCREENER_URL=http://localhost:8005/mcp
# MCP_PORTFOLIO_URL=http://localhost:8006/mcp
# MCP_BACKTEST_URL=http://localhost:8007/mcp
# --- MCP Client Settings ---
# MCP_TIMEOUT=30
# MCP_MAX_RETRIES=2
# --- Logging ---
# LOG_LEVEL=INFO
# --- LangCache Semantic Caching (Optional) ---
# LANGCACHE_ENABLED=false
# LANGCACHE_SERVER_URL=https://aws-us-east-1.langcache.redis.io
# LANGCACHE_API_KEY=
# LANGCACHE_CACHE_ID=obai_query_cache
# LANGCACHE_SIMILARITY_THRESHOLD=0.85