kuiper Docs

Reference

CLI reference

Every kuiper command and subcommand with what it does and the flags it takes.

On this page

Conventions#

Every command prints a table or a short message. Add --json to get the raw JSON response instead.

kuiper units --json

Run kuiper --help, or kuiper <command> --help, for the exact flags of your version.

Global options#

OptionWhat it does
--jsonPrint raw JSON responses.
-p, --project SLUGThe project to act on. Defaults to the project set with kuiper use, or KUIPER_PROJECT.
-e, --environment NAMEThe environment of the project: production, staging… Defaults to the one kuiper use remembered, or KUIPER_ENVIRONMENT, else production. A project slug such as proxima-staging works without it.
-u, --unit SLUGThe unit to act on. Defaults to web.
-V, --versionPrint the CLI's version.
-h, --helpPrint help.

-p, -e and -u work before or after a nested subcommand, so kuiper env set -u agent NAME=value and kuiper env -u agent set NAME=value are the same. Commands that act on a whole project take -p only. Commands that act on one unit take -p and -u.

Environment#

VariableWhat it does
KUIPER_API_URLThe instance to talk to. Overrides the config file.
KUIPER_TOKENThe API token. Overrides the config file.
KUIPER_PROJECTThe default project, the same as -p.
KUIPER_ENVIRONMENTThe default environment, the same as -e.
XDG_CONFIG_HOMEWhere the config file lives. The default is ~/.config.

The config file is kuiper/config.json in that directory. It holds the API URL, the token, the default project and its environment, and is readable only by you.

Sign in and projects#

CommandWhat it does
kuiper loginSign in and store the API URL and token. Opens the dashboard in your browser to approve a short code.
kuiper login --no-browserPrint the link to approve instead of opening a browser.
kuiper login --token kpr_…Sign in with an API token. Without --token the token is read from standard input.
kuiper login --api-url URLSign in to a specific instance, such as a self-hosted one. The default is the saved instance, else https://app.kuiper.sh.
kuiper login --browserUse the browser flow even when standard input is not a terminal.
kuiper config showShow the saved settings. The token is never printed.
kuiper config set api-url URLPoint the CLI at another instance. A saved token for a different instance is dropped; one for the same instance is kept. The install script runs this for you.
kuiper whoamiShow the organisation the CLI is signed in to.
kuiper use SLUGSet the default project. -e NAME sets its default environment too.
kuiper projectsList projects, with their environments. The same as kuiper projects list. --all lists every environment as a row.
kuiper projects create NAMECreate a project. --name DISPLAY sets a display name when the first argument should stay the slug.
kuiper projects delete SLUGDelete a project. A project with environments needs --with-environments.

Environments#

An environment is a copy of a project that runs on its own, from its own branch. See Environments.

CommandWhat it does
kuiper environmentsList the project's environments with their branch and status. The same as kuiper environments list, and kuiper envs is short for kuiper environments.
kuiper environments create NAMECreate an environment by copying another.
kuiper environments delete NAMEDelete an environment, its databases and their data. Asks first.
kuiper environments diff NAMEShow what differs between an environment and another.
kuiper environments sync NAMEBring differences from another environment into this one.

kuiper environments create takes --from ENV (default production), --branch BRANCH for the branch its units build from, --no-secrets to leave secret values out and --no-deploy to start nothing.

kuiper environments delete takes --yes to skip the question.

kuiper environments diff takes --from ENV (default production). It never prints secret values. With --json it lists each difference with the key sync uses to name it.

kuiper environments sync takes --from ENV, --yes, --secrets to copy secrets the target lacks, --prune to remove what only the target has, and --include KEY,… to sync only the named items: variable:web/LOG_LEVEL, unit:worker, secret:API_KEY, or kind:* for all of a kind.

Units#

