Integrations

CLI

Mint keys, read what spend went where, and check a broken integration without opening the console.

cli
npm install -g @ourseams/cli
seams auth login --token sk_acme_…

The four you will actually use

  1. 1

    Mint a key

    Name the end user with your own id; mint creates them if they are new. The secret prints once. Use seams users create only when you want a balance without a key yet.

    cli
    seams keys mint --user alice --bundle pro --cap 50 --label "alice's laptop"
    
    # key          ak_acme_…
    # key prefix   ak_acme_simula
    # last four    9f2c
    # end user id  alice
    # warning      shown once; store it now
  2. 2

    Find out why a call failed

    doctor walks the five misconfigurations behind most support requests and exits non-zero on an error, so it works as a CI gate.

    cli
    seams doctor --table
    
    # status  error
    #
    # LEVEL  CODE                  DETAIL                                   FIX
    # error  model_no_live_source  cheap has no enabled source              connect a provider account
    # warn   supply_unhealthy      anthropic has failed its last 4 probes   seams providers rotate anthropic --key <key>
    # warn   end_user_frozen       dara is frozen and cannot call           seams users unfreeze dara
  3. 3

    Grant credit

    Takes dollars and converts; the ledger stores micro-dollars. One grant reaches one end user or fifty, and every balance moves or none does.

    cli
    seams users grant 25.00 --user alice --user bilal --reason top_up
    
    # recipients       2
    # amount each usd  25.00
    # total usd        50.00
    # reason           top_up
    # end users        alice, bilal

Everything else

CommandWhat it does
seams keys listEvery key, masked to its prefix, with its cap and what it has spent
seams keys revoke <id>Revoked immediately; mint a replacement to rotate
seams usage --since 30dCalls, tokens, provider cost and what it was charged at, by model name
seams margin --since 30dWhat supply cost, what end users were charged, and what was kept
seams bundles listBundles, their price, markup, spend limit and model count
seams providers probe <label>Health-check one provider account now
seams emitters listEvery destination settled usage is delivered to: your webhook, Metronome or Orb
seams emitters test <id>Post one sample there now, before a real call depends on it
seams portal open <external-id>Mint a portal session and open it in a browser
seams portal spending <external-id>One end user's bundle, pools and on-demand

seams auth login writes the token to ~/.seams/config.json. For CI, put the sk_ in an environment variable and read it back with $(seams auth token).

Output is a table for a person and TOON for an agent, set once with seams mode. --json, --toon and --table override it for one command.