kbagent -- Keboola Agent CLI
One CLI to manage all your Keboola projects. Designed to be driven by AI agents -- Claude Code, Codex, Gemini, Cursor -- but works great standalone too.
No more switching between the UI, the old CLI, and raw API calls. kbagent wraps everything into workflow-oriented commands where dev branches propagate automatically, multi-project operations run in parallel, and AI agents can be sandboxed safely.

Install
curl -LsSf https://raw.githubusercontent.com/keboola/cli/main/install.sh | sh
This installs a prebuilt wheel of the highest stable version on PyPI from its GitHub release -- a few-seconds download, no source build. Building from git+ instead recompiles the bundled React SPA via npm on every install, which takes minutes on WSL (#353). The script bundles the [server] extras by default (set KBAGENT_NO_SERVER=1 for a CLI-only install) and needs only curl + uv.
Requires Python >=3.12. uv normally fetches a matching interpreter on its own even if your default Python is older, but if it doesn't (offline, or Python downloads disabled) the install fails with does not satisfy Python>=3.12 -- set UV_PYTHON (a standard uv env var) to a 3.12-or-newer interpreter you actually have -- UV_PYTHON=3.12, UV_PYTHON=3.13, or a full path. It has to reach sh, not curl -- curl -LsSf https://raw.githubusercontent.com/keboola/cli/main/install.sh | UV_PYTHON=3.12 sh, or export UV_PYTHON=3.12 beforehand. Prefixing the whole pipeline (UV_PYTHON=3.12 curl ... | sh) assigns it to curl, where it has no effect.
Prefer to build from source, or pin a specific version?
uv tool install 'git+https://github.com/keboola/cli@v<version>'
Use a version from the releases page. Always give the tag: without it uv builds main, which can contain changes that are not released yet, including the next major version.
Windows
The curl ... | sh one-liner at the top needs a POSIX shell. Windows has shipped curl.exe since Windows 10 1803, but it has no sh -- so the command gets halfway and then fails with 'sh' is not recognized, in both cmd and PowerShell. Installing Git for Windows does not fix it either: the installer only puts C:\Program Files\Git\cmd on PATH, and sh.exe lives in usr\bin.
Pick whichever fits the machine:
PowerShell, no POSIX shell needed -- the same wheel install.sh would have fetched:
winget install --id astral-sh.uv -e # skip if uv is already installed
$ver = (Invoke-RestMethod "https://pypi.org/pypi/keboola-cli/json").info.version
uv tool install --force --compile-bytecode `
"keboola-cli[server] @ https://github.com/keboola/cli/releases/download/v$ver/keboola_cli-$ver-py3-none-any.whl"
if ($LASTEXITCODE -ne 0 -and $ver) { uv tool install --force --compile-bytecode "keboola-cli[server]==$ver" } # fallback: the same version from PyPI
if ($LASTEXITCODE -ne 0) { uv tool install --force --compile-bytecode "keboola-cli[server]" } # last fallback: the newest stable version from PyPI
uv tool update-shell # puts %USERPROFILE%\.local\bin on PATH
The version comes from PyPI (the highest stable version), like in install.sh. If the wheel install fails, the next line installs the same version from PyPI, and if that fails too (or the version could not be read), the newest stable version from PyPI.
Works in the in-box Windows PowerShell 5.1 -- no PowerShell 7 needed.
Then open a new shell -- uv tool update-shell edits the persisted PATH, and the current session will not see it.
Already have Git for Windows? Run the documented script through its bash:
& "C:\Program Files\Git\bin\bash.exe" -lc "curl -LsSf https://raw.githubusercontent.com/keboola/cli/main/install.sh | sh"
Smart App Control, WDAC or AppLocker blocks kbagent, or no Python on the machine? Install the signed binary with WinGet:
winget install --id Keboola.KeboolaCLI2 -e
The uv install runs a kbagent.exe that uv builds on your machine and a Python that uv downloads. Neither is signed, so Windows 11 with Smart App Control on, and a WDAC or AppLocker policy, can refuse to run it ("An Application Control policy has blocked this file"). Every release also ships a self-contained binary with a Keboola Authenticode signature. It carries its own interpreter and needs neither Python nor uv. WinGet installs it for the current user and puts kbagent on PATH. kbagent serve --ui works in the binary since 1.4.0.
The binary does not update itself. When a new version is out, it prints the command that updates it, here winget upgrade Keboola.KeboolaCLI2.
The same binary is also available: