Skip to main content
Version: v5

Settings

The interactive REPL keeps its display and behavior settings in ~/.openbb_platform/.cli.env, one OPENBB_<FIELD> line per setting. The file is read when the REPL starts and rewritten whenever a setting changes in the /settings menu. It is the only source: v5 does not read these settings from OPENBB_* variables in the process environment or from openbb.toml (see Configuration). One-shot and batch runs write JSON and do not use these settings at all.

Changing a setting​

Open /settings in the REPL. The help screen lists the feature flags, shown in green when on and red when off, followed by the preferences. Entering a feature flag's command toggles it. A preference takes its new value with -v or --value, and entering it without a value prints the current one.

/settings/datetime
/settings/output -v json
/settings/flair -v :rocket
/settings/timezone

Every change is saved to .cli.env immediately. The file can also be edited while the REPL is closed:

OPENBB_OUTPUT_MODE='json'
OPENBB_FLAIR=':rocket'
OPENBB_USE_DATETIME='False'

Two settings are adjusted at every launch without being saved. If OUTPUT_MODE is tsv, the REPL switches it to rich, and if USE_INTERACTIVE_DF is off, it turns it on. A stored tsv or False therefore only lasts until the next launch; change them again from /settings during the session when needed.

Feature flags​

Field/settings commandDefaultEffect when on
FILE_OVERWRITEoverwriteFalseExports replace an existing file without asking.
SHOW_VERSIONversionTrueThe CLI version appears in the lower-right corner of the menu panel.
USE_INTERACTIVE_DFinteractiveFalseResult tables open in a separate window; see Interactive Tables. Turned on at every launch.
USE_CLEAR_AFTER_CMDclsFalseThe screen is cleared before each command's output. Inside /settings, cls toggles this flag instead of clearing the screen.
USE_DATETIMEdatetimeTrueThe prompt starts with the date and time in the configured time zone.
USE_PROMPT_TOOLKITpromptkitTrueCompletion, history, and the bottom toolbar are active. When off, the prompt is a plain input line.
ENABLE_EXIT_AUTO_HELPexithelpTrueReturning to a menu prints that menu's help screen.
ENABLE_RICH_PANELrichpanelTrueMenu help screens are drawn inside a bordered panel.
TOOLBAR_HINTtbhintTrueThe bottom toolbar lists the help, back, and exit keys.
SHOW_MSG_OBBJECT_REGISTRYobbject_msgFalseA message is printed each time a result is added to the registry.

Preferences​

Field/settings commandDefaultValues and effect
OUTPUT_MODEoutputtsvrich prints a formatted table, json prints the results as indented JSON, tsv prints tab-separated text, and html opens a table in the default browser. With interactive tables on, rich and html use the window instead. Switched from tsv to rich at launch.
TIMEZONEtimezoneAmerica/New_YorkAny IANA time zone name. Used for the clock in the prompt.
FLAIRflair:openbbSymbol shown in the prompt. One of :openbb, :bug, :rocket, :diamond, :stars, :baseball, :boat, :phone, :mercury, :hidden, :sun, :moon, :nuke, :hazard, :tunder, :king, :queen, :knight, :recycle, :scales, :ball, :golf, :peace, :yy. :hidden shows nothing.
N_TO_KEEP_OBBJECT_REGISTRYobbject_res10Number of results the registry keeps before dropping the oldest.
N_TO_DISPLAY_OBBJECT_REGISTRYobbject_display5Number of cached results listed on help screens.
RICH_STYLEconsole_styledarkTerminal color theme, one of dark, light, or openbb. The console picks up the theme when the REPL starts, so a change shows after a restart.
ALLOWED_NUMBER_OF_ROWSn_rows20Stored, but not read by the v5 display code.
ALLOWED_NUMBER_OF_COLUMNSn_cols5Stored, but not read by the v5 display code.

Other fields​

These fields are part of the same model and file but have no /settings command.

FieldDefaultMeaning
VERSIONinstalled openbb-cli versionShown when SHOW_VERSION is on.
TEST_MODEFalsePrints plain text without the rich panel. Set to False at every REPL launch.
DEBUG_MODEFalseSet for the session by openbb -i --debug.
DEV_BACKENDFalseSet for the session by openbb -i --dev.
PREVIOUS_USEFalseSet to True the first time the REPL starts with an empty .cli.env, which is also when it opens the CLI documentation in a browser.