Get started with kbagent
A guided first run of the kbagent CLI — install it, connect a Keboola project, verify with doctor, and run your first read commands. Plus multi-project and organization setup.
This walkthrough takes you from nothing to browsing a real project with kbagent in a few minutes. Follow it top to bottom for a single project; the Connect more section covers multi-project and organization setup.
Step 1 — Install
Section titled “Step 1 — Install”Pick the line for your OS.
macOS / Linux — the prebuilt wheel via the install script:
curl -LsSf https://raw.githubusercontent.com/keboola/cli/main/install.sh | shWindows — install with uv in PowerShell (install uv first if you don’t have it):
uv tool install "git+https://github.com/keboola/cli"Any OS, from source — uv works on macOS, Linux, and Windows, auto-updates, and can be pinned:
uv tool install "git+https://github.com/keboola/cli"Confirm it’s on your PATH (all platforms):
$ kbagent --versionkbagent v0.66.0Step 2 — Connect your project
Section titled “Step 2 — Connect your project”For one project you need a Storage API token and your stack URL:
kbagent project add --project prod \ --url https://connection.keboola.com --token YOUR_TOKENprod is an alias you pick — you’ll use it with --project later, or set it as the default with kbagent project use prod.
Step 3 — Verify the connection
Section titled “Step 3 — Verify the connection”kbagent doctor checks your configuration and connectivity. Once a project is connected it confirms the link and flags anything else worth doing (like installing the agent plugin):

You can also test connectivity on its own with kbagent project status.
Step 4 — Browse the project
Section titled “Step 4 — Browse the project”Explore what’s there. Recent jobs:

kbagent job list --limit 5 # recent jobs (shown above)kbagent project list # connected projectskbagent config list # configurations in the default projectStep 5 — Search
Section titled “Step 5 — Search”Find configs, tables, buckets, and flows by name or content:
kbagent search "shopify"Step 6 — Go further
Section titled “Step 6 — Go further”-
Add
--jsonto any command for machine-readable output — this is what an AI agent consumes. -
Set a conversation ID when an agent drives kbagent, so platform observability can correlate the session (adds an
X-Conversation-IDheader):Terminal window export KBAGENT_CONVERSATION_ID="<unique-id>"
Connect more projects
Section titled “Connect more projects”Several projects — register each with its own Storage token (project add), or bulk-onboard with a Manage API token:
KBC_MANAGE_API_TOKEN=xxx kbagent --allow-env-manage-token \ org setup --project-ids 901,9621 --url https://connection.keboola.com --yesA whole organization (org admin) — kbagent registers every project and mints per-project tokens:
KBC_MANAGE_API_TOKEN=xxx kbagent --allow-env-manage-token \ org setup --org-id 123 --url https://connection.keboola.com --yesRead commands then fan out across every connected project — see multi-project.
Next: How kbagent works →