Fallbakit CLI

Configuration

Where the Fallbakit CLI stores config and credentials, the precedence of settings, and the environment variables for headless and self-hosted use.

Files

The CLI keeps everything under ~/.fallbakit/:

PathContentsPermissions
~/.fallbakit/config.jsonNon-secret settings (dashboardUrl, apiBaseUrl).0644
~/.fallbakit/auth.jsonSigned-in cli_* token and identity.0600
~/.fallbakit/runners/<id>.jsonPer-runner credentials from runner create.0600

Print the config directory with:

fallbakit config path

Settings

Two settings control which backend the CLI talks to:

KeyDefaultDescription
dashboardUrlhttps://fallbakit.comDashboard management API the CLI authenticates and operates against.
apiBaseUrlhttps://api.fallbakit.comOpenAI-compatible gateway base URL written into scaffolded apps.

View and change them:

fallbakit config get
fallbakit config set dashboardUrl https://fallbakit.example.com
fallbakit config set apiBaseUrl https://api.fallbakit.example.com

Environment variables

Environment variables take precedence over config.json, which takes precedence over the built-in defaults. Use them for CI, headless hosts, or self-hosted deployments.

VariableOverridesDescription
FALLBAKIT_TOKENauth.json tokenUse this cli_* token instead of the stored credentials.
FALLBAKIT_DASHBOARD_URLdashboardUrlDashboard management API URL.
FALLBAKIT_API_BASE_URLapiBaseUrlOpenAI-compatible gateway base URL.
FALLBAKIT_CONFIG_HOME~/.fallbakitDirectory for config, credentials, and runner files.

Precedence, highest first:

environment variable  >  config.json  >  built-in default

Non-interactive auth

In CI or other non-interactive environments, set FALLBAKIT_TOKEN to a CLI token and skip login entirely:

export FALLBAKIT_TOKEN=cli_xxxxxxxx
fallbakit whoami
fallbakit usage --range 24h --json

Self-hosted backend

Point the CLI at your own deployment by setting both URLs:

export FALLBAKIT_DASHBOARD_URL=https://fallbakit.example.com
export FALLBAKIT_API_BASE_URL=https://api.fallbakit.example.com
fallbakit login
Configuration | Fallbakit Docs | Fallbakit