OpenBB
Product
Commercial OpenBB Workspace Snowflake Native App Security
Open Source Open Data Platform (ODP)
Introducing OpenBB Workspace Lite for small investment teams July 21, 2026 — 6 MIN Introducing OpenBB Workspace Lite for small investment teams Read post OpenBB Workspace Demo: Portfolio Analysis, Apps Marketplace, MCP & AI Agents July 1, 2026 — 11 MIN OpenBB Workspace Demo: Portfolio Analysis, Apps Marketplace, MCP & AI Agents Watch demo
Solutions
App Showcase App Marketplace
By audience Buy-Side AI Vendor
Introducing the OpenBB App Marketplace May 12, 2026 — 5 MIN Introducing the OpenBB App Marketplace Read post Introducing Workspace MCP: agentic financial workflows, governed by design May 26, 2026 — 8 MIN Introducing Workspace MCP: agentic financial workflows, governed by design Read post
Resources
Blog Videos About Documentation
Comparison
Streamlit Tableau Power BI
OpenBB Workspace Demo: Portfolio Analysis, Apps Marketplace, MCP & AI Agents July 1, 2026 — 11 MIN OpenBB Workspace Demo: Portfolio Analysis, Apps Marketplace, MCP & AI Agents Watch demo
Pricing
Commercial
OpenBB Workspace Snowflake Native App Security
Open Source
Open Data Platform (ODP)
App Showcase App Marketplace Buy-Side AI Vendor
Resources
Blog Videos About Documentation
Comparison
Streamlit Tableau Power BI
Pricing
Back to blog
Henrique Joaquim

Author

Henrique Joaquim

SHARE

Building a command line interface (CLI) using the OpenBB Platform

February 21, 2024 — 7 MIN

Building a command line interface (CLI) using the OpenBB Platform

The OpenBB Annual Hackathon

The annual OpenBB internal hackathon that happens in December is always a great learning experience. Every year I’m excited to see what the team comes up with. I believe our engineering team is super pragmatic, efficient, and effective. That’s how we managed to have a wide variety of quality products shipped so fast.

This pragmatic vision can also be dangerous because we can easily get caught in our bubbles. That’s also why our engineering team is developing a series of initiatives for engineers to engage more with users, share content related to features or development, or even write blog posts.

But let me go back to the initial topic; this is a perfect reason to hold the OpenBB hackathon. Why? Because the goal is to leverage our products to either build on top of it, create our research, or overall explore products we hadn’t the opportunity to explore yet — “put yourself in the shoes of the user” instead of focusing only on pure engineering.

This has already led us to incredible results - being, once again - a reason for why we ship so fast: if I’m exploring e.g. the OpenBB Platform and I find a bug or a potential improvement I can immediately act on it. Or, on the other hand, if I’m creating my investment research using the OpenBB Terminal Pro and I think something could benefit from a small tweak, I can discuss it with the team right away.

If you’ve been following OpenBB, you’re probably aware that in mid-2023 we took a huge leap by changing our attitude towards the OpenBBTerminal — we stopped developing to only maintain; and instead, we started building the OpenBB Platform from scratch (learn more about this process and decision here: Celebrating the OpenBB Platform v4 Beta).

The Project

With that being said, what was my project for the 2023 OpenBB Hackathon? Succinctly, I wanted to reconstruct the OpenBB Terminal, the first open-source project we had and the project responsible for the company's inception.

How?

Using the OpenBB Platform.

The OpenBB Platform, at its genesis, it’s simple, lean, modular, and scalable. Because of that, we can add new functionalities and build on top of it incredibly fast.

So the question was:

How can we leverage the OpenBB Platform to power the OpenBB Terminal?

Why?

  • The OpenBB Terminal was the main booster for the creation of OpenBB in the first place.

  • Even though there haven’t been new functionalities on the OpenBB Terminal for a couple of months now, it still has consistently over 8,000 monthly active users.

  • If we can leverage the OpenBB Platform (and automate its usage) for powering the Terminal, it will be very low maintenance - since everything else but infrastructure (which hasn’t seen changes in a long time) will be on the Platform side.

  • It’s an amazing example of how the OpenBB Platform can power a complex application.

