Skip to main content

Orb agent connector

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
  • Get details for customer {customer_id}
  • What is the status of subscription {subscription_id}?
  • List all invoices for a specific customer
  • Show me the pricing details for plan {plan_id}
  • List all subscriptions for customer XYZ
  • Show all active subscriptions for a specific customer
  • What subscriptions does customer {external_customer_id} have?
  • Confirm the Stripe ID linked to this customer
  • What is the payment provider ID for customer {customer_id}?
  • 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.

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

connector = OrbConnector(
external_user_id="<your_external_user_id>",
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.

EntityActions
CustomersList, Get
SubscriptionsList, Get
PlansList, Get
InvoicesList, Get

Authentication and configuration

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

Orb API docs

See the official Orb API reference.

Version information

  • Package version: 0.1.4
  • Connector version: 0.1.1
  • Generated with Connector SDK commit SHA: 5b20f488dec0e8f29410823753106603c23a4b65
  • Changelog: View changelog