CommandWhat it does
kuiper unitsList units. The same as kuiper units list.
kuiper units create SLUGCreate a unit. --kind agent|station|service, --placement, --class.
kuiper units delete SLUGDelete a unit.
kuiper statusShow a unit's state, address, live deployment and placements.
kuiper outputsList the outputs a unit exports, such as INTERNAL_URL, and the reference for each.
kuiper settingsShow or change a unit's build and run settings. They apply from the next build.
kuiper dashboardShow a Station or Foundry unit's web dashboard, turn it on or off, or change its login.

kuiper settings takes --root-dir, --install-command, --build-command, --start-command, --port (0 clears it) and --dashboard-url. An empty value clears a setting.

kuiper dashboard takes --enable, --disable, --username NAME and --password -|generate|VALUE.

Deploy and build#

CommandWhat it does
kuiper deploy --source DIRBuild and deploy a directory, with no repository.
kuiper deploy --image IMAGEDeploy an existing image with its kuiper.json.
kuiper linkLink a Git repository to a unit, so a push builds and deploys.
kuiper buildQueue a build of the linked repository.
kuiper buildsList a unit's builds.
kuiper manifest validate [PATH]Check a kuiper.json. Offline.
kuiper manifest schemaPrint the JSON Schema for kuiper.json. Offline.
kuiper manifest init [DIR]Write the kuiper.json the builder would infer for a Foundry or Station app. Offline.

kuiper deploy takes --source DIR or --image IMAGE, one of them, plus --manifest PATH (default kuiper.json) and --wait, which waits until the deployment is live or fails.

kuiper link takes --repo URL, --branch (default main), --root-dir (default .), --build-env NAME=VALUE (repeat it), and --credential NAME.

kuiper build takes --ref REF and --no-deploy.

kuiper manifest init takes --station or --foundry, --out PATH (default kuiper.json) and --force.

Deployments and operations#

CommandWhat it does
kuiper deploymentsList a unit's deployments.
kuiper deployment IDShow one deployment, including its resolved environment with secrets masked.
kuiper rollback DEPLOYMENTRedeploy a previous deployment's image and manifest.
kuiper restartApply pending variable and secret changes. Restarts at a turn boundary.
kuiper stopStop a unit. It runs nowhere and keeps its address, variables, volumes and deployments. Nothing restarts it until it is started. See Stopping a unit.
kuiper startStart a stopped unit: its live deployment is deployed again, with the variables and secrets the unit has now.
kuiper logsPrint a unit's logs. --tail N (default 200), -f to follow, --deployment ID for an earlier deployment, -q FILTER (--filter) to print only the lines that match. See Finding things.
kuiper search QUERYFind units, deployments (by ID, commit SHA, message or branch), domains, variable and secret names, databases, buckets and activity in the project. Without a project it searches the whole organisation. --org searches the organisation even when a project is set, and --limit N sets how many results each group shows.
kuiper eventsPrint the project's activity feed.
kuiper usageShow the organisation's spend this month by resource and project, with month to date and the projected month end. --month YYYY-MM, --from DATE --to DATE. With -p, one project's reserved and used CPU and memory and its spend. See Usage and billing.
kuiper budgetsList the organisation's monthly budgets with what each scope has committed. create --scope org|project|key --limit USD (-p, --key gk_…, --action block|notify, --notify-at 50,80,100), set ID, delete ID. A block budget refuses new browser sessions and sandboxes once used up.
kuiper volumesList the project's persistent volumes.
kuiper regionsList the fleet's regions and their capacity.
kuiper moveMove a unit to another region or node. --region, --node, --force.
kuiper migrationsList the moves of a unit that carried its volumes, newest first.

--force on kuiper move moves a unit that has a volume without copying the data first.

Network logs#

CommandWhat it does
kuiper network httpPrint the requests the edge answered for the project's units.
kuiper network dnsPrint the names the units' containers looked up.
kuiper network flowsPrint the connections the units opened or accepted.
kuiper network summaryShow whether a unit is healthy: requests, errors, latency, busiest paths, clients and destinations.

