Claude and code

The command

glyphh: Ada Cloud from a terminal, for you, your scripts and CI, and agents with a shell such as Claude Code.

Install

pipx install glyphh             # or: uv tool install glyphh, pip install glyphh
glyphh --version

It comes with the Python SDK (3.5 or later, Python 3.9+); python -m glyphh runs it too.

Log in with an API key

glyphh login                    # paste the key: checked against Ada, then kept for this machine
glyphh whoami                   # which key, from where, and the organisation's plan

The key is an ordinary API key (glyphh_ak_…) from the platform’s API Keys page, or made by Claude through the connector (create_api_key). It acts in your organisation with the clearance it was made with.

glyphh loginAsks for the key without echoing it, checks it, and keeps it in ~/.glyphh/credentials.json (mode 0600). A key Ada refuses is never kept
--key-stdinReads the key from a pipe instead: op read … | glyphh login --key-stdin
GLYPHH_API_KEYWins over the kept key when set: the way for CI and servers
glyphh logoutForgets the kept key. The key stays live until you revoke it on the API Keys page

From nothing to a decision

glyphh create tickets --spec @spec.json
glyphh import tickets history.csv --mapping '{"Plan": "ticket.what.plan", "Result": "outcome"}'
glyphh decide tickets '{"ticket": {"what": {"plan": "pro", "text": "charged twice"}}}'
glyphh record tickets @case.json --outcome refund        # a confirmed outcome: the next case learns from it
glyphh backtest tickets --candidates '[{"settings": {"word_evidence": 0}}]' --holdout '{"newest": 200}'
glyphh settings tickets --changes '{"word_evidence": 0}' --note "cost 8% less" --backtest <job id>
glyphh activate tickets 1                                 # and back
glyphh export tickets --to tickets.zip

Commands

CommandDoes
login, logout, whoamiThe API key this machine uses
usage, releasesThe plan’s use this month; every Ada version
models, model NAMEThe organisation’s models; one with its version, size, settings and Ada version
create NAME --spec, spec NAME [--set]Make a model from its spec; read it, or a new version of it
delete NAME --confirm NAMEDelete a model and every precedent it holds
record, record-many, grade, forgetOne case; a JSON Lines file of them, 1,000 a request; an outcome later; forget one
import NAME FILE [--mapping]A CSV, JSON Lines, SQLite store or a model’s own export, as a job
decide, query, probabilities, factsAsk: --output, --outputs a,b, --facts, --clearance
learn, calibrate, backtest, settingsLearn; calibrate; score candidates on held-out cases; every lever
versions, activate, upgradeVersions and who made them; roll back; move to another Ada version
export, job ID [--wait]Everything out, to a file; any job

glyphh <command> --help gives every option.

Input and output

  • A JSON argument is the JSON itself, @file for a file’s, or - for stdin’s.
  • Every answer is the API’s own JSON on stdout, so it pipes into jq: glyphh decide tickets @case.json | jq -r .outcome.
  • A refusal is {"error": {"code", "message", …}} on stderr with exit code 1, its code one of the API’s; a usage mistake exits 2.
  • Jobs (import, learn, backtest, settings, spec, upgrade, export) are waited for, with progress on stderr: -q hides it, --no-wait answers the job at once.

With Claude Code

The plugin’s glyphh-cli skill teaches Claude the command, for when the connector’s ada_* tools are not there or a file suits a command better. Claude asks you to run ! glyphh login and paste the key yourself; it never asks for a key in the chat.