Implementation

Single command

The OpenBB Platform uses Pydantic to create data models, which then are leveraged so users can consume provider-specific content in a standardized way. This also means that every field of the data model is carefully crafted: good names, good descriptions, and type annotated.

The OpenBB Terminal uses Argparse to create the commands that are available for users. If you have used it before, you probably remember that Argparse needs to know the name, description, and type of each argument when creating the program.

But wait, I see a lot of overlap in those paragraphs! Exactly.

The first step to implement this project was converting a Platform’s single command into an Argparse program — the famous “divide to conquer” approach — with the idea that, if we do it for one command, we can then automate it to every other command.

Single command translation diagram
Fig 1: Single command translation architecture diagram.
What's the “Argparse Translator”?
In practice, it’s a Python class that given any function is capable of generating an Argparse program.

How does that look in practice? Using this concept, we can generate an Argparse program in a couple of lines of code.

Using the help command on an Argparse translated Platform command.
Fig 2: Using the help command on an Argparse translated Platform command.
Using `obb.equity.price.historical` as a command line program
Fig 3: Using `obb.equity.price.historical` as a command line program.

And just like that, we’re now using the OpenBB Platform as a command line program.

Handling menus/routers

By now, we could already replace the model and views from the Terminal with the Platform’s commands, by replacing them directly on the controllers, which would improve maintainability a lot since the codebase would be drastically reduced.

However, this is not ideal because we would need to adjust the Terminal every time a new command or menu was added to the Platform, and we want this process to be straightforward and automated.

Argparse Router Processor.
Fig 4: Argparse Router Processor.
What's the “Argparse Router Processor”?

In practice, it’s a Python class that, given any target class, it’s capable of creating a series of Argparse-translated methods.

On the OpenBB Platform, each asset class (cryptocurrencies, stocks, fixed income…) is built on their router; on the Terminal, those are called menus.

If you’re a user of the Terminal, you also know that each menu might have several submenus. And that’s no different on the Platform, where each router might have its sub-routers, which is very good for interpretability since everything is correctly grouped.

That also means that our Argparse Router Processor can’t really grab methods from the target class. Instead, it needs to recursively find the sub-routers in order to find all the available commands. When in action, the expectation is that it flattens all the available commands into the translators and also keeps track of the hierarchy on the paths.

Here is an example:

Equity Router being translated to Argparse functions
Fig 5: Equity Router being translated to Argparse functions.

Assembling the pieces

With the above, we’re already in a very good spot to automate the creation of Terminal menus leveraging the Platform.

We only need to have some other piece of software that can:

  • get the OpenBB Platform as an app,
  • discover its routers (that at the end are classes!),
  • and, with that, create a series of controllers that the current Terminal infrastructure can interpret and render so that we can keep pretty much the current UX.
Equity Router being translated to Argparse functions
Fig 6: The Controller Builder and the genesis of the OpenBB Platform CLI.

Here’s a sneak peek at how it may look in the future:

Considerations:

  • In the video, we’re only showing the equity router being translated.

  • This hackathon project turned out to be a proposal for the continuity of the OpenBB Terminal, and it’s currently being reviewed by the OpenBB team.

  • This is not yet an implementation of the OpenBB Terminal.

If you’re interested in knowing the implementation details, please refer to Pull Request #5302 · OpenBB-finance/OpenBBTerminal - the bliss of Open Source Software!

But why not try it yourself? Explore the OpenBB Platform for free and start your own project today - check out our Documentation here: OpeBB Platform Documentation.

Stay tuned for more news about the future of the OpenBB Terminal. Thanks for reading!

Overview

  • How?
  • Why?
  • Implementation
  • Single command
  • Handling menus/routers
  • Assembling the pieces

Recommended For You

OpenBB belongs to everyone
August 25, 2026 — 8 MIN

OpenBB belongs to everyone

Read more
SnapTrade brings connected brokerage account data into OpenBB
August 5, 2026 — 5 MIN

SnapTrade brings connected brokerage account data into OpenBB

Read more
Carbon Arc brings card spend, web traffic, and more into OpenBB
July 23, 2026 — 7 MIN

Carbon Arc brings card spend, web traffic, and more into OpenBB

Read more

Analysts shouldn't need a data scientist to get an answer

The firms that fix that first will have a structural advantage

Start now
OpenBB
OpenBB Workspace Snowflake Native App Security Open Data Platform (ODP)
App Showcase App Marketplace Buy-Side AI Vendor
Blog Videos About Documentation Streamlit Tableau Power BI
Pricing Open Startup Support Contact Sitemap
Product
OpenBB Workspace Snowflake Native App Security
Open Data Platform (ODP)
Solutions
App Showcase App Marketplace Buy-Side AI Vendor
Resources
Blog Videos About Documentation Streamlit Tableau Power BI
Other
Pricing Open Startup Support Contact Sitemap

Copyright © 2026 OpenBB Inc. All rights reserved.
Privacy Policy Terms Trust Center OSS Friends

August 25, 2026

OpenBB belongs to everyone

Didier Lopes

Founder & CEO, OpenBB


TL;DR: We are open-sourcing the entire OpenBB product suite under a permissive open source license

Today is bittersweet.

On December 20, 2020, over the Christmas holidays, I wrote the first lines of Gamestonk Terminal, what would eventually become OpenBB. My flight home to visit my parents had been cancelled because of COVID, so I stayed in London and started building a tool to streamline my own investment research process.

At the time, the idea was simple: individuals (and firms) should be able to own their research platforms. They shouldn't have to adapt their workflows to whatever a data or software vendor decided to build. They should own the entire experience - from the data they connect to, to the interface analysts and PMs use every day, to the APIs, models, skills, tools and AI agents that increasingly form part of the investment process.

Over the last almost six years, OpenBB evolved far beyond anything I imagined when writing those first lines of code. We started as an open-source terminal and went on to build the SDK (now Open Data Platform), the OpenBB Bot, the OpenBB Workspace, the OpenBB Copilot, the Excel Add-in, and an ecosystem of applications created by our team, our partners and the community.

We kept innovating and being at the forefront of what user experience should be. I was prepared to die on the hill that if we were to become the financial infrastructure software for the buy-side and sell-side, then we could not monetize data. Monetizing data would have made us a data vendor. The margins would have been higher, but the incentive would have shifted from offering a better UI/UX to selling more datasets. Selling an infrastructure platform is incredibly challenging, for many reasons. And so we died on that hill. Along the way, we built an incredible community, reached millions of people through our open-source project, worked with some of the largest financial institutions in the world and assembled a team that consistently built far beyond what should have been possible for a company of 10 people. There is a lot to be proud of.

But despite all of that, we couldn't find the product-market fit needed to build a sustainable business around this vision within the time we had.

As a founder, I've always bet the house on the next customer, the next feature or the next launch to change the trajectory of the company. Until even just last weeks, when we announced self-serve Workspace Lite. If we were ever going to close doors, then we never wanted to look back and think "what if".

In hindsight, we could obviously have made different decisions - e.g., surrounding data, or going more vertical with clients and their workflows. But short-term monetization was not something I was prioritizing over where I thought the industry was heading. Ultimately, I wanted us to stand for something.

In the last phase of the company, I explored many paths to give OpenBB a better home. We spoke with larger companies that shared parts of our vision and tried to find a home where the products, and ideally the team behind them, could continue to grow. Ultimately, we weren't able to make that happen.

I left London with my wife to build OpenBB and dedicated almost six years of my life to it. So did the team. We built at the intersection of finance, AI, open source and software infrastructure, often working on problems before they became obvious to the broader market.

Before MCP existed, we had created our own API protocol so agents could interact with the data and analytics widgets in the workspace. In 2023, we built askobb, which let anyone ask investment research questions in natural language that required joining multiple different datasets together.

What this team created deserves to continue existing.