http, dns and flows take -u UNIT (default: every unit), -q FILTER (also --filter), --since DURATION (default 1h; 15m, 6h, 7d or a time), --until, --limit N (default 100) and -f to follow. They print oldest first; with --json they print the response, or one object per line when following. summary takes -u UNIT and --window (1m to 7d, default 1h).

The filter is the dashboard's: @status:5xx, @path:/api/*, -@method:OPTIONS, @duration:>1s, and plain words. Network logs lists the keys and what is recorded.

Variables and secrets#

CommandWhat it does
kuiper env listList a unit's variables with their templates.
kuiper env set NAME=TEMPLATE…Set variables. Run kuiper restart to apply them.
kuiper env unset NAME…Remove variables.
kuiper secrets listList the project's secrets. Values are never shown.
kuiper secrets set NAME=VALUE…Set secrets. NAME=- reads the value from standard input.
kuiper secrets rm NAME…Remove secrets.
kuiper shared listList the project's shared variables.
kuiper shared set NAME=VALUE…Set shared variables. NAME=- reads the value from standard input.
kuiper shared rm NAME…Remove shared variables.
kuiper resources listList external resources and their outputs.
kuiper resources add SLUG OUTPUT=VALUE…Add an external resource. --secret OUTPUT marks an output as secret.
kuiper resources rename SLUG NEW_SLUGRename an external resource. Templates are rewritten.
kuiper resources rm SLUGRemove an external resource.

Databases and buckets#

CommandWhat it does
kuiper db listList the project's managed databases.
kuiper db create ENGINE SLUGCreate a database. ENGINE is postgres or redis. --size small|medium|large, --version.
kuiper db show SLUGShow one database.
kuiper db credentials SLUGPrint the database's connection values, masked. --reveal shows them.
kuiper db restart SLUGRestart a database with its pinned image and existing data.
kuiper db rotate-password SLUGGive a database a new password. It restarts with it, and so do the units that use its outputs. The old password stops working.
kuiper db public SLUGShow a database's public access. --on turns it on, or changes who may connect, with --allow CIDR per address or range (none: any address). --off turns it off.
kuiper db delete SLUG --confirm SLUGPermanently delete a database and its volume.
kuiper buckets listList buckets.
kuiper buckets create SLUGCreate a bucket.
kuiper buckets show SLUGShow one bucket.
kuiper buckets credentials SLUGPrint the bucket's access values, masked. --reveal shows them.
kuiper buckets delete SLUG --confirm SLUGDelete an empty bucket that no variable references.
kuiper buckets cors SLUGShow which websites may use the bucket from a browser. --origin URL (repeatable, or *) sets them, --uploads also allows uploads and deletes, and --off removes browser access.

Domains#

CommandWhat it does
kuiper domains listList every hostname of the project with its status and certificate. The alias is ls.
kuiper domains add HOSTNAMEAdd a domain and print the DNS records to create. -u UNIT, --redirect-to HOST, --www.
kuiper domains inspect HOSTNAMEShow a domain's status, what DNS says and the records to create.
kuiper domains verify HOSTNAMECheck DNS now. --wait keeps checking, and --timeout SECONDS (default 600) gives up.
kuiper domains claim HOSTNAMEMove a domain from another project into this one. Needs its TXT record. -u UNIT, --redirect-to HOST.
kuiper domains set HOSTNAMEServe a different unit with -u, or redirect with --redirect-to HOST. --redirect-to none serves the unit again.
kuiper domains rm HOSTNAMERemove a domain. The alias is remove.

Station#

CommandWhat it does
kuiper station keysList a Station unit's API keys and the project secret each one is kept in.
kuiper station create-key NAMECreate a key for another service. It is printed once. --scope read,trigger,cancel,admin,execution,registry (comma-separated or repeated), --no-secret.
kuiper station revoke-key IDRevoke a key. Its secret is removed too, unless a variable still references it.

Models#

CommandWhat it does
kuiper providers listList the organisation's provider keys: service, name, kind, the key's last four characters, projects, status and last use. --service models|browsers|sandboxes|inbox.
kuiper providers kindsThe kinds of key you can add and their settings. --service.
kuiper providers add KINDAdd a provider key: openai, anthropic, google, kimi, bedrock, custom and the rest; models are NAME/<model>. Mail delivery: resend, postmark, sendgrid, mailgun, ses, smtp. --key - (read from standard input), --name (default the kind; custom needs one), --field name=value for a kind's settings (region=china, base_url=https://…), --projects a,b (default every project). Owners and admins only.
kuiper providers set NAMEChange a provider key: --key -, --field name=value (name= removes a setting), --rename NEW.
kuiper providers projects NAMEShow or change which projects may use a key: a,b, or --all.
kuiper providers rm NAMERemove a provider key; whatever uses it fails from then on. --yes. The alias is remove.
kuiper providers test NAMECheck the key with its provider: ok, invalid (the provider refused it) or unreachable.
kuiper models listThe models the project's provider keys offer, as name/model.
kuiper models callsThe project's model calls, newest first. --unit, --key, --model, --provider, --status ok|error|429, --conversation KEY, --has tool_calls,images,audio,reasoning,errors, --since 1h, --until, --limit 50, --cursor.
kuiper models call IDOne call: model and provider, status and error, tokens, timings, estimated cost, and for a logged call its messages, tool calls and results. --json for the call and its trace as JSON, --raw for the request and answer as they were sent.
kuiper models usageCalls, tokens and estimated provider cost, --by model|unit|key|provider|day, over the last 30 days or --from/--to.
kuiper models logging [full|metadata]Show or set whether the project's calls keep their request, answer and trace, and with --retention DAYS (1 to 30) for how long. Owners and admins set it.

Browsers and sandboxes#

