CLI
The Airbyte Agent CLI (airbyte-agent) is a Go command-line interface for Airbyte Agents. Use it from a terminal, script, CI job, or agent harness to list workspaces, add connectors, inspect connector schemas, and execute connector actions.
Resource commands use this shape:
airbyte-agent <resource> <operation> [flags]
Most resource operations accept JSON input with --json and print JSON output. The CLI also exposes airbyte-agent schema <resource> <operation> so scripts and agents can discover operation parameters without making an API call.
Use the CLI when you want:
- A shell-first interface to Airbyte Agents.
- A portable binary for AI agents that can run shell commands.
- A non-Python alternative to the SDK and a higher-level wrapper around the Agent API.
Source code and releases live in the airbytehq/airbyte-agent-cli repository.
Requirements
Before you begin, make sure you have:
- An Airbyte Agents account. Sign up at app.airbyte.ai if you don't have one.
- A browser on the machine running the CLI for the default
airbyte-agent loginflow and forconnectors create. Headless machines can useairbyte-agent login --manual, but adding connector credentials still requires the browser widget. - Access to any third-party account you want to connect. The CLI never accepts third-party credentials directly.
Install
Choose one install method.
If you're installing the CLI for an AI agent, use the install script so the bundled agent skill is installed with the binary. Then follow Use the CLI with AI agents for the recommended skill setup and command sequence.
Install script
curl -fsSL https://airbyte.ai/install.sh | bash
The install script installs the latest airbyte-agent binary and the bundled agent skill. You can change its behavior with environment variables:
AIRBYTE_AGENT_VERSION: install a specific release tag.AIRBYTE_AGENT_INSTALL_DIR: choose the binary install directory.AIRBYTE_AGENT_SKILLS_DIR: choose the agent skill install directory.AIRBYTE_AGENT_SKIP_SKILLS=1: install only the binary.
Homebrew
brew install airbytehq/tap/airbyte-agent-cli
Manual binary download
Download the archive for your platform from the latest release, extract it, and put airbyte-agent somewhere on your PATH.
Build from source
git clone https://github.com/airbytehq/airbyte-agent-cli.git
cd airbyte-agent-cli
make build
The binary is written to ./airbyte-agent. To install to your Go binary directory instead, run make install.
Verify the install
airbyte-agent version
If your shell can't find airbyte-agent after running the install script, reopen the shell or add the install directory to PATH. The default script install location is usually $HOME/.local/bin unless you set AIRBYTE_AGENT_INSTALL_DIR.
Authenticate
Run:
airbyte-agent login
The browser flow signs you in to airbyte.ai, fetches the credentials the CLI needs, and writes them to $HOME/.airbyte-agent/settings.json with 0600 permissions. It doesn't prompt for a workspace; use workspaces use to change the saved default after login. If you're on a headless machine, use airbyte-agent login --manual.
For setup details, environment variables, and the settings file format, see Authenticate.
Run your first command
List workspaces:
airbyte-agent workspaces list
Print only the fields you need:
airbyte-agent workspaces list --fields id,name
List configured connectors in the default workspace:
airbyte-agent connectors list --json '{"workspace": "default"}' --fields id,name
Command model
The CLI has three resource groups:
organizations: list organizations and save a default organization.workspaces: list workspaces and save a default workspace.connectors: list available connectors, create connectors, list configured connectors, describe connector schemas, execute actions, update connector credentials, and delete connectors.
Top-level commands include login, login show, schema, version, and completion.
For the full command surface, see the Command reference.
JSON input and output
Resource operations accept input two ways:
--json '{...}'for one JSON payload.- Per-parameter flags, such as
--workspace default --name GitHub.
The two modes are mutually exclusive. Use JSON for agents, scripts, nested payloads, and commands you want to replay.
airbyte-agent connectors execute --json '{
"workspace": "default",
"name": "GitHub",
"entity": "issues",
"action": "context_store_search",
"select_fields": ["id", "title", "state"],
"params": {
"limit": 10
}
}'
Load longer payloads from a file with @filename:
airbyte-agent connectors execute --json @request.json
Schema discovery
Run schema before composing a command you haven't used before:
airbyte-agent schema connectors execute
The response includes CLI parameters plus the underlying OpenAPI request and response schemas when a published API schema exists. Some internal operations, such as organizations list, don't have a published schema. For those, the CLI returns a not_supported JSON error and points you to --help:
{
"type": "not_supported",
"message": "Schema is not available for organizations list. Use --help for command details."
}
Learn more
Authenticate
The CLI needs three values to call the Airbyte Agent API:
Add a connector
A connector stores credentials and configuration for a third-party service in an Airbyte Agents workspace. Create a connector once, then reference it by id when you describe it or execute actions.
Describe a connector
Use connectors describe to inspect a configured connector before executing actions against it. The response includes the connector details plus a schema object returned by the connector's describe action.
Execute operations
connectors execute runs an action against an entity on a configured connector. Use it for reads, searches, creates, and updates.
Manage workspaces and organizations
Use workspaces commands to list workspaces and save a default workspace. Use organizations commands to list organizations and save a default organization.
Use the CLI with AI agents
AI agents can call airbyte-agent as a shell tool. The CLI gives agents a consistent command model, JSON input and output, and runtime schema discovery.
Command reference
Run airbyte-agent --help to list top-level commands, airbyte-agent --help to list operations, and airbyte-agent --help for operation flags.
Troubleshoot the CLI
Use the JSON error on stderr as the primary signal. Exit codes are useful, but the type, message, and hint fields usually tell you what to fix.