tkt operator, server
The 18 commands of tkt operator and tkt server, generated from the running code.
On this page
tkt <command> --help. The full machine-readable form: /openapi.json and tkt meta --json.tkt operator
9 commandsMint a new admin token for a project (recovery when every admin token is lost); shown once
Mint a one-time registration code (arc_…) for a server that registers by invite (AITODO_REGISTRATION=invite, the default with an operator token)
Revoke an unused invite by its id (from tkt operator invites); its code is refused from then on
Every invite: id, status (open, used, expired, revoked), the fixed project name, created, expires, and the project it created
Delete a project and everything the server keeps for it (tokens, LLM usage and caps, id counters, claim leases), e.g. one whose admin tokens are lost
Put a project on a plan, or back on the default plan with --default; it spends by that plan from its next call
Every project on the server: id, name, created, created by, how it was created (an invite id, open or operator), token counts, last use (never a token), its AI plan and AI use (calls ever, credits this month), and what it takes on the server's disk (its store with the git history, its archives); first the disk's free space
Finish a store move left half-done (moving): the location becomes repo and the server's copy is archived under stores/.archive/ (never deleted)
A tkt store move --to repo that never finished leaves the project's server store frozen (moving)
tkt operator plan
5 commandsMake a plan the default: every project without a plan of its own spends by it, existing projects included
Delete a plan that no project and not the default uses (ERR_PLAN_IN_USE otherwise)
Every plan: its monthly and daily credits, whether it is the default, and how many projects are on it
Create a plan: a name, monthly credits and daily credits (-1 unlimited, 0 no server AI)
Change a plan's monthly or daily credits; every project on it spends by them from its next call
tkt operator price
2 commandsEvery model's price, in credits per 1M input and output tokens
Set a model's price: credits per 1M input tokens and per 1M output tokens (an embedding model: input only, output 0)
tkt server
2 commandsMint a new admin token straight in AITODO_SERVER_DATA (recovery, D8)
Delete a project straight in AITODO_SERVER_DATA, e.g. one whose admin tokens are lost