ankra ai
Configure the organisation’s AI provider, credentials, custom OpenAI-compatible endpoints, and the model catalog the chat picker offers. Mutations require the ai.manage permission (organisation admins by default); the provider status and the model listing are available to every member. Your own Anthropic or OpenRouter API keys, for the chats and pull request reviews you start, are under ‘ankra ai keys’; adding them needs no extra permission.ankra ai anthropic
Manage the custom Anthropic API keyankra ai anthropic delete
Remove the custom Anthropic API keyankra ai anthropic set
Store and validate a custom Anthropic API key (must start with sk-ant-).ankra ai autonomy
Read and operate the organisation-wide AI kill switch. Engaging it stops all AI for everyone in the organisation: running sessions and agent runs are cancelled, and chat is refused until it is released. Reach for it during an incident, not to tighten a policy - a narrower stop lives in the auto-remediation policy, which ‘ankra ai remediation policy’ reads.ankra ai autonomy pause
Pause autonomous actions across the organisation. Chat, diagnosis and read-only investigation keep working; what stops is the AI changing anything without a person approving it first. It switches off auto-remediation and pauses every enabled agent, and records exactly what it switched off - so resuming restores that and nothing else, from any terminal or browser, by any administrator. To stop AI entirely during an incident, use “ankra ai autonomy stop-all”.ankra ai autonomy resume
Resume autonomous actions. Only what the pause switched off is restored: an agent somebody disabled deliberately stays disabled.ankra ai autonomy start-all
Let AI run again for the organisationankra ai autonomy status
Show whether AI is stopped for the organisationankra ai autonomy stop-all
Stop all AI for everyone in the organisation. Every running AI session and agent run is cancelled, pending approvals expire, and chat is refused until the switch is released. The reason is shown to administrators alongside the switch.ankra ai board-identity
Manage the organisation’s board agent identity. Agents the platform created - the preloaded team - have no user account of their own, so their headless runs cannot change anything. The board identity gives them one, with its own role, so their work is attributable to the agent rather than to whoever set it up. It cannot sign in and has no token. Without it, a designated board worker is escalated to a human on every ticket instead of working it.ankra ai board-identity provision
Give the board an identity its agents act asankra ai board-identity revoke
Stand the board identity down. The principal itself is kept so its past actions stay attributable; what it loses is every grant above the viewer floor, which makes the board’s agents ineligible again on the next dispatcher pass.ankra ai board-identity status
Show whether the board has an identityankra ai conditions
Read the organisation’s conditions: the recurring problems AI tickets are filed against, each with how often it was observed and how its tickets closed. A condition closed without action three times in a row is chronic.ankra ai conditions get
Show one condition’s evidence timeline: the tickets filed on it, how each closed and on what evidence, the probes, the playbook runs and the decisions people took.ankra ai conditions list
List conditions, most recently observed firstankra ai endpoints
Manage custom OpenAI-compatible endpointsankra ai endpoints create
Add a named OpenAI-API-standard endpoint (OpenRouter, vLLM, LiteLLM, Ollama, …). The server validates and probes the endpoint before saving; the API key is stored server-side and never returned. Pipe the API key on stdin, or run interactively to be prompted for it (the prompt masks the input):--api-key still works but is deprecated: a key on the command line lands in
the shell history and the process list.
ankra ai endpoints delete
Delete an endpoint and its stored key. Catalog models on it are removed too.ankra ai endpoints discover
Query the endpoint’s /models list so you know which model ids to reference.ankra ai endpoints list
List configured OpenAI-compatible endpointsankra ai endpoints update
Update an endpoint’s name, base URL, and optionally rotate its key. Omit--api-key to keep the stored key.
ankra ai handoffs
Read the platform-level conditions Ankra handed to the organisation’s engineering tracker instead of the AI ticket board, and record the tracker’s reference once the issue exists there.ankra ai handoffs acknowledge
Record the engineering tracker’s reference for a handoff once the issue exists there. Needs an organisation admin.ankra ai handoffs list
List engineering handoffsankra ai keys
Add your own Anthropic or OpenRouter API keys to your profile. The chats you send and the reviews of your GitHub and Bitbucket Cloud pull requests then run on your keys, in the order you choose, and your provider bills your account instead of your organisation’s. GitLab reviews, background work, scheduled runs and alert analysis keep running on the organisation’s AI. Your keys are yours alone: they never serve another member’s work, and after you add a key Ankra only ever shows its last four characters. You can keep up to 10 keys. Only API keys are accepted: a Claude Console API key (it starts with sk-ant-) or an OpenRouter key (it starts with sk-or-). Claude subscription tokens (sk-ant-oat…) and Anthropic admin keys are refused, because Anthropic does not allow other services to store them. Ankra tries your keys from the top. A key that runs out of credit is tried again an hour later; a key the provider rejects is not used until ‘ankra ai keys test’ passes. An organisation administrator can turn members’ own keys off for the organisation (‘ankra ai keys policy disable’). Your keys then stay on your profile, but are not in use there. You can also manage your keys in the Ankra portal: Profile, Connected accounts, Your AI keys.ankra ai keys add
Add an Anthropic or OpenRouter API key to your profile. Ankra checks the key with the provider before saving it, so a mistyped or revoked key is refused straight away, and adds it to the end of your order. The key is never a flag: a flag value lands in your shell history and in the process list. Run the command in a terminal and paste the key when asked (the input is hidden), or pipe it in with--key-stdin.
The provider is worked out from the key: a Claude Console API key (it starts
with sk-ant-) is Anthropic and sk-or-… is OpenRouter. --provider is only
needed to check that the key is the kind you meant. A Claude subscription
token (sk-ant-oat…) or an Anthropic admin key is refused before anything is
sent.
Only the key’s masked preview is ever printed.
ankra ai keys list
List the AI keys on your profile in the order your chats and pull request reviews try them, with each key’s status, and say whether your current organisation uses them. A key is active, out of credit (tried again at the time shown), or rejected by its provider (not used until ‘ankra ai keys test’ passes).ankra ai keys order
Set the order your chats and pull request reviews try your keys in. Name the keys you want first, first; the keys you leave out keep their current order after them. So ‘ankra ai keys order work’ moves the key labelled work to the top. <key> is the key’s id or its label, as ‘ankra ai keys list’ shows them.ankra ai keys policy
Show whether this organisation’s work may run on its members’ own AI keys. Members can use their own keys until an administrator turns that off. ‘ankra ai keys policy disable’ turns it off and ‘ankra ai keys policy allow’ turns it back on; both need permission to manage the organisation’s AI. Members keep their keys either way. An organisation that runs AI on its own OpenAI-compatible endpoint never uses members’ keys, whatever this says.ankra ai keys policy allow
Let this organisation’s members run the chats and pull request reviews they start on their own AI keys. Needs permission to manage the organisation’s AI.ankra ai keys policy disable
Stop this organisation’s work running on its members’ own AI keys. Their chats and reviews run on the organisation’s AI instead. Members keep their keys, shown as not in use, until the policy is allowed again. Needs permission to manage the organisation’s AI.ankra ai keys remove
Remove one of your keys. Ankra deletes the stored key, so work you start afterwards no longer runs on it. The key itself stays valid at the provider: revoke it there too if you no longer need it. Asks for confirmation unless--yes is passed.
<key> is the key’s id or its label, as ‘ankra ai keys list’ shows them.
ankra ai keys rename
Change the label shown beside one of your keys. An empty label ("") clears it. A label is at most 100 characters. <key> is the key’s id or its label, as ‘ankra ai keys list’ shows them.ankra ai keys test
Ask the provider about one of your keys and record the answer. A key that works is put back in service, a refused key is marked rejected, and a key with no balance left is marked out of credit for an hour. When the provider cannot be reached, the key is left as it was. The command exits 1 when the key fails the test. <key> is the key’s id or its label, as ‘ankra ai keys list’ shows them.ankra ai lanes
Choose the model each AI function runs on. A lane is one AI function that runs outside chat: deploy analysis, troubleshooting, CI/CD generation, stack README generation and AI code review. A lane with no selection follows its default tier in the model catalog (‘ankra ai models list’), so it moves when the catalog does.ankra ai lanes clear
Return a lane to its default tierankra ai lanes list
List each AI lane with the model it runs onankra ai lanes set
Run a lane on a catalog model or an exact OpenRouter model. <model> is a catalog key from ‘ankra ai models list’ (for example think or expert) or an exact OpenRouter model id (for example z-ai/glm-5.2). Changing a lane requires organisation admin.ankra ai memories
List or clear what the assistant remembers about you. Ankra’s chat stores short facts from your conversations and recalls them into later ones, so it does not have to rediscover your clusters, choices and preferences every time. These commands act on your own memories in the current organisation only; nobody else’s are listed or touched.ankra ai memories clear
Delete every memory the assistant has stored for you in the current organisation. The assistant starts your next conversation with nothing it learned before. Other members’ memories are not affected.ankra ai memories list
List the memories the assistant has stored for you, newest firstankra ai memories profile
Beside its memories, the assistant learns a profile of you from your conversations: how you like to be answered, what you know well, the tools and workflows you prefer. These commands act on your own profile in the current organisation only.ankra ai memories profile get
Show the learned profile and whether learning is onankra ai memories profile reset
Clear the learned profile. Stored memories are not affected (‘ankra ai memories clear’ deletes those). It asks first;--yes skips the question and is
required when there is no terminal to ask on.
ankra ai memories profile set
--learning on|off switches learning. --file replaces the learned profile
with a JSON object (’-’ for stdin) whose members are communication_style,
verbosity, expertise_level (text) and expertise_areas, preferred_tools,
workflows, interests, notes (lists of text); start from ‘ankra ai memories
profile get -o json’ and send its “profile” member back. What you do not pass
keeps its stored value.
ankra ai models
Manage the organisation model catalogankra ai models create
Add a model to the catalog. For an Ankra-managed Claude model pass--model-id (e.g. claude-opus-5). For a
model served by a custom OpenAI-compatible endpoint, also pass --endpoint with
the endpoint id (see ‘ankra ai endpoints list’).
ankra ai models delete
Delete a catalog modelankra ai models list
List the catalog models the chat picker offersankra ai models reset
Revert the catalog to the built-in defaultsankra ai models update
Update a catalog model addressed by its row id or catalog key. Only the flags you pass are changed; the rest keep their current values. Editing a built-in default the first time materialises the catalog.ankra ai openai
Manage the legacy single OpenAI-compatible endpoint configuration. For multiple endpoints and per-model routing prefer ‘ankra ai endpoints’ and ‘ankra ai models’; this command configures the single legacy endpoint the ‘openai_compatible’ provider uses.ankra ai openai delete
Remove the legacy OpenAI-compatible endpointankra ai openai set
Store the legacy OpenAI-compatible endpointankra ai openrouter
Manage the organisation’s OpenRouter API key (bring your own key). Store a key with ‘set’, then activate it with ‘ankra ai provider openrouter’. Removing the key while OpenRouter is the active provider resets the organisation to the Ankra-managed default.ankra ai openrouter remove
Remove the organisation’s OpenRouter API key. When OpenRouter is the active provider the organisation falls back to the Ankra-managed default.ankra ai openrouter set
Store and validate an OpenRouter API key (must start with sk-or-). Pass the key with--api-key, pipe it on stdin, or omit both to be prompted
interactively. The interactive prompt masks the input; the key is never
echoed or logged.
ankra ai playbooks
List the organisation’s AI playbooks and the platform templates it can adopt, approve one for use, or retire one. A playbook is the reviewed procedure the remediation lane runs for one kind of condition. Adopting and retiring need an organisation admin.ankra ai playbooks adopt
Approve a playbook for use: a platform template becomes the organisation’s own approved playbook, and one of its candidate playbooks becomes approved. From then on the remediation lane may run it, so this asks first. A playbook that cannot be adopted answers 409.ankra ai playbooks list
List the organisation’s playbooks and the platform templatesankra ai playbooks retire
Retire one of the organisation’s own playbooks so the remediation lane stops running it. Platform templates cannot be retired, and a playbook that cannot be retired answers 409.ankra ai provider
Set the active AI provider for the organisation.ankra ai remediation
Read the organisation’s AI auto-remediation settings. Auto-remediation is the lane where an alert trigger opens an AI run that may change the platform on its own. Its envelope lives in one policy document: how much the run may do unattended, which tools are exempt from the approval card, and which clusters it is allowed to touch. The policy is read-only from the CLI. Changing it is an organisation-admin action in the portal.ankra ai remediation policy
Show the organisation’s auto-remediation policy. An organisation that never saved a policy is not an error: the platform answers its own defaults, and this command says so rather than presenting them as a decision somebody made. Two lines carry most of the risk. A per-tool override of ‘auto’ means that tool executes with no approval card at all, and a cluster allow list that was never set means every cluster is in scope, including Ankra’s own.ankra ai status
Show the active AI provider and configured credentialsankra ai tasks
Define, hire and control the organisation’s agent tasks: the AI agents that run on a schedule, on an alert or on demand, each with a goal, a tool profile, an autonomy level and a budget. ‘ankra agents’ reads the runs these agents produce; the commands here manage the agents themselves. A task is named by its id or by its exact name. Reading needs ai.use; every change needs ai.manage and an organisation admin.ankra ai tasks create
Create an agent task.--name, --goal and --trigger are required, as flags or
as the name, goal_prompt and trigger members of the -f document; a flag wins
over the document. The tool profile defaults to read_only.
The budget, capabilities and the other members of the definition are set
through -f, which takes the platform’s body as YAML or JSON (- reads stdin).
ankra ai tasks delete
Delete an agent task so it is no longer scheduled. Its past runs stay readable under ‘ankra agents runs’.ankra ai tasks get
Show one agent task. -o json prints its whole definition, the budget and capabilities included.ankra ai tasks list
List the organisation’s agent tasksankra ai tasks pause
Stop scheduling an agent task. A run already in progress finishes its current turn; ‘ankra ai tasks stop’ cancels it as well.ankra ai tasks reapply-template
Bring a hired agent up to its role template’s current envelope: the goal, tools, autonomy and budget the role ships with today. An envelope someone customised is left alone and the platform answers 409 with the reason.--force replaces it with the template’s, and asks first.
ankra ai tasks resume
Re-enable a paused agent task and restore its schedule from its trigger.ankra ai tasks run
Queue an enabled agent task for immediate dispatch. The scheduler picks it up within its poll interval, and does nothing when a run is already live.ankra ai tasks runs
List an agent task’s recent runs, newest first. ‘ankra agents run <run-id>’ shows one in full.ankra ai tasks stop
Pause an agent task and cancel its live run in the same step.ankra ai tasks templates
List the built-in agent roles and hire oneankra ai tasks templates hire
Create an agent task from a built-in role; ‘ankra ai tasks templates list’ names them.--cluster scopes the agent to one cluster. Hiring the Reviewer
also makes it the ticket desk’s reviewer when none is set. A role that is
already hired answers 409.
ankra ai tasks templates list
List the built-in agent roles and whether each is hiredankra ai tasks update
Change an agent task’s definition. Only the members you name change: as flags, or as members of the -f document (YAML or JSON, - reads stdin); a flag wins over the document. A trigger is written whole, so--cron, --timezone and
--alert need --trigger beside them. The cluster an agent is scoped to is set
when it is created or hired and cannot be changed afterwards.