/airbyte-agent-sdk:building-multi-connector-agentfrom airbyte-agent-sdk
Scaffolds a multi-connector agent using Airbyte connectors with PydanticAI or Claude SDK. Wires up shared auth, typed connectors, and per-connector tool functions.
Ships in airbyte-agent-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this when an agent needs two or more Airbyte connectors.
The bootstrapping-agent skill shows the default single-connector pattern: AirbyteAuthConfig plus build_connector_tools. The builder's execute, inspect_connector, and read_skill_docs names are fixed, so the tool sets for more than one connector collide when registered on the same agent. Renaming the callables at registration avoids the collision, but the generated execute guidance still names inspect_connector and read_skill_docs, pointing the model at the wrong tools. Multi-connector agents write their own tool functions with @Connector.agent_tool(...), which weaves the real names in through inspect_tool= and docs_tool=:
AirbyteAuthConfig(...) so credentials are shared across connectors.JiraConnector(auth_config=auth)).@Connector.agent_tool(...) decorator.Use connector-specific function names so the framework registers six unambiguous tools for two connectors.
uv pip install airbyte-agent-sdk
The single airbyte-agent-sdk package bundles every typed connector without per-connector installs.
import os
from pydantic_ai import Agent
from airbyte_agent_sdk import AirbyteAuthConfig
from airbyte_agent_sdk.connectors.jira import JiraConnector
from airbyte_agent_sdk.connectors.slack import SlackConnector
# Shared credentials — all connectors reuse the same AirbyteAuthConfig
auth = AirbyteAuthConfig(
airbyte_client_id=os.getenv("AIRBYTE_CLIENT_ID"),
airbyte_client_secret=os.getenv("AIRBYTE_CLIENT_SECRET"),
workspace_name=os.getenv("AIRBYTE_WORKSPACE_NAME", "default"),
)
jira = JiraConnector(auth_config=auth)
slack = SlackConnector(auth_config=auth)
If the workspace contains multiple connectors of the same type, pin one by passing connector_id=os.getenv("JIRA_CONNECTOR_ID") to the constructor.
Each connector gets its own execute, inspect, and docs functions. Do not combine connectors into a mega-tool; separate names give the LLM clear, independent tool descriptions and let it read only the relevant connector docs.
agent_tool is a @classmethod — decorate with @JiraConnector.agent_tool(...), not @jira.agent_tool(...).
agent = Agent(
"<provider:model>",
system_prompt=(
"You are a helpful assistant with access to Jira and Slack. "
"Use the jira_execute tool to read Jira issues and the slack_execute tool to post messages. "
"Ask for clarification if a request is ambiguous."
),
)
@agent.tool_plain
@JiraConnector.agent_tool(
framework="pydantic_ai",
inspect_tool="jira_inspect",
docs_tool="jira_read_docs",
)
async def jira_execute(entity: str, action: str, params: dict | None = None):
return await jira.execute(entity, action, params or {})
@agent.tool_plain
@JiraConnector.agent_tool(framework="pydantic_ai")
async def jira_inspect():
return await jira.inspect_connector()
@agent.tool_plain
@JiraConnector.agent_tool(framework="pydantic_ai")
async def jira_read_docs(section: str | None = None):
return await jira.read_skill_docs(section)
@agent.tool_plain
@SlackConnector.agent_tool(
framework="pydantic_ai",
inspect_tool="slack_inspect",
docs_tool="slack_read_docs",
)
async def slack_execute(entity: str, action: str, params: dict | None = None):
return await slack.execute(entity, action, params or {})
@agent.tool_plain
@SlackConnector.agent_tool(framework="pydantic_ai")
async def slack_inspect():
return await slack.inspect_connector()
@agent.tool_plain
@SlackConnector.agent_tool(framework="pydantic_ai")
async def slack_read_docs(section: str | None = None):
return await slack.read_skill_docs(section)
For LangChain, OpenAI Agents, or FastMCP, keep the same three-functions-per-connector structure and change framework= plus the outer registration decorator. Omit framework= for unsupported frameworks and handle AirbyteToolError in the dispatch loop.
Connector.tool_utils is deprecated and remains available only for backwards compatibility with existing one-tool integrations. Do not generate it for new multi-connector agents.
Describe the agent's purpose and what each connector does:
agent = Agent(
"<provider:model>",
system_prompt=(
"You are a customer support assistant. "
"Use the stripe tool to look up customer billing data. "
"Use the jira tool to create and track support tickets. "
"Use the slack tool to notify the support team."
),
)
import asyncio
async def main():
result = await agent.run("Find open P0 bugs and post a summary to #engineering")
print(result.output)
await jira.close()
await slack.close()
asyncio.run(main())
See Claude SDK patterns for the full message loop with tool handling.
For a new agent project:
my-agent/
├── pyproject.toml # dependencies: airbyte-agent-sdk, pydantic-ai or anthropic
├── .env # AIRBYTE_CLIENT_ID, AIRBYTE_CLIENT_SECRET, AIRBYTE_WORKSPACE_NAME
├── agent.py # Entry point: auth config, connectors, agent + tools, run loop
└── README.md
[project]
name = "my-agent"
requires-python = ">=3.11"
dependencies = [
"airbyte-agent-sdk",
"pydantic-ai",
"python-dotenv",
]
AIRBYTE_CLIENT_ID=your_client_id
AIRBYTE_CLIENT_SECRET=your_client_secret
AIRBYTE_WORKSPACE_NAME=your_workspace_name
AirbyteAuthConfig, build_connector_tools, and agent_toolWhat SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/airbyte-sdk-referenceReference documentation for the Airbyte per-connector typed SDK packages/bootstrapping-agentWires up an Airbyte connector for use in a PydanticAI, Claude SDK, or other agent. Generates auth config, connector initialization, prebuilt connector tools, or agent_tool-decorated custom tool functions. Use when adding a connector to an agent or setting up a new agent with a connector./discovering-connectorsDiscovers available Airbyte connectors, explores their entities/actions/schemas, and checks auth requirements. Use when asking what connectors exist, what a connector can do, or what fields/entities are available.npx claudepluginhub airbytehq/airbyte-agent-sdk --plugin airbyte-agent-sdkOther plugins' skills for the same job