CommandWhat it does
kuiper browsers sessionsList the project's live browser sessions and their history, with what each cost for owners and admins. --live.
kuiper browsers release IDRelease a live browser session, or a hibernated one (its saved state goes).
kuiper browsers recording IDA recorded session's rrweb events, one JSON array, to standard output or --output FILE: kuiper browsers recording ID > session.json. Owners and admins only.
kuiper sandboxes listList the project's live sandboxes and their history, with where each runs and what each cost for owners and admins (by provider for those at your own provider). --live.
kuiper sandboxes provider [NAME]Say where the project's new sandboxes run, and the organisation's sandbox provider keys it may choose. NAME chooses one of them; kuiper goes back to Kuiper's own. Choosing is for owners and admins.
kuiper sandboxes release IDRelease a live sandbox, or a hibernated one (its saved files go).
kuiper sandboxes createCreate a remote sandbox and print its ID. --image kuiper/coding, --size small, --timeout 30m, --inactivity-timeout 10m, --hibernate-when-idle, --env KEY=VALUE, --metadata key=value, --port 5173 (private), --public-port 3000, --provider NAME (one of the organisation's sandbox provider keys, or kuiper), --recipe STEP (Railway's template steps).
kuiper sandboxes exec ID -- CMD…Run a command in a sandbox; its output streams as it comes and its exit status is the CLI's. One argument is a shell line. --cwd, --env KEY=VALUE, --user, --timeout 10m, --background.
kuiper sandboxes shell ID [-- CMD…]A terminal in a sandbox: bash (or sh), or the command after --. Your keys go to the sandbox as typed, the window's size follows yours, and the command's exit status is the CLI's. --cwd, --env KEY=VALUE, --user, --no-tty (plain pipes, the default when standard input isn't a terminal).
kuiper sandboxes cp FROM TOCopy a file into a sandbox (cp ./a.txt ID:/workspace/a.txt) or out of one (cp ID:/workspace/out.log ./out.log). Up to 100 MB.
kuiper sandboxes files ID [PATH]List a directory of a sandbox (default /workspace, or the provider's working directory).
kuiper sandboxes expose ID PORTServe a port of a sandbox at its own address and print the URL. --public for anyone with the URL; a private port's URL carries a token.
kuiper sandboxes extend ID --timeout 30mKeep a live sandbox longer: it lives at least that much more from now, within the longest timeout. Its end never moves earlier.
kuiper sandboxes hibernate IDSave a sandbox's workspace and stop paying for it. Running processes are not kept.
kuiper sandboxes resume IDBring a hibernated sandbox back with the same ID and its files.
kuiper sandbox imagesList Kuiper's sandbox images, which a unit starts as kuiper/<name>: name, version, whether it is pinned and what it is for. --json adds what each contains and the image it resolves to.

create, exec, shell, cp, files, expose, extend, hibernate and resume use the gateway's sandbox API, so they need a gateway key with the sandboxes service: --key kgw_… or KUIPER_GATEWAY_KEY (create one with kuiper keys create NAME --services sandboxes). The CLI asks the control plane where the API is; --sandboxes-url (or KUIPER_SANDBOXES_URL) names another gateway, such as https://gateway.eu-fsn.kuiper.sh/sandboxes.

Inbox#

A mailbox is its ID, its address or its prefix. See Inbox.

CommandWhat it does
kuiper inbox listList the project's mailboxes with their unread counts and webhooks.
kuiper inbox create PREFIXMake a mailbox: on Kuiper's domain its address is the prefix, + and eight digits. --domain (one of the project's verified domains), --display-name, --webhook (unit://UNIT[:PORT][/PATH] or an https:// URL). It prints the address, and the webhook secret once.
kuiper inbox update MAILBOXChange --display-name or --webhook; --webhook "" removes it.
kuiper inbox secret MAILBOXA new webhook secret, printed once. The old one stops working.
kuiper inbox rm MAILBOXDelete a mailbox and all its mail.
kuiper inbox messages MAILBOXList its messages, newest first. --unread, --search WORDS, --limit.
kuiper inbox read MESSAGEShow a message: its headers, its text and its attachments. Marks it read.
kuiper inbox send MAILBOX --to ADDRSend. --cc, --bcc, --subject, --text, --text-file (else standard input), --html-file, --attach FILE (repeat for more). --preview shows what would be sent and sends nothing.
kuiper inbox reply MESSAGEAnswer in its thread. --text, --text-file, --html-file, --all, --attach FILE, --preview.
kuiper inbox attachment MESSAGE INDEXSave an attachment, to -o FILE or a file named after it.
kuiper inbox raw MESSAGEPrint a message's source, or save it with -o FILE.
kuiper inbox domainsList the project's mail domains. add DOMAIN prints the DNS records it needs (--provider KEY sends its mail through one of your delivery keys), check DOMAIN checks them now, delivery DOMAIN KEY chooses the delivery key its mail leaves through (kuiper for Kuiper's own), rm DOMAIN removes it.

Registries, Git and tokens#

CommandWhat it does
kuiper registry listList the project's registry credentials.
kuiper registry add REGISTRYAdd or replace credentials for a registry host. --username is required. The password is read from standard input unless you pass --password.
kuiper registry rm REGISTRYRemove credentials for a registry.
kuiper git listList the credentials your organisation can build with.
kuiper git add-token NAMEAdd a personal access token. --token, --host (default github.com), --username. The token is read from standard input unless you pass --token.
kuiper git rm NAMERemove a credential.
kuiper git githubSay whether the GitHub App is available. Connect it from the dashboard.
kuiper tokens listList the organisation's API tokens, revoked ones included. * marks the one in use.
kuiper tokens create NAMECreate an API token. It is printed once.
kuiper tokens revoke IDRevoke a token. The organisation's last active token cannot be revoked.
kuiper keys listList the project's gateway keys (kgw_…) with their prefix, revoked ones included.
kuiper keys create NAMECreate a gateway key for models, browsers, sandboxes and the inbox outside Kuiper. It is printed once. --services browsers,sandboxes,models,inbox (default all four), --expires 30d. Owners and admins only.
kuiper keys revoke IDRevoke a gateway key. Gateways refuse it within seconds.