kbagent for AI agents
Give an AI coding agent safe control of Keboola with kbagent — the Claude Code plugin and /keboola subagent, read-only sandboxing, the conversation ID, and the kbagent context reference.
kbagent is built to be driven by AI coding agents (Claude Code, Cursor, Copilot), not just humans. It gives an agent a stable command surface, a machine-readable reference, and safety rails so it can operate Keboola without you handing over unrestricted access.
Claude Code plugin
Section titled “Claude Code plugin”The plugin installs via Claude Code’s marketplace, not as a downloaded file — so it’s a command you run in the assistant, not a button. It adds a /keboola slash command that spawns a keboola-expert subagent with fresh context and hard rules (fetch the current reference, dry-run first, prefer the CLI over raw REST/MCP, gate on version), plus a structured verification payload. kbagent doctor tells you whether the plugin is installed.
Where the plugin is installed you can also just ask for what you want in plain language (“set up kbagent for my Keboola project”, “log me out of Keboola”) instead of copying commands. The plugin ships a skill that knows those verbs and runs the right commands for you.
The /kbagent:setup shortcut
Section titled “The /kbagent:setup shortcut”The plugin adds a /kbagent:setup command that gets you most of the way in one step. Pass a stack URL or a project name as its argument. It installs the CLI if it is missing, checks whether a project is already connected and skips ahead if one is, and it is safe to run twice.
What it does not do today is finish. When it reaches the sign-in it hands you a command to run in a terminal yourself:
kbagent auth login --stack https://connection.keboola.com --register-projectsSo treat /kbagent:setup as a shortcut, and the manual sequence below as the path that actually completes. Known limitation, tracked in keboola/cli#704: once the sign-in can happen in chat, the short flow becomes the real one.
Set up your client
Section titled “Set up your client”Claude Code
Section titled “Claude Code”Plugin support: marketplace by command, slash commands work.
- Start Claude Code
claude - Add the marketplace
/plugin marketplace add keboola/ai-kit - Install the plugin
/plugin install kbagent@keboola-claude-kit - Optionally run
/kbagent:setup https://connection.keboola.comto install the CLI and check what is already connected. - In a terminal, sign in
kbagent auth login --stack https://connection.keboola.com --register-projects - Verify
kbagent doctor
Cursor
Section titled “Cursor”Plugin support: marketplace through the UI, slash commands work. The plugin is optional here, the flow completes without it.
- Open Add Marketplace → Import from Github and paste the full URL:
https://github.com/keboola/ai-kit - Install the
kbagentplugin from the marketplace. - In a terminal, sign in:
kbagent auth login --stack https://connection.keboola.com --register-projects - Verify:
kbagent doctor
Claude Desktop
Section titled “Claude Desktop”Plugin support: marketplace through the UI, but no slash commands at all. /kbagent:setup answers “Unknown command” and /plugin answers “/plugin isn’t available in this environment”, so Claude Desktop can never run the setup command however the plugin got installed. Set up by hand.
- Install the CLI for your operating system.
- In a terminal, sign in
kbagent auth login --stack https://connection.keboola.com --register-projects - Verify
kbagent doctor
To add the plugin anyway (it gives the chat the keboola-expert subagent and the skill), open Customise → Plugins → Add → Add from marketplace, enter keboola/ai-kit (the short form works here), then install the card titled Kbagent with its plus button. Don’t pick keboola-cli in that same directory: that is the unrelated legacy kbc CLI.
VS Code, Codex, Devin Desktop
Section titled “VS Code, Codex, Devin Desktop”No kbagent plugin exists for these clients yet, so there is no /kbagent:setup to run.
- Open the client.
- Install the CLI for your operating system.
- Run
kbagent contextso the agent learns the command surface. - In a terminal, sign in:
kbagent auth login --stack https://connection.keboola.com --register-projects - Verify:
kbagent doctor
Plain terminal
Section titled “Plain terminal”No AI client involved: install the CLI, connect your project, and verify with kbagent doctor.
The context reference
Section titled “The context reference”Any agent — plugin or not — should start by loading the full command reference:
kbagent contextIt prints usage instructions and the complete, version-matched command list as Markdown, so the agent works from what your installed version actually supports rather than guessing.
Sandbox the agent
Section titled “Sandbox the agent”Don’t give an agent write access it doesn’t need. kbagent’s permission firewall lets you scope a session or a workspace:
# Read-only local workspace for an agentkbagent init --from-global --read-only
# Or block writes for a single sessionkbagent --deny-writes config listCombined with per-project scoped tokens (kbagent token …), you can let an agent explore and propose changes while you keep approval of anything destructive.
Set a conversation ID
Section titled “Set a conversation ID”Set a conversation ID before the agent runs commands, so platform observability can correlate the whole session (every request carries an X-Conversation-ID header):
export KBAGENT_CONVERSATION_ID="<unique-id>"How it fits with the other AI tools
Section titled “How it fits with the other AI tools”- kbagent — the agent’s hands on your projects from the terminal, with sandboxing.
- MCP server — direct tool calls over MCP; kbagent can also call MCP tools via
kbagent tool. - AI Kit — coding-assistant plugins for building Keboola components and apps.
- Kai — the in-product assistant;
kbagent kai ask -m "why did last night's load fail?"puts the same assistant in your shell (beta).
Next: Command reference →