Skip to content

Commands

Every command of keera, as keera help describes it. This page is generated from keera v0.15.0+1fcb4a8. See The keera CLI for how to install it and which gateway it talks to.

Command What it is for
keera login sign in to a deployment through its identity provider or a passkey
keera logout end this machine's sign-in
keera whoami who the credential in hand belongs to, and which gateway
keera doctor check a deployment end to end and say what is missing
keera org organisations: one per customer, or exactly one
keera project projects inside an organisation
keera user people, and what they may do
keera key API keys, and who they belong to
keera model the models clients name: your organisation's
keera mcp the MCP servers agents call tools on, and their calls
keera guardrail what a scope may do: models, rates, spend, machines
keera limit a scope's rate limits, on their own
keera budget a scope's budgets, on their own
keera filter what a request may contain, before it is forwarded
keera router what clients call: filters, route steps, limits and models in order
keera usage usage and cost, grouped however you ask
keera billing the bill and the credit for the deployment's own provider keys
keera failures the calls that did not deliver, and what the backend said
keera session what agents have been carrying out, one task at a time
keera audit who changed what, newest first
keera connect set an editor up for this gateway
keera agent agents in Keera Agents, which carry out tasks on machines of their own
keera task the work agents were given, and what came of it
keera schedule give an agent the same task on a timetable
keera workspace machines of your own to work in, with a coding agent
keera version the build version this command line reports

keera login

Sign in to a deployment through its identity provider or a passkey.

keera login [flags]

Opens a browser and signs you in, so commands run as you and the audit log names you. --url also makes that gateway the default for every later command.

A command talks to the gateway --url names, else KEERA_CONTROL_URL, else the one you last signed in to, else the hosted one. KEERA_OPERATOR_KEY, the deployment's own credential, wins over a sign-in, but only goes to a gateway --url or KEERA_CONTROL_URL names. keera whoami says which gateway and credential are in use. See The keera CLI.

Flag What it does
--provider <string> which identity provider to sign in through, or passkey, where a deployment offers several
--no-browser do not open a browser; the sign-in URL is printed either way
keera login                # the gateway the other commands talk to
keera login --url https://keera.example.ch
keera login --no-browser   # a terminal with no browser on it

keera logout

End this machine's sign-in.

keera logout [flags]

Deletes this machine's credential and tells the gateway to forget it. With --all, every sign-in this account holds anywhere - every other machine, and the panel in every browser.

Flag What it does
--all end every sign-in this account holds, on every machine and in every browser

keera whoami

Who the credential in hand belongs to, and which gateway.

keera whoami [flags]

Run it when something is refused, to see which credential this shell uses and which deployment it talks to.

Flag What it does
--json print raw JSON

keera doctor

Check a deployment end to end and say what is missing.

keera doctor [flags]

One command for "why does this not work". It reads the deployment's configuration and an organisation's models and says what is missing, with the thing to do about each. It changes nothing, so it is safe against live traffic.

--probe also asks every enabled model to answer. That is the only check that catches the failure which quietly breaks coding agents: a backend returning prose where a tool call was asked for. It costs a generation per model, so it is not the default.

Flag What it does
--probe put a real request through every enabled model; costs a generation each
--json print raw JSON
keera doctor
keera doctor --probe

keera org

Organisations: one per customer, or exactly one.

Command What it does
keera org create <name> create an organisation
keera org list the organisations you can work in
keera org switch [<org>] work in another organisation
keera org set [<org>] rename it, or set the email domain whose sign-ins land in it
keera org delete <org> delete an organisation and everything in it

An organisation's --domain, the part of an address after the @, places a sign-in in it. Once there are two organisations, an address matching no domain is refused, so set it on each, the first one included. See Single sign-on and passkeys.

Every other command acts on one organisation: the one org switch chose. A person can be in several, with a role in each. KEERA_ORG chooses one for a single shell or a pipeline. An organisation is named by its name or its id, wherever a command takes one.

Also accepted: create (add, new), list (ls), switch (use), set (edit, update, rename), delete (rm, remove).

keera org create "Example Bank" --domain example.ch
keera org set "Example Bank" --name "Example Bank AG"
keera org switch "Example Bank"

keera org create

Create an organisation.

keera org create <name>

Flag What it does
--domain <string> email domain whose sign-ins land in this organisation, such as example.ch
--json print raw JSON

keera org list

The organisations you can work in.

keera org list

Flag What it does
--json print raw JSON

keera org switch

Work in another organisation.

keera org switch [<org>]

Takes an id or a name. You keep the role you have there, and choosing an organisation that invited you joins it. The browser keeps its own choice. An operator works in every organisation, so for them it only sets the one commands act on, and --all goes back to every one.

Flag What it does
--all act on every organisation again, rather than on one (operators)

keera org set

Rename it, or set the email domain whose sign-ins land in it.

keera org set [<org>]

Names are unique, ignoring case. Everything refers to an organisation by its id, so a rename changes only what it is called. The old name stays in the audit log. An organisation somebody created by signing up is limited until it buys credit, or until an operator lifts the limit. --lift-limit opens the models and MCP servers inside this deployment's network. Without card payments it also opens the models on the deployment's own provider keys.

Flag What it does
--name <string> the organisation's new name
--domain <string> email domain whose sign-ins land in this organisation, such as example.ch
--no-domain remove the organisation's email domain
--lift-limit open the models and MCP servers inside this deployment's network to an organisation that signed up; without card payments, also the models on the deployment's own provider keys
--json print raw JSON

keera org delete

Delete an organisation and everything in it.

keera org delete <org>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera project

Projects inside an organisation.

Command What it does
keera project create <name> create a project
keera project list every project
keera project set <project> rename a project or change its description
keera project delete <project> delete a project whose keys are all revoked

A project groups keys, usually those of one product or one group of people, so that budgets and reports line up with how the organisation works. The guardrails on a project apply to every key in it. Every key is in a project. An organisation starts with one, called default, which is a project like any other. A key issued without --project goes in the organisation's oldest project. An organisation with no projects cannot have keys.

Also accepted: create (add, new), list (ls), set (edit, update, rename), delete (rm, remove).

keera project create payments --description "The payments platform"
keera project set payments --name payments-platform

keera project create

Create a project.

keera project create <name>

Flag What it does
--description <string> what the project is for
--json print raw JSON

keera project list

Every project.

keera project list

Flag What it does
--json print raw JSON

keera project set

Rename a project or change its description.

keera project set <project>

Names are unique in an organisation. The name is a label: keys, guardrails, spend and every usage row hold the project by its id, so a rename changes only what reports are headed. The old name stays in the audit log.

Flag What it does
--name <string> the project's new name
--description <string> what the project is for; an empty one clears it
--json print raw JSON

keera project delete

Delete a project whose keys are all revoked.

keera project delete <project>

Refused while any key in the project is not revoked, expired ones included: deleting it would take those credentials with it. Revoke them first. A key cannot change project, so issue a new one in another project for anything that still needs one. Revoked keys stay as history, under no project.

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera user

People, and what they may do.

Command What it does
keera user add <email> add a person
keera user list everyone in the organisation who is not disabled
keera user role <email-or-id> <member|admin> change what a person may do; signs them out
keera user disable <email-or-id> turn a person off, for when they leave
keera user enable <email-or-id> let a disabled person sign in again
keera user passkey-link <email-or-id> a new set-up link, to add a passkey

A person is added so that a key can be attributed to them, which is what puts a name on spend and in the audit log. Where a directory group decides the role, user role is refused: the next sign-in would undo it.

Also accepted: add (create, new, invite), list (ls), role (set-role), disable (offboard), passkey-link (passkey).