More importantly, I still believe the original vision is inevitable. The future of financial software is not a single platform every firm is forced to use. It is thousands of firms building environments that reflect how they actually work - their own data, internal systems, investment processes, risk models and compliance requirements. Increasingly, their own APIs, MCP servers, models and AI agents too.

If that future is coming, then the technology we built shouldn't disappear simply because we weren't able to commercialize it successfully.

It should become available to everyone.

Today, with the support of the team and OSS Capital, we are committing to releasing the entire OpenBB product suite under a permissive license. This includes OpenBB Workspace, Open Data Platform, OpenBB Copilot and the OpenBB Excel Add-in.

These products represent over 5 years of engineering, millions of dollars invested in R&D and thousands of decisions, experiments and iterations with users. They will become a foundation that individuals, startups, data providers and financial institutions can freely use, modify and build on top of.

We will share more details about the order and timing of each release as we complete that work. In parallel, we will determine the right long-term structure to steward the projects, support contributors and preserve what made OpenBB special in the first place. Existing customers and users of the hosted products will hear from us directly about timelines.

For the partners who built applications for the OpenBB ecosystem, I hope this decision makes your products even more valuable. You already did the work of turning your datasets and analytics into applications that users can interact with. Now, those applications will be able to run inside infrastructure that firms can fully own, extend and customize, while combining them with data and tools from other providers across the ecosystem.

The same applies to the broader community. Developers will be able to use the entire OpenBB stack as a starting point rather than rebuilding the same infrastructure from scratch. Firms will be able to deploy it, adapt it to their requirements and connect it to the systems where their differentiated knowledge already lives.

Over the years, many talented people helped make OpenBB what it is today - employees, contributors, partners. Every one of them left a mark on the product.

But I want to recognize the people who carried OpenBB to the very end. Through the uncertainty and the final stretch, they kept building. They are engineers, product builders, designers and operators who have worked across financial data, AI, developer infrastructure and open source. In alphabetical order, they are:

  • Andrew Kenreich, Head of Product Engineering - LinkedIn
  • Darren Lee, Software Engineer - GitHub, LinkedIn
  • Ihsan Saracgil, CPO - LinkedIn
  • José Donato, Software Engineer - LinkedIn, X, GitHub, Website
  • Juan Alfonso, Software Engineer - GitHub, LinkedIn
  • Minh Hoang, Head of Product - LinkedIn, GitHub
  • Ogonna Nnamani, DevOps - LinkedIn, Medium
  • Rita Figueiredo, Head of Marketing - LinkedIn, Website
  • Rita Soares, Head of Design - LinkedIn, Website
  • Theodore Aptekarev, CTO - LinkedIn, GitHub

To our customers: thank you for trusting a small team with such an ambitious vision.

To our partners: thank you for building alongside us and helping create a more open financial data ecosystem. I hope the next chapter gives you even more freedom to serve your users.

To our investors: thank you for believing in us, including when OpenBB was little more than an idea being built from my living room in London. In particular, I want to thank OSS Capital and Joseph Jacks for supporting this decision and enabling the technology to live beyond the company. Two people I want to name separately: Justin Hoffman and Larry Augustin - working with both of you made me a better founder, but more importantly, a better person.

To every contributor who opened a pull request, reported a bug, wrote documentation, answered a question in Discord, built an integration or simply told someone else about OpenBB: thank you. OpenBB would not have been possible without you.

Finally, to every person who spent part of their career building OpenBB: thank you. We pushed the industry forward and proved that world-class financial infrastructure can be built in the open. The commercial outcome doesn't change the quality of the work.

OpenBB didn't become the company I imagined when I started this journey. But the mission was always larger than the company, and I still believe the ideas behind it are right.

If, ten years from now, firms around the world are using OpenBB as the foundation for software they truly own - connecting their own data, building their own workflows and deploying their own AI agents - then what we built will have achieved something that lasts far beyond us; which was my goal all along: have an impact.

Thank you for one hell of a ride.

Didier Lopes
(LinkedIn, X, GitHub)