Skip to main content

Airbyte Orb Connector for AI platforms

Project description

Orb

The Orb agent connector is a Python package that equips AI agents to interact with Orb through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

Orb is a usage-based billing platform that enables businesses to implement flexible pricing models, track customer usage, and manage subscriptions. This connector provides access to customers, subscriptions, plans, and invoices for billing analytics and customer management.

Example questions

The Orb connector is optimized to handle prompts like these.

  • Show me all my customers in Orb
  • List all active subscriptions
  • What plans are available?
  • Show me recent invoices
  • Show me details for a recent customer
  • What is the status of a recent subscription?
  • Show me the pricing details for a plan
  • Confirm the Stripe ID linked to a customer
  • What is the payment provider ID for a customer?
  • List all invoices for a specific customer
  • List all subscriptions for customer XYZ
  • Show all active subscriptions for a specific customer
  • What subscriptions does customer {external_customer_id} have?
  • Pull all invoices from the last month
  • Show invoices created after {date}
  • List all paid invoices for customer {customer_id}
  • What invoices are in draft status?
  • Show all issued invoices for subscription {subscription_id}

Unsupported questions

The Orb connector isn't currently able to handle prompts like these.

  • Create a new customer in Orb
  • Update subscription details
  • Delete a customer record
  • Send an invoice to a customer
  • Filter subscriptions by plan name (must filter client-side after listing)
  • Pull customers billed for specific products (must examine invoice line_items client-side)

Installation

uv pip install airbyte-agent-orb

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_orb import OrbConnector
from airbyte_agent_orb.models import OrbAuthConfig

connector = OrbConnector(
    auth_config=OrbAuthConfig(
        api_key="<Your Orb API key>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@OrbConnector.tool_utils
async def orb_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead. If your Airbyte client can access multiple organizations, also set organization_id.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_orb import OrbConnector, AirbyteAuthConfig

connector = OrbConnector(
    auth_config=AirbyteAuthConfig(
        customer_name="<your_customer_name>",
        organization_id="<your_organization_id>",  # Optional for multi-org clients
        airbyte_client_id="<your-client-id>",
        airbyte_client_secret="<your-client-secret>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@OrbConnector.tool_utils
async def orb_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Full documentation

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Customers List, Get, Context Store Search
Subscriptions List, Get, Context Store Search
Plans List, Get, Context Store Search
Invoices List, Get, Context Store Search

Authentication

For all authentication options, see the connector's authentication documentation.

Orb API docs

See the official Orb API reference.

Version information

  • Package version: 0.1.58
  • Connector version: 0.1.6
  • Generated with Connector SDK commit SHA: 3cecc817f060335c13c5d88bc9ad34a4dace961f
  • Changelog: View changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airbyte_agent_orb-0.1.58.tar.gz (160.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airbyte_agent_orb-0.1.58-py3-none-any.whl (187.1 kB view details)

Uploaded Python 3

File details

Details for the file airbyte_agent_orb-0.1.58.tar.gz.

File metadata

  • Download URL: airbyte_agent_orb-0.1.58.tar.gz
  • Upload date:
  • Size: 160.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for airbyte_agent_orb-0.1.58.tar.gz
Algorithm Hash digest
SHA256 205812d03a7909d06baf86bd3a618b8b84ea12890f7e354a1e2c2ab54aa629bb
MD5 b3a86fbbe068a278ed71aa49b74aac63
BLAKE2b-256 bc40f6fbb74e1c6990841c27f055c8ec6a91093007369fb0a581bfbd1d9a28bc

See more details on using hashes here.

File details

Details for the file airbyte_agent_orb-0.1.58-py3-none-any.whl.

File metadata

File hashes

Hashes for airbyte_agent_orb-0.1.58-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed4c06c54880e22bcc848023de630d49eb3e5f45278448a12c6eae03364b6d2
MD5 6ee263641b7944d0ec9108aed265a5b0
BLAKE2b-256 6dafceb17756d8a9a7e32ba75af01949aa71c1a539405415cb890b9f2c055ae2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page