aitododocs Coming soonAutonomous delivery

tkt project, token, login, logout

Markdown

The 13 commands of tkt project, tkt token, tkt login, tkt logout and tkt ai, generated from the running code.

Referenceabout 3 min
On this page
[L]local[R]read[W]write[A]admin write· the grey tag is the REST counterpart
Every option is described by tkt <command> --help. The full machine-readable form: /openapi.json and tkt meta --json.

tkt project

2 commands
tkt project delete DELETE /v1/projects/{project_id}[L] local

Delete the project on the server (admin): its tokens, LLM usage and caps, id counters and claim leases

--confirm--server--project
Guide: Projects and tokens
tkt project register <url>POST /v1/projects[L] local

Register a project on the server; you become its admin

--name--as--force--operator
Guide: Projects and tokens

tkt project llm

4 commands
tkt project llm cache <state>:<on|off>PATCH /v1/projects/{project_id}[L] local

Switch the server's cache of the project's LLM answers (on by default)

--server--project
Guide: Team AI
tkt project llm disable PATCH /v1/projects/{project_id}[L] local

Switch the project's server LLM off; the CLI falls back to a local provider or none

--server--project
Guide: Team AI
tkt project llm enable PATCH /v1/projects/{project_id}[L] local

Make the server the project's default LLM

--server--project
Guide: Team AI
tkt project llm usage GET /v1/projects/{project_id}/llm/usage[L] local

The project's AI budget as a share used (its plan's credits, never tokens), the calls made today and this month (UTC), and the answer cache's hits

--by-token--server--project
Guide: Team AI

tkt token

4 commands
tkt token create <name>POST /v1/projects/{project_id}/tokens[L] local

Create a named token and print it once

--role--llm--expires--server--project
Guide: Projects and tokens
tkt token list GET /v1/projects/{project_id}/tokens[L] local

The project's tokens: name, role, llm, created, expires, last used: never the token

tkt token revoke <name>DELETE /v1/projects/{project_id}/tokens/{name}[L] local

Revoke a token

tkt token update <name>PATCH /v1/projects/{project_id}/tokens/{name}[L] local

Change a token's role, LLM grant or expiry

--role--llm/--no-llm--expires--no-expires--server--project
Guide: Projects and tokens

tkt login

1 commands
tkt login [url]GET /v1/projects/{project_id}/whoami[L] local

Store a token your project admin gave you

tkt logout

1 commands

Forget the stored token of this project (the server keeps it: ask the admin to revoke)

tkt ai

1 commands

Show the AI layers (embedding, LLM): a summary of the provider each uses, the setting that chose it, where the text goes and whether it fails; then this machine, a check of each provider with its fix, and the steps to set up each option

--embed-provider--llm-provider--live--all
Guide: AI layers
Generated from the Click tree, COMMAND_CLASSES and REST_COUNTERPARTSv0.1.298