Skip to content

Configuration

Cents reads settings from ~/.cents/config.toml and overrides them with environment variables. Everything below is optional unless an agent that needs the key is invoked.

fmp_api_key = "..." # financialmodelingprep.com
alpaca_api_key = "..." # alpaca.markets
alpaca_secret_key = "..."
news_api_key = "..." # newsapi.org (optional)
fred_api_key = "..." # fred.stlouisfed.org (optional)
default_scan_threshold = 5.0

The database lives at ~/.cents/data/cents.db (SQLite, created on first run). Override with CENTS_DB_PATH.

Env vars take precedence over the TOML file. Useful for CI, ephemeral shells, or per-portfolio profiles.

VariablePurpose
FMP_API_KEYFundamentals, moat, insider agents
ALPACA_API_KEYTechnical agent + broker integration
ALPACA_SECRET_KEYTechnical agent + broker integration
NEWS_API_KEYSentiment agent
FRED_API_KEYMacro agent
ANTHROPIC_API_KEYSentiment agent (LLM scoring of headlines)
CENTS_DB_PATHOverride SQLite location
CENTS_OUTPUT_FORMATtext (default) or json
CENTS_SCAN_THRESHOLDDefault watchlist alert threshold (in delta points)
CENTS_WEBHOOK_URLOutbound webhook for alerts (currently plumbed-only)
  • Link: financialmodelingprep.com
  • Free tier: yes (rate-limited; sufficient for personal research)
  • Scope: fundamentals (P/E, margins, ROE, debt), moat metrics (margin stability, ROIC trends), insider transactions, analyst ratings.
  • Link: alpaca.markets
  • Free tier: yes (paper trading + market data)
  • Scope: equity prices, bars, and 52-week range for the technical agent; position/order endpoints for the optional broker integration.
  • Link: fred.stlouisfed.org
  • Free tier: yes (no usage cap for typical research patterns)
  • Scope: Fed funds rate, yield curve, VIX, unemployment — the macro agent’s entire input set.
  • Link: newsapi.org
  • Free tier: yes (developer plan, limited to 100 requests/day and 24h delay)
  • Scope: recent headlines used by the sentiment agent. Optional — the sentiment agent degrades to a no-op if the key is missing.
  • Link: console.anthropic.com
  • Free tier: trial credit
  • Scope: powers the sentiment agent’s headline classification. Without it, sentiment falls back to keyword heuristics.

Once keys are set, cents status prints which providers are wired up and where the database lives.

Terminal window
cents status
Not financial advice. Cents is an educational and research tool for tracking your own investment theses. Outputs are model-generated and may be inaccurate. You are solely responsible for your own investment decisions.