driptab/Docs

Guide: AI agents

Driptab ships a ready-to-use Crux agent and three skills. Once installed, any Crux-enabled workspace can route billing work to @driptab-operator — it knows the CLI, the API, and common billing workflows.


Installation

The agent and skills live in your global Crux home (~/.crux). If Crux is already installed:

# Agent
mkdir -p ~/.crux/agents/driptab-operator
# copy AGENT.md from this repo: projects/driptab/docs/crux/agents/driptab-operator/AGENT.md

# Skills
mkdir -p ~/.crux/skills/driptab-cli
mkdir -p ~/.crux/skills/driptab-api
mkdir -p ~/.crux/skills/driptab-billing-ops
# copy SKILL.md files from: projects/driptab/docs/crux/skills/*/SKILL.md

Or install from the published Crux registry (if available):

crux install driptab-operator

Agent: driptab-operator

Activate: type @driptab-operator in any Crux session.

The agent is a billing operations specialist. It:

  • Runs dtab CLI commands to inspect and modify billing data
  • Calls the REST API at https://api.driptab.app for programmatic access
  • Uses the MCP server at /v1/mcp for AI-native billing tool calls
  • Understands the full data model: org → project → customer → subscription → invoice → payment

Permission model:

Command class Permission
dtab * list, dtab * get, dtab whoami, dtab ls Auto-allowed
dtab cust create, dtab subs create, dtab payments create Ask before running
dtab inv void, dtab cache purge Ask before running

Skills

Skills are reference documents the agent loads on demand. They can also be loaded manually in any session:

driptab-cli

Complete dtab command reference — every subcommand, flag, and usage pattern.

Covers: auth, context, customers, subscriptions, invoices, payments, plans (including --labels), cache, sync, global flags, and key patterns like --all vs default-10 limits.

driptab-api

REST API + MCP reference for https://api.driptab.app.

Covers: base URL, auth headers, error format, pagination (?all=1, ?limit=N, ?offset=N), all key endpoints with request/response shapes, portal endpoints, and MCP JSON-RPC tool call format.

driptab-billing-ops

Step-by-step playbooks for common billing workflows:

Workflow Description
Onboard a new customer Create customer → subscription → verify portal
Record a payment Find invoice → record payment → check status
Investigate overdue invoices List overdue → check customer → review payments
Update plan labels Tag plans for portal filter chips
Portal cache management When to purge, ?refresh=1 usage
Void an invoice Pre-conditions, steps, verification

Example session

@driptab-operator show me all outstanding invoices

@driptab-operator onboard a new customer — name: Acme Corp, email: billing@acme.com,
  external_id: acme_001, plan: mail-hizmeti-yearly

@driptab-operator record a $990 bank transfer payment on the oldest outstanding
  invoice for customer acme_001, reference: WIRE-2026-089

@driptab-operator update plan domain-pro labels to: domain, reseller, tr-tld

Using without Crux

The skills are plain markdown. You can paste them directly into any AI context:

  • ~/.crux/skills/driptab-cli/SKILL.md — CLI cheatsheet
  • ~/.crux/skills/driptab-api/SKILL.md — API + MCP reference
  • ~/.crux/skills/driptab-billing-ops/SKILL.md — Operational playbooks

MCP vs CLI vs REST

Method Best for
MCP (/v1/mcp) Claude Desktop, AI-native tool calls, natural language billing queries
CLI (dtab) Terminal workflows, scripting, local development
REST API Backend integrations, webhooks, automation pipelines

All three use the same underlying data and the same API token authentication.