Skip to main content

Overview

The Fabi CLI gives you programmatic access to the Fabi back end from your terminal. Combined with an AI coding agent like Claude Code or Codex, it enables a headless BI workflow — you can build fully custom dashboards and applications on top of your connected data sources, then deploy and share them through Fabi. To get started, point your agent to the CLI repository:
https://github.com/fabi-ai/fabi-cli
Your agent will install the CLI and automatically redirect you to your browser to log in. Once authenticated, your agent has access to every data source connected to your Fabi workspace and you can immediately start building.

What you can do

With the CLI installed, you can ask your agent to:
  • Build custom dashboards with any layout, chart type, or interaction you can describe
  • Create data applications (search tools, reporting interfaces, admin panels, etc.)
  • Query any data source connected to your Fabi workspace
  • Deploy finished apps to app.fabi.ai and share them with your team
Your agent generates React applications from scratch on top of the Fabi API, so there are no template constraints — if you can describe it, your agent can build it.

Example workflow

Everything happens through conversation with your agent:
  1. “Install the Fabi CLI from https://github.com/fabi-ai/fabi-cli — your agent clones the repo and installs the CLI. You’ll be redirected to your browser to log in.
  2. “Build a dashboard showing our top 10 customers by revenue this quarter, with a bar chart and a detail table I can click into” — your agent pulls your data context, generates a React app, and previews it locally.
  3. “Deploy this to Fabi” — your agent deploys the app and gives you a link to share with your team.
The more semantic context your team has configured in Fabi (column descriptions, metrics definitions, relationships), the better your AI agent will perform. See AI context and semantics for details.

Security

You authenticate through Fabi, which manages session tokens on your behalf. Your underlying data source credentials are never exposed locally — there are no raw database tokens in .env files or shell histories.
  • No raw credentials locally — you authenticate through Fabi’s OAuth flow, and session tokens are managed by the CLI. Your database passwords and API keys never touch your local machine.
  • Scoped access — the CLI respects the same permissions and data source access controls configured in your Fabi workspace.
  • Revocable sessions — if a machine is lost or compromised, revoke the session from your Fabi account settings without needing to rotate database credentials.

Supported agents

The Fabi CLI works with any AI coding agent that can execute shell commands, including:
  • Claude Code — point it at the CLI repo and start building
  • Codex — works the same way via its terminal access