Skip to content

overlane billing check

Ask whether a spend is allowed now; exits 6 when a limit or cap refuses it

Updated View as MarkdownOpen in ChatGPTOpen in Claude

Asks the billing service before a review, CI run or hosted inference call: within the allowance, over it and billed (with a notice), or refused (a plan with no overage path, a reached spending cap, a read-only workspace). A refusal exits 6 and names the next command.

Usage

overlane billing check --meter METER [--quantity N] [--cost-micros N] [--project ID] [--agent ID] [--byok]

Flags

Flag Type Required Default Description
--meter one of reviews, ciMinutes, docsCalls, hostedInference yes What is being spent
--quantity string no Units, default 1
--cost-micros string no Provider cost of a hosted inference call, in millionths of a dollar
--project string no The project, for a project cap
--agent string no The agent token, for an agent cap
--byok boolean no The call runs on your own key: no platform charge

Examples

overlane billing check --meter reviews
overlane billing check --meter hostedInference --cost-micros 2000 --agent tok_1

Behavior

  • Effect: read (changes nothing).
  • Needs credentials: yes. Uses the network: yes.
  • Supports --dry-run: no. Accepts --force: no.
  • Machine-readable description: overlane schema billing check.

Result

With --json (the default when stdout is not a terminal) the command prints this JSON Schema’s shape on stdout.

{
  "type": "object",
  "properties": {
    "tenantId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$",
      "description": "tenant identifier"
    },
    "meter": {
      "type": "string",
      "enum": [
        "reviews",
        "ciMinutes",
        "docsCalls",
        "hostedInference"
      ]
    },
    "outcome": {
      "type": "string",
      "enum": [
        "within_allowance",
        "overage",
        "refused",
        "cap_reached",
        "read_only"
      ]
    },
    "allowed": {
      "type": "boolean"
    },
    "chargeMicros": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "message": {
      "type": "string",
      "minLength": 1
    },
    "nextCommand": {
      "type": [
        "string",
        "null"
      ]
    },
    "exitCode": {
      "anyOf": [
        {
          "type": "number",
          "const": 0
        },
        {
          "type": "number",
          "const": 6
        }
      ]
    }
  },
  "required": [
    "tenantId",
    "meter",
    "outcome",
    "allowed",
    "chargeMicros",
    "message",
    "nextCommand",
    "exitCode"
  ],
  "additionalProperties": false
}

See exit codes for the status the process returns.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close

Overlane Agent

Ask about the docs. Answers are quoted from the pages, with links. This panel cannot change anything.

    Questions are answered in your browser from the docs index. Nothing you type here is stored or sent anywhere.