keera user add

Add a person.

keera user add <email>

They sign in through the identity provider. With --passkey, or on a gateway with no identity provider, they sign in with a passkey instead, and the command prints a set-up link to send them. Passkeys need KEERA_PASSKEYS on the gateway, and an administrator can only add passkey accounts at their organisation's email domain.

Flag What it does
--role <string> member or admin (default member)
--external-id <string> operators only: the person's id at the identity provider, as <provider>:<subject>, when it is known before their first sign-in
--passkey they sign in with a passkey instead of an identity provider; prints their set-up link
--json print raw JSON

keera user list

Everyone in the organisation who is not disabled.

keera user list

Flag What it does
--all include disabled people
--json print raw JSON

keera user role

Change what a person may do; signs them out.

keera user role <email-or-id> <member|admin>

Flag What it does
--json print raw JSON

keera user disable

Turn a person off, for when they leave.

keera user disable <email-or-id>

They are signed out and their keys revoked; leaving the directory alone does not revoke keys. See Users and roles.

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera user enable

Let a disabled person sign in again.

keera user enable <email-or-id>

Their old keys stay revoked, so they start with none. Their passkeys are gone too: send them a new set-up link.

Flag What it does
--json print raw JSON

A new set-up link, to add a passkey.

keera user passkey-link <email-or-id>

For a new device, or after a lost passkey. It works once, for 24 hours, and replaces any earlier link. Someone who has not signed in yet becomes a passkey account. A directory account is refused: leaving the directory has to lock them out.

Flag What it does
--json print raw JSON

keera key

API keys, and who they belong to.

Command What it does
keera key create [<name>] issue an API key
keera key activate <key> give a pending key its secret, and print it once
keera key list the keys that are not revoked
keera key set <key> rename a key
keera key revoke <key> stop a key working
keera key rotate <key> replace a key with an identical one and revoke it

The budget, the rate limit and every line of the audit trail are attributed to the key that made the call. A key also belongs to a person: you, unless --user names someone else or --no-user nobody. That is what makes keera usage --by user say anything, and what puts the key on its holder's own screens.

A key's secret is shown once, when it is activated. Nothing can print it again.

Also accepted: create (add, new), list (ls), set (edit, update, rename), revoke (delete, rm, remove).

keera key create

Issue an API key.

keera key create [<name>]

A name, as the argument or --name, is required. It says what the key is for. The panel, the reports and the audit log show it in place of the key.

A key is activated when it is created, and its secret printed. With --pending it is left for the person it belongs to instead: it has no secret until it is activated, and only whoever activates it sees it.

For a member's --subscription key, add --user; their keera connect claude-code --subscription takes it over. See Claude plans.

Only an administrator issues keys. A member activates, renames, rotates and revokes their own.

Flag What it does
--project <string> project, by name or id; without it, the organisation's oldest project
--user <string> the person this key belongs to, by email or id (default: you)
--no-user a key that belongs to nobody, such as a pipeline's
--pending leave the key for the person it belongs to to activate; no secret is printed now
--name <string> what this key is called; what it is for, in a few words
--expires <string> how long the key lasts, such as 90d, the last day it works, such as 2026-12-31, or never. A new key lasts 90 days unless told otherwise
--subscription a key that reaches only subscription models, for Claude Code signed in to a Claude plan
--json print raw JSON
keera key create --project payments --user ada@example.ch --name "Ada's laptop" --pending
keera key create --no-user --name "CI pipeline"

keera key activate

Give a pending key its secret, and print it once.

keera key activate <key>

For a key issued with --pending. The person it belongs to activates it, and so may an administrator. keera connect claude-code activates one for you when you have one.

Flag What it does
--json print raw JSON
keera key activate "Ada's laptop"

keera key list

The keys that are not revoked.

keera key list

Expired and pending keys are listed too. --all adds the revoked ones.

Flag What it does
--project <string> only the keys of one project, by name or id
--all include revoked keys
--json print raw JSON

keera key set

Rename a key.

keera key set <key>

The name is only a label. The key, its guardrails and its usage stay as they are. The old name stays in the audit log. A member may rename their own keys; an administrator any key in the organisation.

Flag What it does
--name <string> what this key is called; what it is for, in a few words
--json print raw JSON
keera key set "Ada's laptop" --name "Ada's old laptop"

keera key revoke

Stop a key working.

keera key revoke <key>

A name finds the working key with that name in this organisation. Where more than one has it, the ids are listed rather than one of them picked. An id out of keera key list names a key outright, and with --yes needs nothing else.

Revoking is immediate and cannot be undone: whatever holds the key is refused from its next call, and nothing can print it again. To replace a key without an outage, rotate it instead.

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera key rotate

Replace a key with an identical one and revoke it.

keera key rotate <key>

For a key that has leaked, and for the ordinary rotation a policy asks for. A name finds the working key with that name; an id out of keera key list names a key outright. --name and --expires override what it had; everything else, including its project, its guardrails and what it spent, is carried over. A member may rotate their own keys, but not choose --expires: the new key ends when the old one would have.

The old key stops working at once, so it asks for the key's name first; --yes skips that, for a script.

Flag What it does
--name <string> what this key is called; what it is for, in a few words
--expires <string> how long the new key lasts, such as 90d, or the last day it works, such as 2026-12-31 (default: the old key's lifetime)
--yes do not ask for confirmation
--json print raw JSON

keera model

The models clients name: your organisation's.

Command What it does
keera model list the models you can use
keera model add <alias> add a model
keera model set <alias> change an existing model
keera model enable <alias> serve this model
keera model disable <alias> stop serving it, keeping its declaration
keera model check <alias> probe the live backend end to end
keera model delete <alias> remove a model
keera model apply <file> add or update every model a template file declares
keera model validate <file> validate a template file without a server
keera model catalogue the model catalogue: hosted providers and the models they offer

Clients name an alias like keera-speed, never a backend model id and never an inference URL. That is what lets the model behind an alias be swapped without any developer changing anything.

Models belong to an organisation, and only it can call them. Its administrators add, change and remove them.

A new organisation starts with a copy of each model in the template file (KEERA_MODELS_FILE). The copies are its own, to change or remove like any other. keera model apply adds the models of a file to an organisation that already exists.

--description says what a model is for. Clients see it, and a router's instruction step reads it to choose between models.

--capabilities says what a chat model can do beyond text: tools, if it calls tools, as coding agents need, vision, if it reads images, and reasoning, if it takes a reasoning effort. A gate on a model that reads images is shown them too, and Keera Chat offers an effort only for a model that takes one. keera model check tests tool calls. See Models.

Also accepted: list (ls), add (create, new), set (edit, update), check (probe, test), delete (rm, remove), validate (lint).

keera model list

The models you can use.

keera model list

Flag What it does
--json print raw JSON

keera model add

Add a model.

keera model add <alias>

--subscription makes each caller's own Claude subscription pay. The gateway then forwards the caller's Claude sign-in and stores no API key, and only Claude Code signed in to a Claude plan can use the model. See Claude plans.

Flag What it does
--provider <string> hosted provider filling in the endpoint, context window, prices, display name, description, release date and location
--backend <value> an OpenAI-compatible base URL; repeat it for several
--product-id <string> for a provider that serves each customer at their own address, the id its endpoint carries - for infomaniak, your AI Service's product id
--backend-model <string> the name the inference plane serves, which for vLLM is --served-model-name
--kind <string> chat, completion, embedding, rerank, transcription or decision (default chat)
--display-name <string> the model's name for people, such as "Claude Haiku 5.5" (a --provider model starts with that provider's own)
--description <string> what this model is for, in a sentence; clients see it and routers decide on it (a --provider model starts with that provider's own)
--max-context-tokens <int> context window: advertised to clients, and a request that cannot fit is refused
--release-date <string> the day the model came out, as YYYY-MM-DD (a --provider model starts with that provider's own)
--location <string> where the model runs, such as ch, usa or onprem (default: the provider's; without one, onprem for a backend inside your network)
--capabilities <string> what a chat model can do beyond text, comma-separated: tools, for one that calls tools, vision, for one that reads images, and reasoning, for one that takes a reasoning effort (a --provider model starts with that provider's own)
--price-in <float> input price per million tokens, in CHF, of a --provider model (a self-hosted one costs the deployment's gateway fee)
--price-out <float> output price per million tokens
--price-cached <float> price per million input tokens the provider served from its own prompt cache (default: the --provider's rate, else the input price)
--price-cache-write <float> price per million input tokens the provider wrote to its own prompt cache (default: the --provider's rate, else the input price)
--price-audio <float> price per minute of audio, in CHF, of a --provider transcription model sold by the minute
--api-key <string> the provider key the gateway sends to the backend, stored encrypted; @path reads a file and @- reads stdin
--subscription each caller's own Claude subscription pays; needs --provider anthropic, and takes no API key (see https://docs.keera.ch/operate/claude-plans/)
--disabled add the model without serving it yet
--json print raw JSON
keera model add keera-speed --backend http://vllm:8000/v1 \
    --backend-model Qwen/Qwen2.5-Coder-7B-Instruct --max-context-tokens 32768
keera model add keera-swiss --provider infomaniak --product-id 100234 \
    --backend-model swiss-ai/Apertus-v1.5-70B --api-key @-
keera model add claude-opus --provider anthropic \
    --backend-model claude-opus-5-5 --subscription

keera model set

Change an existing model.

keera model set <alias>

Flag What it does
--provider <string> hosted provider filling in the endpoint, context window, prices, display name, description, release date and location
--backend <value> an OpenAI-compatible base URL; repeat it for several
--product-id <string> for a provider that serves each customer at their own address, the id its endpoint carries - for infomaniak, your AI Service's product id
--backend-model <string> the name the inference plane serves, which for vLLM is --served-model-name
--kind <string> chat, completion, embedding, rerank, transcription or decision
--display-name <string> the model's name for people; an empty one clears it, or goes back to the provider's
--description <string> what this model is for, in a sentence; an empty one clears it
--max-context-tokens <int> context window: advertised to clients, and a request that cannot fit is refused
--release-date <string> the day the model came out, as YYYY-MM-DD
--location <string> where the model runs, such as ch, usa or onprem
--capabilities <string> what a chat model can do beyond text, comma-separated: tools, for one that calls tools, vision, for one that reads images, and reasoning, for one that takes a reasoning effort (a --provider model starts with that provider's own)
--price-in <float> input price per million tokens, in CHF, of a --provider model (a self-hosted one costs the deployment's gateway fee)
--price-out <float> output price per million tokens
--price-cached <float> price per million input tokens the provider served from its own prompt cache (default: the --provider's rate, else the input price)
--price-cache-write <float> price per million input tokens the provider wrote to its own prompt cache (default: the --provider's rate, else the input price)
--price-audio <float> price per minute of audio, in CHF, of a --provider transcription model sold by the minute
--api-key <string> the provider key the gateway sends to the backend, stored encrypted; @path reads a file and @- reads stdin
--no-api-key remove the stored provider key
--subscription each caller's own Claude subscription pays; needs --provider anthropic, and takes no API key (see https://docs.keera.ch/operate/claude-plans/)
--no-subscription the organisation pays again; give --api-key too, unless the deployment holds the provider's key
--json print raw JSON

keera model enable

Serve this model.

keera model enable <alias>

Flag What it does
--json print raw JSON

keera model disable

Stop serving it, keeping its declaration.

keera model disable <alias>

Flag What it does
--json print raw JSON

keera model check

Probe the live backend end to end.

keera model check <alias>

The test for the failure that quietly breaks coding agents: a backend answering 200 with prose in content where a tool call was asked for, which is what a vLLM parser that does not match its model produces.

Flag What it does
--json print raw JSON

keera model delete

Remove a model.

keera model delete <alias>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera model apply

Add or update every model a template file declares.

keera model apply <file>

Flag What it does
--json print raw JSON

keera model validate

Validate a template file without a server.

keera model validate <file>

Flag What it does
--json print raw JSON

keera model catalogue

The model catalogue: hosted providers and the models they offer.

keera model catalogue

Flag What it does
--json print raw JSON

keera mcp

The MCP servers agents call tools on, and their calls.

Command What it does
keera mcp list the MCP servers
keera mcp add <alias> add an MCP server
keera mcp set <alias> change an existing server
keera mcp enable <alias> serve this server
keera mcp disable <alias> stop serving it, keeping its declaration
keera mcp delete <alias> remove a server
keera mcp calls the tool-call log: which tool, what came of it, how much went each way
keera mcp connect <alias> how to point Claude Code, Codex and others at a server

The gateway stands in front of MCP servers as it does in front of models. A client reaches one at <gateway>/api/mcp/<alias> with its Keera key; the gateway holds the server's own credential, shows the client only the tools its guardrail allows, runs its filters over what a call sends, and records every call without its content.

Which tools a scope may call is a guardrail: keera guardrail set project payments --tools github/search_code,jira. A server's alias allows all its tools; alias/tool allows one.

A server belongs to one organisation, and only its keys reach it. Its administrators add, change and remove it.

Also accepted: list (ls), add (create, new), set (edit, update), delete (rm, remove).

keera mcp list

The MCP servers.

keera mcp list

Flag What it does
--json print raw JSON

keera mcp add

Add an MCP server.

keera mcp add <alias>

Flag What it does
--endpoint <string> the server's Streamable HTTP endpoint (required)
--description <string> what the server is for, in a sentence
--auth-header <string> header the credential goes in, as it is; empty sends it as a bearer token in Authorization
--api-key <string> credential to store encrypted; @path reads a file and @- reads stdin
--disabled add the server without serving it yet
--json print raw JSON
keera mcp add github --endpoint https://api.githubcopilot.com/mcp/ \
    --description "Issues and pull requests" --api-key @-

keera mcp set

Change an existing server.

keera mcp set <alias>

Flag What it does
--endpoint <string> the server's Streamable HTTP endpoint
--description <string> what the server is for, in a sentence; an empty one clears it
--auth-header <string> header the credential goes in, as it is; empty sends it as a bearer token in Authorization
--api-key <string> credential to store encrypted; @path reads a file and @- reads stdin
--no-api-key remove the stored credential
--json print raw JSON

keera mcp enable

Serve this server.

keera mcp enable <alias>

Flag What it does
--json print raw JSON

keera mcp disable

Stop serving it, keeping its declaration.

keera mcp disable <alias>

Flag What it does
--json print raw JSON

keera mcp delete

Remove a server.

keera mcp delete <alias>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera mcp calls

The tool-call log: which tool, what came of it, how much went each way.

keera mcp calls

For administrators. A member sees the tool calls of their own sessions in keera session show.

Flag What it does
--server <string> restrict to one MCP server
--tool <string> restrict to one tool
--project <string> restrict to one project, by name or id
--key <string> restrict to one key, by name or id
--user <string> restrict to one person, by email or id
--since <duration> how far back to look (default 7d)
--limit <int> how many to print (default 50)
--summary add up the calls of each tool instead
--json print raw JSON
keera mcp calls --since 1h
keera mcp calls --summary --since 7d

keera mcp connect

How to point Claude Code, Codex and others at a server.

keera mcp connect <alias>

Prints the lines each client needs. Codex and an mcp.json read the key from KEERA_API_KEY when they start. The Claude Code line copies the key into Claude Code's settings, because the shell expands it.

keera mcp connect github

keera guardrail

What a scope may do: models, rates, spend, machines.

Command What it does
keera guardrail show <scope> [<id>] what this one scope sets; scope is org, project or key
keera guardrail effective <scope> [<id>] what a request actually meets, and which level decided each part
keera guardrail set <scope> [<id>] change what a scope may do

A guardrail is what one scope may do: which models it may reach, how fast, how much it may spend, what it passes through on the way and how much machine it may hold.

They nest: an organisation's is the ceiling a project's fits inside, and a project's is the ceiling a key's fits inside. So a scope that sets nothing is not unlimited - it is whatever holds it. guardrail effective says which level each number came from, and is the thing to read before changing one.

keera limit and keera budget set one part of a guardrail each. A 0 clears that part on this scope, so the level above decides it again. guardrail set clears a list or the prompt with its --no- flag.

For an organisation the name or id may be left out: it is then the one you are in. A project or key named by its name is looked up in that organisation too.

Also accepted: show (get), set (edit, update).

keera guardrail show

What this one scope sets; scope is org, project or key.

keera guardrail show <scope> [<id>]

Flag What it does
--json print raw JSON

keera guardrail effective

What a request actually meets, and which level decided each part.

keera guardrail effective <scope> [<id>]

The chain collapsed the way the gateway collapses it, with the level that decided each value named beside it.

Allow-lists intersect and ceilings take the minimum. Rate limits and budgets are not merged: each level is checked on its own. System prompts and filters add up, outermost first.

Flag What it does
--json print raw JSON
keera guardrail effective key "Ada's laptop"

keera guardrail set

Change what a scope may do.

keera guardrail set <scope> [<id>]

--locations allows models by where they run instead of by name, such as ch for Switzerland, eu for the European Union or onprem for models the deployment serves itself. It also holds for every model a router may reach and for the models of the filters the scope runs. keera model list shows each model's location.

Flag What it does
--models <string> comma-separated models this scope may use
--no-models stop this scope limiting the models; an outer level still does
--locations <string> comma-separated places this scope's models may run, such as ch,onprem
--no-locations stop this scope limiting where models run; an outer level still does
--requests <int> requests per --per (0 clears it)
--tokens <int> tokens per --per (0 clears it)
--per <string> which rate limit to set, by what it counts over: minute, day or month (default minute)
--budget <float> budget per --period, in CHF (0 clears it)
--period <string> which budget to set, by when it resets: day or month (default month)
--system-prompt <string> standing instruction sent ahead of every chat request; @path reads a file
--no-system-prompt remove this scope's system prompt
--filters <string> comma-separated filters every request through this scope passes through
--no-filters stop this scope applying any filter of its own
--tools <string> comma-separated MCP tools this scope may call: a server, or server/tool
--no-tools stop this scope limiting the tools; an outer level still does
--json print raw JSON
keera guardrail set project payments --models keera-speed --requests 120 \
    --budget 500 --period month
keera guardrail set project payments --locations ch,onprem
keera guardrail set org --locations ch,eu,onprem

keera limit

A scope's rate limits, on their own.

keera limit <scope> [<id>] [flags]

The rate-limiting part of guardrail set, and nothing else. Same object, same scopes, same nesting - fewer flags to read.

A scope may have one rate limit per minute, per day and per month. --per says which one the flags set, and is minute when left out; the others stay. A minute refills as it goes; a day or a month starts again at midnight UTC or on the 1st.

With no flags it prints every rate limit above the scope, and which level set it.

Flag What it does
--requests <int> requests per --per (0 clears it)
--tokens <int> tokens per --per (0 clears it)
--per <string> which rate limit to set, by what it counts over: minute, day or month (default minute)
--json print raw JSON
keera limit project payments --requests 120
keera limit key "Ada's laptop" --tokens 2000000 --per day
keera limit key "Ada's laptop" --tokens 0 --per day
keera limit key "Ada's laptop"

keera budget

A scope's budgets, on their own.

keera budget <scope> [<id>] [flags]

The spending part of guardrail set, and nothing else. Spend past a budget is refused with 402, not 429: a client reading it as "slow down" would retry against a limit that only moves when the period rolls over.

A scope may have one budget per day and one per month. --period says which one --budget sets, and is month when left out; the other stays.

Budgets do not merge. An organisation's and a project's are two limits, and both have to hold. With no flags this prints every budget above the scope.

Flag What it does
--budget <float> budget per --period, in CHF (0 clears it)
--period <string> which budget to set, by when it resets: day or month (default month)
--json print raw JSON
keera budget project payments --budget 500
keera budget project payments --budget 30 --period day
keera budget org

keera filter

What a request may contain, before it is forwarded.

Command What it does
keera filter list this organisation's filters
keera filter add <alias> add a filter
keera filter set <alias> change an existing filter
keera filter check <alias> run it over a sample and show what it did
keera filter try <alias> <prompt>... send your own prompts through it and see why it decided
keera filter report <alias> what it has done to real traffic
keera filter delete <alias> remove a filter

A filter reads each request a guardrail applies it to, before it is forwarded. --mode rewrite (the default) uses a small model to take data out, and --mode gate one to refuse the request; --mode pattern applies --rules in the gateway and costs nothing. See Filters.

Also accepted: list (ls), add (create, new), set (edit, update), check (probe, test), report (stats), delete (rm, remove).

keera filter list

This organisation's filters.

keera filter list

Flag What it does
--json print raw JSON

keera filter add

Add a filter.

keera filter add <alias>

A pattern filter's --rules are one rule per line: an expression, =>, then what each match becomes - or REFUSE: why to drop the request. @path reads them from a file.

(?i)\bsk-[a-z0-9]{20,}\b                  => [CREDENTIAL]
\b[A-Z]{2}\d{2}(?:[ ]?[A-Z0-9]{4}){2,7}\b => [IBAN]
(?i)\bexport all customers\b              => REFUSE: that moves the customer list out

A new filter enforces. With --shadow it starts in shadow instead: it runs and enforces nothing, the request is forwarded as it was sent, and report says what it would have done. That is how an instruction is tuned against a week of an organisation's own traffic rather than against three sample segments. set --no-shadow turns it on; the answers do not change, only whether they are acted on.

Flag What it does
--mode <string> rewrite (a model edits the request and lets it go), gate (a model judges only whether it may go), or pattern (a list of rules is applied, with no model)
--model <string> the model the filter runs on; a gate may run on a decision model
--prompt <string> the instruction its model is given; @path reads a file
--rules <string> a pattern filter's rules, one per line: an expression, =>, then what each match becomes - or REFUSE: why to drop the request. @path reads a file
--description <string> what this filter is for, for whoever reads the list
--shadow start in shadow: run the filter and enforce nothing until set --no-shadow; what it would have done is recorded
--json print raw JSON
keera filter add redact-keys --mode pattern --rules @redact.rules
keera filter add no-client-data --mode gate --model keera-speed \
    --prompt 'Refuse anything naming a client.'

keera filter set

Change an existing filter.

keera filter set <alias>

Flag What it does
--mode <string> rewrite (a model edits the request and lets it go), gate (a model judges only whether it may go), or pattern (a list of rules is applied, with no model)
--model <string> the model the filter runs on; a gate may run on a decision model
--prompt <string> the instruction its model is given; @path reads a file
--rules <string> a pattern filter's rules, one per line: an expression, =>, then what each match becomes - or REFUSE: why to drop the request. @path reads a file
--description <string> what this filter is for, for whoever reads the list; an empty one clears it
--shadow run the filter and enforce nothing; what it would have done is recorded
--no-shadow act on what the filter answers
--json print raw JSON

keera filter check

Run it over a sample and show what it did.

keera filter check <alias>

Flag What it does
--json print raw JSON

keera filter try

Send your own prompts through it and see why it decided.

keera filter try <alias> <prompt>...

Each prompt is sent as a request of its own. For each, it shows what the filter would do, how sure a gate was, the whole prompt its model was sent, and what it thought and answered. A model that shows no reasoning is asked why afterwards, which costs one more generation. @path reads a prompt from a file, @- from stdin. Nothing is stored. See Filters.

Flag What it does
--json print raw JSON
keera filter try no-client-data 'Summarise the Meier account' 'Rename tmp2'
keera filter try redact-keys @stacktrace.txt

keera filter report

What it has done to real traffic.

keera filter report <alias>

Flag What it does
--since <duration> how far back to look (default 7d)
--json print raw JSON

keera filter delete

Remove a filter.

keera filter delete <alias>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera router

What clients call: filters, route steps, limits and models in order.

Command What it does
keera router list this organisation's routers
keera router show <alias> one router, drawn as a tree
keera router add <alias> add a router
keera router set <alias> change the steps or names of an existing router
keera router check <alias> put sample prompts through its route steps and show where each went
keera router try <alias> <prompt>... send your own prompts through its route steps and see why each went where it did
keera router report <alias> how much went through it, and which models answered
keera router delete <alias> remove a router

A router is a tree of steps a request goes through when a client names it: filters, route steps, rate limits, budgets and system prompts, each branch ending at a model. A route step picks the model, by instruction (a small model reads the request), size, header, fallback, latency or least-busy, and branches by the model it chose. A limit branches by whether the request is within it. The steps are written as JSON; the simplest router is one route step, which the route flags write for you. The key's guardrails still apply around it. See Routers.

Also accepted: list (ls), show (get), add (create, new), set (edit, update), check (probe, test), report (stats), delete (rm, remove).

keera router list

This organisation's routers.

keera router list

Flag What it does
--json print raw JSON

keera router show

One router, drawn as a tree.

keera router show <alias>

--json prints it in the shape add --file and set --file read.

Flag What it does
--json print raw JSON

keera router add

Add a router.

keera router add <alias>

--file holds the first step, or a whole router with start. A step without an id gets one from its kind. A limit counts under its id, so give each limit an id of its own to keep its counts when the router changes. Without --file, the route flags make a router of one route step. With --fallback a request it cannot place goes to a named destination anyway; with --no-fallback it is refused.

Flag What it does
--file <string> a JSON file with the steps: the first step, or a whole router with start; - reads stdin
--display-name <string> the router's name for people; clients still name the alias
--description <string> what this router is for, for whoever reads the list
--step <string> the id of the route step to change; needed only when there is more than one
--mode <string> what the route step chooses by: instruction reads the request with a model; size places it by how much text is in it; header by a header the client sends; fallback, latency and least-busy try the destinations until one answers, in the order written, fastest first, or emptiest first (default: instruction)
--model <string> the model that makes the decision - a fast local one, or a decision model
--destinations <string> comma-separated models the route step may choose between; on a fallback step, in the order to try them, on a latency or least-busy step, the order to break a tie in, and on a size step, each with its ceiling - keera-speed:4k,big
--prompt <string> the instruction the deciding model is given; @path reads a file
--fallback <string> where a request goes when the decision cannot be made, or the header names no destination; must be one of the destinations
--no-fallback refuse a request the route step cannot place, rather than sending it to a fallback
--header <string> the request header a header step chooses by, such as X-Keera-Route
--values <string> which value of the header sends a request where - cheap=keera-speed,hard=keera-frontier; without --destinations, these models and the fallback are the destinations
--json print raw JSON
keera router add auto --model keera-decider \
    --destinations keera-speed,keera-frontier --fallback keera-speed \
    --prompt @route.txt --display-name Auto
keera router add ha --mode fallback --destinations keera-local,hosted-frontier
keera router add bysize --mode size --destinations keera-speed:4k,keera-frontier
keera router add byapp --mode header --header X-Keera-Route \
    --values cheap=keera-speed,hard=keera-frontier --fallback keera-speed
keera router add guarded --file guarded.json
keera router show guarded --json > guarded.json   # edit, then 'set'

keera router set

Change the steps or names of an existing router.

keera router set <alias>

The route flags change one route step and keep the rest of the tree. --step says which, when the router has more than one.

Flag What it does
--file <string> a JSON file with the new steps; without it the steps are kept
--display-name <string> the router's name for people; an empty one clears it
--description <string> what this router is for; an empty one clears it
--step <string> the id of the route step to change; needed only when there is more than one
--mode <string> what the route step chooses by: instruction reads the request with a model; size places it by how much text is in it; header by a header the client sends; fallback, latency and least-busy try the destinations until one answers, in the order written, fastest first, or emptiest first (default: instruction)
--model <string> the model that makes the decision - a fast local one, or a decision model
--destinations <string> comma-separated models the route step may choose between; on a fallback step, in the order to try them, on a latency or least-busy step, the order to break a tie in, and on a size step, each with its ceiling - keera-speed:4k,big
--prompt <string> the instruction the deciding model is given; @path reads a file
--fallback <string> where a request goes when the decision cannot be made, or the header names no destination; must be one of the destinations
--no-fallback refuse a request the route step cannot place, rather than sending it to a fallback
--header <string> the request header a header step chooses by, such as X-Keera-Route
--values <string> which value of the header sends a request where - cheap=keera-speed,hard=keera-frontier; without --destinations, these models and the fallback are the destinations
--json print raw JSON
keera router set guarded --file guarded.json
keera router set auto --destinations keera-speed,keera-frontier,keera-large

keera router check

Put sample prompts through its route steps and show where each went.

keera router check <alias>

On a route step that reads nothing, it asks each destination in turn whether it is there and in what order it would be tried.

Flag What it does
--step <string> check only the route step with this id
--json print raw JSON

keera router try

Send your own prompts through its route steps and see why each went where it did.

keera router try <alias> <prompt>...

Only instruction steps read a prompt, so only they are tried. For each prompt, it shows the destination chosen, every destination's share, and the whole prompt the deciding model was sent, and what it thought and answered. A model that shows no reasoning is asked why afterwards, which costs one more generation. @path reads a prompt from a file, @- from stdin. Nothing is stored. See Routers.

Flag What it does
--step <string> try only the route step with this id
--json print raw JSON
keera router try auto 'rename tmp2 to total' 'plan an online migration'

keera router report

How much went through it, and which models answered.

keera router report <alias>

Flag What it does
--since <duration> how far back to look (default 7d)
--json print raw JSON

keera router delete

Remove a router.

keera router delete <alias>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera usage

Usage and cost, grouped however you ask.

keera usage [flags]

Flag What it does
--by <string> group by: model, client, project, key, user, day or org (default project)
--model <string> restrict to one model
--project <string> restrict to one project, by name or id
--key <string> restrict to one key, by name or id
--user <string> restrict to one person, by email or id
--since <duration> how far back to look (default 30d)
--json print raw JSON
keera usage --by model
keera usage --by user --since 7d
keera usage --by key --project payments

keera billing

The bill and the credit for the deployment's own provider keys.

Command What it does
keera billing report one month's bill
keera billing credit the balance, the saved card, the automatic top-up and the latest payments
keera billing topup pay for credit: prints the payment page to open
keera billing auto-topup charge the saved card when the balance runs low
keera billing forget-card remove the saved card, which stops the automatic top-up
keera billing payments the payments, newest first
keera billing receipt <payment> save the receipt of a paid payment, as a PDF
keera billing grant add credit without a payment, or take some away (operators)
keera billing charges the recurring charges, the first due first
keera billing charge charge an organisation every month or year (operators)
keera billing end-charge <charge> stop a recurring charge (operators)
keera billing pay-charge <charge> pay a recurring charge now and save the card: prints the payment page to open
keera billing invoiced let an organisation use the keys without credit (operators)

Calls to models on a provider key the deployment holds are billed at the provider's list price. On a deployment that takes payments, organisations pay for them in advance, in CHF, by card through PostFinance Checkout. Without credit, such models are refused; the organisation's own models still work. See Billing.

Also accepted: report (stats, list, ls), credit (balance, account), topup (pay), forget-card (remove-card).

keera billing report

One month's bill.

keera billing report

Amounts are in CHF. Keera Agents' machines, when it bills here, are rows of their own after the models, with their quantity. keera billing on its own is this.

Flag What it does
--month <string> the month to bill, as YYYY-MM (default: this month)
--json print raw JSON
keera billing
keera billing --month 2026-09 --json

keera billing credit

The balance, the saved card, the automatic top-up and the latest payments.

keera billing credit

Flag What it does
--json print raw JSON

keera billing topup

Pay for credit: prints the payment page to open.

keera billing topup

VAT, if the deployment charges it, and a transaction fee are added on top. The fee is not credited. The credit is added once PostFinance says the payment went through. --save-card keeps the card for automatic top-ups, and replaces a card saved before.

Flag What it does
--amount <float> an amount in CHF, such as 100 (required)
--save-card keep the card for automatic top-ups and the next payment
--json print raw JSON
keera billing topup --amount 100 --save-card

keera billing auto-topup

Charge the saved card when the balance runs low.

keera billing auto-topup

When a charge fails, no other is tried until the setting is saved again or someone pays for credit. A grant does not count.

Flag What it does
--below <float> the balance in CHF that starts an automatic top-up
--amount <float> an amount in CHF, such as 100
--off turn the automatic top-up off
--json print raw JSON
keera billing auto-topup --below 50 --amount 200
keera billing auto-topup --off

keera billing forget-card

Remove the saved card, which stops the automatic top-up.

keera billing forget-card

The card is removed here and at PostFinance. keera billing topup --save-card saves a new one. An organisation with recurring charges keeps its card.

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera billing payments

The payments, newest first.

keera billing payments

--before goes back further: it prints the payments older than the one given. A full page ends with the command for the next one.

Flag What it does
--limit <int> how many to print, up to 500 (default 50)
--before <string> print the payments older than this one, by its id
--json print raw JSON
keera billing payments --limit 100
keera billing payments --before pay_06c1k2rt8g3m4n5p6q7r8s9t0v

keera billing receipt

Save the receipt of a paid payment, as a PDF.

keera billing receipt <payment>

The receipt is the invoice PostFinance Checkout makes for the payment. keera billing payments lists the ids. A grant has no receipt.

Flag What it does
--output <string> the file to save it to, or - for standard output (default: keera-receipt-<date>-<payment>.pdf)
keera billing receipt pay_06c1k2rt8g3m4n5p6q7r8s9t0v
keera billing receipt pay_06c1k2rt8g3m4n5p6q7r8s9t0v --output september.pdf

keera billing grant

Add credit without a payment, or take some away (operators).

keera billing grant

For a trial, a refund, or money that came by bank transfer. A negative --amount takes credit away. --note is required: it says why, and is shown to the organisation.

Flag What it does
--amount <float> an amount in CHF, such as 100 (required)
--note <string> why, shown in the organisation's payments (required)
--org <string> organisation, by name or id (required)
--json print raw JSON
keera billing grant --org "Example Bank" --amount 50 --note "trial"

keera billing charges

The recurring charges, the first due first.

keera billing charges

A recurring charge is a fee an operator charges every month or year, such as for a dedicated model. Each period is charged to the saved card when it starts. While one is due that no saved card can pay, every call is refused. See Billing.

Flag What it does
--json print raw JSON

keera billing charge

Charge an organisation every month or year (operators).

keera billing charge

VAT and a transaction fee are added on top, and nothing is credited. Without a saved card, the organisation's calls are refused from the first day until an administrator pays. A later --start gives it time to.

Flag What it does
--org <string> organisation, by name or id (required)
--name <string> what the charge pays for, shown on the payment page and the receipt (required)
--amount <float> the price of each period in CHF, without VAT, such as 500 (required)
--every <string> month or year (required)
--start <string> the day the first period starts, as YYYY-MM-DD (default: today)
--json print raw JSON
keera billing charge --org "Example Bank" --name "Dedicated model" --amount 2000 --every month
keera billing charge --org "Example Bank" --name "Support" --amount 12000 --every year --start 2027-01-01

keera billing end-charge

Stop a recurring charge (operators).

keera billing end-charge <charge>

No further period is charged, and one not paid yet is no longer due. Its payments are kept.

Flag What it does
--json print raw JSON

keera billing pay-charge

Pay a recurring charge now and save the card: prints the payment page to open.

keera billing pay-charge <charge>

Pays the first period not paid yet. It is how an organisation without a card, or whose card was declined, saves one. With a card that works, the next period is charged to it when it starts.

Flag What it does
--json print raw JSON
keera billing pay-charge charge_06c1k2rt8g3m4n5p6q7r8s9t0v

keera billing invoiced

Let an organisation use the keys without credit (operators).

keera billing invoiced

For an organisation billed by invoice instead. Its use is still metered.

Flag What it does
--org <string> organisation, by name or id (required)
--off make it pay in advance again
--json print raw JSON
keera billing invoiced --org "Example Bank"
keera billing invoiced --org "Example Bank" --off

keera failures

The calls that did not deliver, and what the backend said.

keera failures [flags]

Each row shows the backend's own message beside the model and the key. The status says a call failed; the message says whose problem it is.

Flag What it does
--kind <string> failed, refused, interrupted or all (default failed)
--model <string> restrict to one model
--project <string> restrict to one project, by name or id
--key <string> restrict to one key, by name or id
--user <string> restrict to one person, by email or id
--status <string> restrict to one status, such as 502, or a class, such as 5xx
--since <duration> how far back to look (default 7d)
--limit <int> how many to print (default 50)
--json print raw JSON

keera session

What agents have been carrying out, one task at a time.

Command What it does
keera session list one row per task, the costliest first
keera session show <request-id> one task from beginning to end, named by any request in it

A session is the requests one coding agent made working through one task. Nobody decides how many requests a task takes, so a cost per request is a number nobody can act on and a cost per task is the one that goes into a budget conversation.

The grouping is computed when the report is read, from a hash of the conversation the gateway records on each request - no prompt is stored - and cut wherever the agent went quiet for longer than KEERA_SESSION_GAP.

Also accepted: list (ls), show (get).

keera session list

One row per task, the costliest first.

keera session list

The first column is the id of the task's first request. keera session show takes it. --user takes an email or an id.

Flag What it does
--sort <string> cost, tokens, requests, duration or recent (default cost)
--unhappy only the sessions with problems
--model <string> restrict to one model
--project <string> restrict to one project, by name or id
--key <string> restrict to one key, by name or id
--user <string> restrict to one person, by email or id
--since <duration> how far back to look (default 7d)
--limit <int> how many to print (default 50)
--json print raw JSON

keera session show

One task from beginning to end, named by any request in it.

keera session show <request-id>

The id is any request in the task: the first column of keera session list or keera failures. keera session <id> is short for it.

Flag What it does
--json print raw JSON

keera audit

Who changed what, newest first.

keera audit [flags]

Every change made in the panel, with this command or through the API, and every sign-in. Administrators read their organisation's; operators every one, or one with --org. --json has each entry's detail whole.

Flag What it does
--action <string> only this action, such as key.revoke
--actor <string> only what this person did, by email
--since <duration> how far back to look (default 30d)
--limit <int> how many to print, up to 5000 (default 50)
--json print raw JSON
keera audit
keera audit --action key.revoke --since 90d
keera audit --actor ada@example.ch --limit 500

keera connect

Set an editor up for this gateway.

keera connect [<client>] [flags]

For Claude Code it does everything: it gives this machine a key of its own and writes it into ~/.claude/settings.json, with the gateway's address and the models the key may use. Running it again replaces the machine's key. A pending key of yours is activated for it; without one, an administrator gets a new key, and a member is told what to ask for. --print shows the settings instead. --subscription sets up Claude Code on a Claude plan; see Claude plans.

For any other client it prints the configuration on stdout and the instructions on stderr. With no client it lists the ones this deployment can configure.

Flag What it does
--key <string> the API key whose models to configure, by name or id (default: your first active key)
--subscription for Claude Code signed in to a Claude plan: a key that reaches only the models that plan pays for
--model <string> for Claude Code, the model it starts with (default: the first one its key may use)
--project <string> for Claude Code, the project this machine's new key belongs to (administrators only)
--print for Claude Code, print the settings instead of giving this machine a key and writing them
--json print raw JSON
keera connect claude-code
keera connect
keera connect opencode --key laptop
keera connect claude-code --subscription

keera agent

Agents in Keera Agents, which carry out tasks on machines of their own.

Command What it does
keera agent list the organisation's agents
keera agent show <agent> one agent, what it is connected to, and its schedules
keera agent create <name> make an agent
keera agent set <agent> change an agent
keera agent ask <agent> <prompt> give an agent a task
keera agent start <agent> start an agent someone stopped
keera agent stop <agent> stop it taking tasks, keeping its files
keera agent restart <agent> give it a new machine, keeping its files
keera agent logs <agent> what its machine printed, such as why it does not start
keera agent cost <agent> what its machine cost this month, and an hour of it running
keera agent take-over <agent> become its owner, as when its owner left (administrators)
keera agent delete <agent> delete an agent, its machine and its schedules

An agent is a model with tools, on a machine of its own in Keera Agents. People give it tasks from a chat, a board, a folder, a schedule or keera agent ask, and it spends on the models through a key of its own. An agent is named by its name or its id. Its owner and administrators change it; --access says who may give it work. Connecting it to chats, folders and services is done in the Keera Agents panel. See Keera Agents.

Also accepted: list (ls), show (get), create (add, new), set (edit, update, rename), ask (give), delete (rm, remove).

keera agent create support --model keera-speed --instructions @support.md
keera agent ask support "What came in overnight?" --wait
keera agent logs support --follow

keera agent list

The organisation's agents.

keera agent list

Flag What it does
--json print raw JSON

keera agent show

One agent, what it is connected to, and its schedules.

keera agent show <agent>

Flag What it does
--json print raw JSON

keera agent create

Make an agent.

keera agent create <name>

Without --tools it has files and memory. shell runs commands on its machine, and web reads pages. Without --access everyone in the organisation may give it work.

Flag What it does
--model <string> the model it works with; keera model list has them (required)
--description <string> what it is for, in a line; empty clears it
--instructions <string> how it should work, such as its role and rules; @file reads a file
--tools <value> its own tools, from shell, files, memory and web; replaces the list
--max-steps <int> the most steps one task may take; 0 is no limit
--access <string> who may give it work: owner, org or people
--people <value> with --access people, the email addresses that may give it work
--budget <float> what it may spend on models a month, in CHF; 0 is no budget of its own
--cpu <string> CPUs for its machine, such as 2 or 500m
--memory <string> memory for its machine, such as 4Gi
--json print raw JSON
keera agent create support --model keera-speed --instructions @support.md
keera agent create reports --model keera-speed --tools files,memory,shell --access owner

keera agent set

Change an agent.

keera agent set <agent>

Only what is given changes. Instructions and the model apply from its next task; a new size restarts its machine, and its files stay.

Flag What it does
--name <string> a new name
--model <string> the model it works with; keera model list has them
--description <string> what it is for, in a line; empty clears it
--instructions <string> how it should work, such as its role and rules; @file reads a file
--tools <value> its own tools, from shell, files, memory and web; replaces the list
--max-steps <int> the most steps one task may take; 0 is no limit
--access <string> who may give it work: owner, org or people
--people <value> with --access people, the email addresses that may give it work
--budget <float> what it may spend on models a month, in CHF; 0 is no budget of its own
--cpu <string> CPUs for its machine, such as 2 or 500m
--memory <string> memory for its machine, such as 4Gi
--json print raw JSON

keera agent ask

Give an agent a task.

keera agent ask <agent> <prompt>

The prompt may be @file, or @- for standard input. Without --wait it prints the task's id and returns; keera task show <id> --follow follows it.

Flag What it does
--wait print the task's steps as it works, and its answer at the end
--json print raw JSON
keera agent ask support "Summarise yesterday's open tickets" --wait
keera agent ask reports @brief.md

keera agent start

Start an agent someone stopped.

keera agent start <agent>

Flag What it does
--json print raw JSON

keera agent stop

Stop it taking tasks, keeping its files.

keera agent stop <agent>

Flag What it does
--json print raw JSON

keera agent restart

Give it a new machine, keeping its files.

keera agent restart <agent>

Flag What it does
--json print raw JSON

keera agent logs

What its machine printed, such as why it does not start.

keera agent logs <agent>

Flag What it does
--follow keep printing what it prints next, until Ctrl-C

keera agent cost

What its machine cost this month, and an hour of it running.

keera agent cost <agent>

Only on a deployment that bills machine time. The models it calls are billed apart, in keera usage and keera billing.

Flag What it does
--json print raw JSON

keera agent take-over

Become its owner, as when its owner left (administrators).

keera agent take-over <agent>

It then spends and acts in your name, with a new key.

Flag What it does
--json print raw JSON

keera agent delete

Delete an agent, its machine and its schedules.

keera agent delete <agent>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera task

The work agents were given, and what came of it.

Command What it does
keera task list the tasks, newest first
keera task show <task> one task: its prompt, its steps and its answer
keera task cancel <task> stop a task that has not ended

A task is one piece of work for an agent: a chat message, a schedule's run, a card, a file or keera agent ask. You see the tasks you asked for and those of the agents you may change; administrators see every one.

Also accepted: list (ls), show (get).

keera task list --agent support --state failed
keera task show task_06c1k2rt8g3m4n5p6q7r8s9t0v --follow

keera task list

The tasks, newest first.

keera task list

Flag What it does
--agent <string> only this agent's, by name or id
--state <string> only queued, running, succeeded, failed or cancelled ones
--source <string> only those from chat, schedule, board, file or manual
--limit <int> how many to print, up to 200 (default 50)
--json print raw JSON

keera task show

One task: its prompt, its steps and its answer.

keera task show <task>

Tool calls and their results show by their first line; --json has them whole. --follow prints each step as it comes, until the task ends. Ctrl-C stops following, and the task goes on.

Flag What it does
--follow keep printing its steps until it ends
--json print raw JSON

keera task cancel

Stop a task that has not ended.

keera task cancel <task>

Whoever asked for it can, and whoever may change the agent.

Flag What it does
--json print raw JSON

keera schedule

Give an agent the same task on a timetable.

Command What it does
keera schedule list the schedules and when each runs next
keera schedule create <name> make a schedule
keera schedule set <schedule> change a schedule
keera schedule enable <schedule> run it again on its timetable
keera schedule disable <schedule> stop running it, keeping it
keera schedule run <schedule> give its agent the task now
keera schedule preview <cron> say when an expression runs, in words and the next five times
keera schedule delete <schedule> delete a schedule

A schedule gives its agent a task with the same prompt each time its cron expression comes round, read in its time zone (Europe/Zurich unless one is given). It runs as whoever changed it last. Sending each result to a chat is set in the Keera Agents panel. A schedule is named by its name or its id.

Also accepted: list (ls), create (add, new), set (edit, update, rename), delete (rm, remove).

keera schedule list

The schedules and when each runs next.

keera schedule list

Flag What it does
--agent <string> only this agent's, by name or id
--json print raw JSON

keera schedule create

Make a schedule.

keera schedule create <name>

The expression has five fields: minute, hour, day of the month, month and day of the week. keera schedule preview checks one first.

Flag What it does
--agent <string> the agent that does it, by name or id (required)
--cron <string> when, as a cron expression such as "0 9 * * 1-5" (required)
--timezone <string> the time zone the expression is read in, such as Europe/Zurich
--prompt <string> what the agent should do each time; @file reads a file (required)
--json print raw JSON
keera schedule create standup --agent reports --cron "0 9 * * 1-5" --prompt @standup.md

keera schedule set

Change a schedule.

keera schedule set <schedule>

Flag What it does
--name <string> a new name
--cron <string> when, as a cron expression such as "0 9 * * 1-5"
--timezone <string> the time zone the expression is read in, such as Europe/Zurich
--prompt <string> what the agent should do each time; @file reads a file
--json print raw JSON

keera schedule enable

Run it again on its timetable.

keera schedule enable <schedule>

Flag What it does
--json print raw JSON

keera schedule disable

Stop running it, keeping it.

keera schedule disable <schedule>

Flag What it does
--json print raw JSON

keera schedule run

Give its agent the task now.

keera schedule run <schedule>

It runs as you, and does not move the next run.

Flag What it does
--wait print the task's steps as it works, and its answer at the end
--json print raw JSON

keera schedule preview

Say when an expression runs, in words and the next five times.

keera schedule preview <cron>

Flag What it does
--timezone <string> the time zone the expression is read in, such as Europe/Zurich
--json print raw JSON
keera schedule preview "0 9 * * 1-5"

keera schedule delete

Delete a schedule.

keera schedule delete <schedule>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera workspace

Machines of your own to work in, with a coding agent.

Command What it does
keera workspace list your workspaces
keera workspace create <name> make a workspace
keera workspace show <name> one workspace and its state
keera workspace set <name> rename it, or change its model, experience or size
keera workspace start <name> start a workspace someone stopped
keera workspace stop <name> stop a workspace, keeping its files
keera workspace delete <name> delete a workspace and every file in it
keera workspace open <name> open it in your browser
keera workspace forward <name> <port> [<local-port>] reach a port in the workspace from this machine, as for a dev server
keera workspace logs <name> what its machine printed, such as why it does not start
keera workspace cost <name> what its machine cost this month, and an hour of it running
keera workspace ssh <name> sign in to it over SSH
keera workspace configure-ssh let ssh, scp and editors reach workspaces as <name>.keera
keera workspace ssh-keys the SSH keys that let you into your workspaces
keera workspace remove-ssh-key <key> stop a key letting you in

A workspace is a machine of yours in Keera Agents, with a coding agent that uses the models your key may use and the connectors you give it there. It is pi in a terminal in your browser, or VS Code in your browser with Cline. Nothing reaches it from outside: open, forward and ssh go through Keera Agents with your sign-in, and only you get in. A workspace nobody is connected to is put to sleep, keeping its files, and wakes when you connect again.

Also accepted: list (ls), create (add, new), show (get), set (edit, update, rename), delete (rm, remove).

keera workspace create api --vscode
keera workspace open api
keera workspace forward api 3000
keera workspace configure-ssh && ssh api.keera

keera workspace list

Your workspaces.

keera workspace list

Flag What it does
--all every workspace in the organisation, for an administrator
--json print raw JSON

keera workspace create

Make a workspace.

keera workspace create <name>

Without --terminal or --vscode it asks which. The model is only the one the coding agent starts with.

Flag What it does
--terminal pi, the coding agent, in a terminal in the browser
--vscode VS Code in the browser, with Cline
--model <string> the model the coding agent starts with; any the key may use can be picked later
--cpu <string> CPUs, such as 2 or 500m
--memory <string> memory, such as 4Gi
--disk <string> the workspace's disk, such as 20Gi; fixed once it exists
--json print raw JSON

keera workspace show

One workspace and its state.

keera workspace show <name>

Flag What it does
--json print raw JSON

keera workspace set

Rename it, or change its model, experience or size.

keera workspace set <name>

A new experience or size restarts it; its files stay. The disk keeps the size it was made with.

Flag What it does
--name <string> a new name
--description <string> what it is for; empty clears it
--model <string> the model the coding agent starts with
--terminal pi, the coding agent, in a terminal in the browser
--vscode VS Code in the browser, with Cline
--cpu <string> CPUs, such as 2 or 500m
--memory <string> memory, such as 4Gi
--json print raw JSON
keera workspace set api --vscode
keera workspace set api --cpu 4 --memory 8Gi

keera workspace start

Start a workspace someone stopped.

keera workspace start <name>

Flag What it does
--json print raw JSON

keera workspace stop

Stop a workspace, keeping its files.

keera workspace stop <name>

Flag What it does
--json print raw JSON

keera workspace delete

Delete a workspace and every file in it.

keera workspace delete <name>

Flag What it does
--yes do not ask for confirmation
--json print raw JSON

keera workspace open

Open it in your browser.

keera workspace open <name>

Serves the workspace on this machine's loopback, as kubectl port-forward does, until Ctrl-C.

Flag What it does
--port <int> the port on this machine; 0 picks a free one
--no-browser do not open a browser; the address is printed either way

keera workspace forward

Reach a port in the workspace from this machine, as for a dev server.

keera workspace forward <name> <port> [<local-port>]

Flag What it does
--port <int> the port on this machine; 0 picks a free one

keera workspace logs

What its machine printed, such as why it does not start.

keera workspace logs <name>

Flag What it does
--follow keep printing what it prints next, until Ctrl-C

keera workspace cost

What its machine cost this month, and an hour of it running.

keera workspace cost <name>

Only on a deployment that bills machine time. The models it calls are billed apart, in keera usage and keera billing.

Flag What it does
--json print raw JSON

keera workspace ssh

Sign in to it over SSH.

keera workspace ssh <name>

Makes ~/.ssh/keera_ed25519 if this machine has none, and adds it to your keys.

keera workspace configure-ssh

Let ssh, scp and editors reach workspaces as <name>.keera.

keera workspace configure-ssh

Adds an entry for *.keera at the top of ~/.ssh/config, and adds this machine's key to yours. VS Code's Remote-SSH and JetBrains Gateway then work too.

keera workspace ssh-keys

The SSH keys that let you into your workspaces.

keera workspace ssh-keys

Flag What it does
--json print raw JSON

keera workspace remove-ssh-key

Stop a key letting you in.

keera workspace remove-ssh-key <key>

Takes the key's id, fingerprint or name from keera workspace ssh-keys. keera workspace configure-ssh on that machine adds it again.

Flag What it does
--json print raw JSON

keera version

The build version this command line reports.

keera version