Skip to content

Reference

Commands

One program, kiyesi, scans a server, runs as its agent, and lets you work from a terminal. This page is built from the program's own help, so it says what the program does.

Commands that read your servers need kiyesi login first, and show only what your role allows. Add --help to any command for the same text. Exit codes are listed under Read your first report.

Every day

kiyesi

Server health and security, with the fix for every problem.

Kiyesi checks a Linux server's health and security and prints each problem in one sentence with the command that fixes it. The scan and the agent only read: Kiyesi never changes a file, a setting or a container. It only suggests: you review each command and run it yourself. Alone, kiyesi shows what needs you now and the next command to run.

Terminal window
kiyesi [flags]

Examples

Terminal window
kiyesi what needs you now, and the next command
sudo kiyesi scan this server's report; nothing leaves it
Flag What it does
--env show only production or staging, in any list
--json print what needs you now as JSON, for scripts
--project show only this project, by name, in any list

kiyesi watch

A live view of what needs you, open incidents and every server.

Refreshes in place every 15 seconds. Choose a row and press enter for an incident's evidence or a server's findings, o to open it in the browser. When the output is not a terminal, it prints the view once and stops.

Terminal window
kiyesi watch

Examples

Terminal window
kiyesi watch
kiyesi watch --project Checkout

kiyesi findings

Every finding on your servers, worst first, with the command that fixes it.

The problems the latest scans found, each in one sentence with why it matters and the commands that fix it. Kiyesi never changes a server: review each command and run it yourself, on the server.

Terminal window
kiyesi findings [server] [flags]

Examples

Terminal window
kiyesi findings
kiyesi findings checkout-api-prod --severity critical
Flag What it does
--json print the result as JSON, for scripts
--severity only critical, warning or info

kiyesi open

Open the matching dashboard page in the browser.

With an incident number (INC-12), a server's name, or a screen such as logs or credit; alone, the dashboard's home. The address is printed too.

Terminal window
kiyesi open [incident, server or screen]

Examples

Terminal window
kiyesi open INC-12
kiyesi open checkout-api-prod
kiyesi open credit

On the server

kiyesi scan

Scan this server and print the report. Nothing leaves the server.

Runs the health and security checks on this server and prints a grade, each problem in one sentence, and the fix for each critical one. The full report, with every fix, is saved to /var/lib/kiyesi (or ~/.local/state/kiyesi without root). Without root, checks that need it are skipped and say so.

Terminal window
kiyesi scan [flags]

Examples

Terminal window
sudo kiyesi scan
sudo kiyesi scan --fail-on critical # exit 1 if anything is critical, for a deploy pipeline
Flag What it does
--config the settings file (default /etc/kiyesi/config.yaml)
--fail-on exit with code 1 when a finding is at this level or worse: critical or warning
--json print the result as JSON, for scripts and pipelines

kiyesi connect

Link this server to the service and start sending results.

Checks the token with the service, saves it where only root can read it, and installs and starts the kiyesi system service. The service runs a scan now and every 15 minutes, and says it is alive every minute. On the free plan it reports every 10 minutes and scans every 6 hours, as the service asks. It only reads, opens no port, and masks secrets before anything is sent. The token can come after --token, or on standard input with --token -, which keeps it out of the list of processes other users can see, or in KIYESI_TOKEN.

Terminal window
kiyesi connect [--token <token> | --token -] [flags]

Examples

Terminal window
echo ksv_... | sudo kiyesi connect --token -
sudo kiyesi connect --token ksv_...
Flag What it does
--api the service address; change it only for a service you run yourself (default https://api.kiyesi.dev)
--no-service save the token but do not install the system service
--token the server token, starting with ksv_, or - to read it from standard input

kiyesi agent

Run as the background service: scan and send results (started by kiyesi connect).

Runs a scan now and every 15 minutes, says the server is alive every minute (less often on the free plan, as the service asks), and sends both to the service. Results that cannot be sent wait on disk and are sent later. It is normally started by the system service.

Terminal window
kiyesi agent [flags]

Examples

Terminal window
sudo systemctl status kiyesi
KIYESI_API=https://api.kiyesi.dev KIYESI_TOKEN=ksv_... kiyesi agent --container
Flag What it does
--config the settings file (default /etc/kiyesi/config.yaml)
--container run beside a managed service (Render, Heroku, Fly.io, …): no scan and no host figures; the databases in the settings and the runs kiyesi job done records. Reads KIYESI_API and KIYESI_TOKEN

kiyesi deploy

Mark a deploy, from your deploy script, so charts and History show it.

Records that a version of an app was deployed, and who shipped it. Run it at the end of a deploy. In CI, set KIYESI_DEPLOY_TOKEN; on a connected server it uses the server's own token; on a laptop, sign in with kiyesi login first.

Terminal window
kiyesi deploy --app <name> --version <version> [flags]

Examples

Terminal window
kiyesi deploy --app checkout-api --version 3.8.1
KIYESI_DEPLOY_TOKEN=kdp_... kiyesi deploy --app web --version $GIT_SHA --server web-prod
Flag What it does
--api the service address, with a deploy token (default https://api.kiyesi.dev)
--app the app that was deployed
--by who shipped it (default: the CI user, then the last commit's author)
--env production or staging, with --project
--project the project, when it went to several servers
--server the server it went to (needed with a deploy token or kiyesi login)
--version its version, tag or commit

kiyesi uninstall

Remove the agent and its files from this server.

Stops and removes the kiyesi service, the server token and settings in /etc/kiyesi, the results waiting in /var/lib/kiyesi, and the kiyesi program. What the server already sent stays in the dashboard: there, disconnect the server to keep it until it expires, or delete it to erase it. Changes kiyesi fix made before 0.40.0 stay on the server, but their undo records go with /var/lib/kiyesi, so kiyesi can no longer put them back. To put one back first: sudo kiyesi fix undo

Terminal window
kiyesi uninstall [flags]

Examples

Terminal window
sudo kiyesi uninstall
Flag What it does
--keep-program remove the service and its files but keep the kiyesi program, for one-off scans
--yes or -y do not ask first

kiyesi version

Print the version of this program.

Terminal window
kiyesi version [flags]

Examples

Terminal window
kiyesi version --json
Flag What it does
--json print the result as JSON, for scripts

Sign in on your laptop

kiyesi login

Sign in from this computer, to see your servers here.

Shows a code and opens the dashboard, where you approve the sign-in. The token is kept in the system keychain (the macOS Keychain, or the Secret Service on Linux), or in a file only you can read where there is none.

Terminal window
kiyesi login [flags]

Examples

Terminal window
kiyesi login
kiyesi servers
Flag What it does
--api the service address; change it only for a service you run yourself (default https://api.kiyesi.dev)
--no-browser print the address instead of opening the browser

kiyesi logout

Sign out on this computer.

Terminal window
kiyesi logout

kiyesi whoami

Your role, what you can see, and when your access ends.

Terminal window
kiyesi whoami [flags]

Examples

Terminal window
kiyesi whoami
Flag What it does
--json print the result as JSON, for scripts

Servers and what they report

kiyesi servers

List your servers, worst first.

Terminal window
kiyesi servers [flags]

Examples

Terminal window
kiyesi servers
kiyesi servers --json
Flag What it does
--json print the result as JSON, for scripts

kiyesi servers delete

Delete a server and, after 7 days, everything it sent.

Hides the server everywhere and stops its token at once, and emails every owner and admin. After 7 days its scans, alerts, history, metrics and logs are erased for good; until then, kiyesi servers restore brings it back. It asks you to type the name again and a code from your authenticator app.

Terminal window
kiyesi servers delete <name> [flags]

Examples

Terminal window
kiyesi servers delete old-web-1
Flag What it does
--code the code from your authenticator app, instead of typing it when asked
--confirm the server's name again, instead of typing it when asked

kiyesi servers disconnect

Stop a server sending results; its history stays until it expires.

The server's token stops working at once and it no longer counts as silent. Its scans, metrics, logs and history stay until they expire. To connect it again, make a new token with kiyesi servers reconnect.

Terminal window
kiyesi servers disconnect <name>

Examples

Terminal window
kiyesi servers disconnect old-web-1

kiyesi servers reconnect

Make a new token for a server, to connect it again.

Makes a new token and prints the command to run on the server. Any older token stops working. It asks for a code from your authenticator app.

Terminal window
kiyesi servers reconnect <name> [flags]

Examples

Terminal window
kiyesi servers reconnect old-web-1
Flag What it does
--code the code from your authenticator app, instead of typing it when asked

kiyesi servers rename

Give a server a new name; its agent and token are unchanged.

Terminal window
kiyesi servers rename <name> <new name>

Examples

Terminal window
kiyesi servers rename web-1 checkout-web

kiyesi servers restore

Bring back a server deleted in the last 7 days, with its history.

Terminal window
kiyesi servers restore <name>

Examples

Terminal window
kiyesi servers restore old-web-1

kiyesi server

Show a server's latest report: grade, problems and fixes.

Terminal window
kiyesi server <name> [flags]

Examples

Terminal window
kiyesi server checkout-api-prod
Flag What it does
--json print the server and its full report as JSON

kiyesi metrics

CPU, memory, disk and requests over time, drawn in the terminal.

Terminal window
kiyesi metrics <server> [flags]

Examples

Terminal window
kiyesi metrics checkout-api-prod --since 24h
Flag What it does
--json print the numbers as JSON
--since how far back: 1h, 24h, 7d or 30d (default 24h)

kiyesi logs

Search the logs of your servers, or follow them live.

Shows log lines from your servers' containers, web servers and system log, oldest first. Passwords and tokens were masked on the server before they were sent.

Terminal window
kiyesi logs [server] [flags]

Examples

Terminal window
kiyesi logs --server checkout-api-prod --level error --since 1h
kiyesi logs checkout-api-prod --follow
kiyesi logs --search "heap limit" --since 24h
kiyesi logs --server checkout-api-prod --since 7d --output checkout.jsonl
Flag What it does
--follow or -f keep showing new lines as they arrive, until Ctrl+C
--json print JSON (one line per log line with --follow)
--level error, or warn for warnings and errors
--limit the most lines to show, up to 1000 (default 300)
--output or -o save every matching line to this file instead: .txt, or .jsonl for JSON lines (up to 100,000 lines)
--raw print JSON lines in full, rather than a short summary of each
--search only lines with these words, in any case
--server only this server
--since how far back: 15m, 1h, 6h, 24h or 7d (default 1h)
--source only this container, service or file, such as checkout-api or nginx

kiyesi history

Deploys, findings, grade changes, restarts and outages, in time order.

Terminal window
kiyesi history [flags]

Examples

Terminal window
kiyesi history --since yesterday
kiyesi history --server checkout-api-prod --since 7d
Flag What it does
--json print the result as JSON, for scripts
--server only this server
--since how far back: 1h, 24h (or yesterday), 7d, 30d or 90d (default 24h)

kiyesi deploys

Recent deploys with their verdict: healthy or roll back.

Each deploy is watched for 10 minutes after it goes out, then judged healthy or roll back, with the evidence and the roll-back command.

Terminal window
kiyesi deploys [flags]

Examples

Terminal window
kiyesi deploys --since 7d
kiyesi deploys --server checkout-api-prod
Flag What it does
--json print the result as JSON, for scripts
--server only this server
--since how far back: 24h, 7d, 30d or 90d (default 7d)

kiyesi deploys remove

Remove a deploy marked by mistake, with its History lines.

Removes the deploy marker, its verdict, its lines in History and a roll-back alert it raised. The activity log keeps that you removed it.

Terminal window
kiyesi deploys remove <app> <version>

Examples

Terminal window
kiyesi deploys remove checkout-api 3.8.1-oops

kiyesi jobs

Scheduled jobs with their last run and status.

Lists the timed jobs that call kiyesi job done: when each runs, its last run, how long it took, when it is next expected, and whether it failed, ran long or did not run. Give a job's name to see its recent runs.

Terminal window
kiyesi jobs [name] [flags]

Examples

Terminal window
kiyesi jobs
kiyesi jobs nightly-backup
Flag What it does
--json print the result as JSON, for scripts

kiyesi databases

Storage, connections and slow queries for each database.

Lists the databases Kiyesi watches: storage against its limit, connections, slow queries in the last hour, the newest backup, and when it is full at the rate it grows. On a server, kiyesi databases check tests the settings.

Terminal window
kiyesi databases [flags]

Examples

Terminal window
kiyesi databases
sudo kiyesi databases check
Flag What it does
--json print the result as JSON, for scripts

kiyesi databases check

Read the databases in this server's settings now, and show what Kiyesi sees.

Connects to each database in the settings file with its read-only user and prints what the agent sends: sizes and counts, never a row, never the address.

Terminal window
kiyesi databases check [flags]

Examples

Terminal window
sudo kiyesi databases check
Flag What it does
--config the settings file (default /etc/kiyesi/config.yaml)

kiyesi databases encrypt

Encrypt a database's password with Kiyesi's own key, where systemd is older than 254.

Reads the password from the terminal without showing it, or from a pipe, and prints it encrypted (AES-256-GCM, bound to the database's name) for you to save in /etc/kiyesi/credentials/<database>.enc. The key is made once, in /var/lib/kiyesi/db.key, readable by root only. Where systemd is 254 or later, use systemd-creds instead: sudo kiyesi databases setup gives the steps.

Terminal window
kiyesi databases encrypt <database>

Examples

Terminal window
printf '%s' "$pw" | sudo kiyesi databases encrypt orders | sudo tee /etc/kiyesi/credentials/orders.enc >/dev/null

kiyesi databases setup

Print the steps to watch a database, read-only and with no password in a file.

Prints numbered steps for this server, for you to review and run: a user for Kiyesi that may only read sizes and counts, never a row, and cannot write; how it signs in, the safest way where the database is (through the socket; with a short-lived token from the server's cloud identity on AWS RDS, Azure and Google Cloud SQL; with a certificate on MongoDB Atlas; from your vault; or with a random password nobody sees, kept encrypted); and the lines for /etc/kiyesi/config.yaml. Kiyesi changes nothing. With no engine, it lists the databases it finds: on this server, in its Docker containers, and the hosted ones its apps use (host and engine only, never a password).

Terminal window
kiyesi databases setup [postgres|mysql|mariadb|mongodb|redis] [database] [flags]

Examples

Terminal window
sudo kiyesi databases setup
sudo kiyesi databases setup postgres orders
sudo kiyesi databases setup postgres orders --container app-db-1
sudo kiyesi databases setup mongodb shop --host cluster0.abcde.mongodb.net
sudo kiyesi databases setup postgres orders --host orders.c9x.eu-west-1.rds.amazonaws.com
sudo kiyesi databases setup postgres orders --host 10.20.0.3 --login gcp-iam
sudo kiyesi databases setup mysql shop --host db.internal --login vault --vault https://vault.example.com:8200
Flag What it does
--container the Docker container the database runs in, on this server
--host the database's host, when it is not on this server
--login how Kiyesi signs in: password, aws-iam, gcp-iam, azure-identity, certificate, aws-secret or vault (the safest one for the host when not given)
--port the database's port, when it is not the usual one (default 0)
--vault with --login vault: your Vault's https:// address
--vault-auth with --login vault: how this server signs in to Vault: aws, gcp, azure or approle

kiyesi costs

Monthly cost against use, with a suggestion for each server.

What each server costs a month, how much of it is used at its busiest, and whether it is too small, larger than needed or the right size. Prices are typed once in the dashboard, in the currency your provider bills in, and shown in your team's currency too, at a public rate fetched once a day.

Terminal window
kiyesi costs [flags]

Examples

Terminal window
kiyesi costs
kiyesi costs --currency EUR
Flag What it does
--currency show the costs in this currency, such as EUR or GBP
--json print the result as JSON, for scripts

kiyesi datamap

Where every server, database and backup sits, against your home country.

Lists every server, database, backup and outside service with its provider and country, and flags payment data outside the home country. It is evidence of where data sits, not a certificate of compliance.

Terminal window
kiyesi datamap [flags]

Examples

Terminal window
kiyesi datamap
kiyesi datamap --outside
kiyesi datamap --report --pdf data-map.pdf
Flag What it does
--json print JSON
--outside only what sits outside the home country
--pdf where to save the report (default data-map-<date>.pdf)
--report make the report for an auditor and save it

kiyesi tips

Improvements that are not urgent, for each server.

Terminal window
kiyesi tips [server] [flags]

Examples

Terminal window
kiyesi tips
kiyesi tips checkout-api-prod
Flag What it does
--json print JSON

kiyesi advisories

Software past its end of life, and packages with published fixes for known flaws.

Compares what each server has installed with endoflife.date and OSV, every day. Advisories never change the grade and never send an alert.

Terminal window
kiyesi advisories [server] [flags]

Examples

Terminal window
kiyesi advisories
kiyesi advisories checkout-api-prod
Flag What it does
--json print JSON

kiyesi platforms

List the managed platforms linked, and the services each one sends.

Apps on Render, Heroku, Railway, Fly.io, Vercel, Netlify or anywhere else report through a platform link made in Settings, Managed services. Each service a platform names is its own server, with no scan: the platform runs the machine.

Terminal window
kiyesi platforms [flags]

Examples

Terminal window
kiyesi platforms
Flag What it does
--json print the result as JSON, for scripts

Sites and frontends

kiyesi uptime

Your uptime checks and their state.

Terminal window
kiyesi uptime [flags]

Examples

Terminal window
kiyesi uptime
kiyesi uptime add https://example.com/health
Flag What it does
--json print the result as JSON, for scripts

kiyesi uptime add

Check an address from outside every minute.

Terminal window
kiyesi uptime add <address> [flags]

Examples

Terminal window
kiyesi uptime add https://example.com/health --name Shop
Flag What it does
--name a short name for the check

kiyesi uptime edit

Change a check's name, address or project; its history stays.

Terminal window
kiyesi uptime edit <name or address> [flags]

Examples

Terminal window
kiyesi uptime edit Shop --address https://shop.example.com/health
kiyesi uptime edit Shop --name "Shop health" --project Checkout
Flag What it does
--address a new address to check
--env production or staging, with --project
--name a new name
--project move it to this project

kiyesi status

Your public status pages, and what each one shows now.

Each project can have a public status page at status.kiyesi.dev, showing the uptime checks you chose under names your customers know. Post updates with kiyesi status post.

Terminal window
kiyesi status [flags]

Examples

Terminal window
kiyesi status
kiyesi status post "We found the cause and are fixing it." --state fixing
Flag What it does
--json print the result as JSON, for scripts

kiyesi status post

Publish an update on a status page, and email its subscribers.

Adds the next step to the problem that is open on the page, or, with --title, starts a new one. --state resolved closes it. It goes on the public page and to everyone who asked for email updates: write plain words, no server names.

Terminal window
kiyesi status post <text> [flags]

Examples

Terminal window
kiyesi status post "Some customers cannot place orders." --title "Some orders are failing"
kiyesi status post "All orders go through again." --state resolved
Flag What it does
--page the page's address or title, when you have more than one
--state investigating, identified, fixing, monitoring or resolved (default investigating)
--title start a new problem with this title, such as "Some orders are failing"

kiyesi errors

Browser errors from your frontends, grouped, with file and line.

Lists what went wrong in your users' browsers, busiest first: the error, where in the code (the real file and line once source maps are uploaded), how often, for how many people, and when it was first seen.

Terminal window
kiyesi errors [flags]

Examples

Terminal window
kiyesi errors
kiyesi errors --frontend storefront-web --since 7d
Flag What it does
--frontend only this frontend
--json print the result as JSON, for scripts
--since how far back: 24h, 7d or 30d (default 24h)

kiyesi sourcemaps

Upload a build's source maps, so browser errors show the real file and line.

Terminal window
kiyesi sourcemaps

kiyesi sourcemaps upload

Upload every .map file in a build folder, for one version.

Run it in your build step, after building, with the same version as the snippet's data-version. In CI, set KIYESI_DEPLOY_TOKEN. The maps stay in the folder: Kiyesi never deletes a file. Add --delete to print the command that removes the uploaded ones, so they are not published with the site.

Terminal window
kiyesi sourcemaps upload <build folder> [flags]

Examples

Terminal window
kiyesi sourcemaps upload --version 2.14.0 ./dist
KIYESI_DEPLOY_TOKEN=kdp_... kiyesi sourcemaps upload --frontend storefront-web --version $GIT_SHA --delete ./dist
Flag What it does
--api the service address, with a deploy token (default https://api.kiyesi.dev)
--delete print the command that removes the uploaded maps from the folder
--frontend the frontend, as named in Settings (not needed when the team has only one)
--version the version the snippet reports, as in data-version

kiyesi traces

Slow or failed requests, and where their time went.

Lists requests followed by their ID from the browser through the web server and the backend to the database, newest first: the slow (a second or more) or failed ones, or all with --all. Open one with: kiyesi trace <id>

Terminal window
kiyesi traces [flags]

Examples

Terminal window
kiyesi traces
kiyesi traces --all --since 1h --search /api/orders
Flag What it does
--all every request, not only the slow or failed ones
--json print the result as JSON, for scripts
--search a request ID, or an address such as /api/orders
--since how far back: 1h, 24h or 7d (default 24h)

kiyesi trace

One request from the browser to the database, by its ID.

Shows one request as a row of steps, each with the time it took and how that is known, where most of the time went, and its log lines.

Terminal window
kiyesi trace <id> [flags]

Examples

Terminal window
kiyesi trace req_2b77f0d3
Flag What it does
--json print the result as JSON, for scripts

Reports

kiyesi reports

Your monthly client reports and data map reports.

Lists the reports you can see, newest first. Kiyesi makes each project's monthly report on the first day of the month; make one for a past month with kiyesi report.

Terminal window
kiyesi reports [flags]

Examples

Terminal window
kiyesi reports
Flag What it does
--json print the list as JSON

kiyesi report

Make a monthly report and print its share link.

Makes a project's report for a whole past month, under your name and logo, and prints a read-only link to send your client. --pdf saves it as a PDF too. A month can be reported once it is over and the project has all of it.

Terminal window
kiyesi report --project <name> --month <month> [flags]

Examples

Terminal window
kiyesi report --project Checkout --month 2026-09
kiyesi report --project Checkout --month 2026-09 --share 7 --pdf checkout-september.pdf
Flag What it does
--month the month, such as 2026-09
--pdf also save it as a PDF to this file
--project the project, by name
--share how many days the link works: 7, 30 or 90; 0 for no link (default 30)

kiyesi report card

The Monday report card: what was caught last week, what was fixed, and how fast.

Counts the incidents and critical problems caught last week in what you can see, how many were fixed and the typical time to fix. It never names who caused a problem. With credit, owners and admins get it by email each Monday at 08:00 in their own time zone; on the free plan it is not emailed, only shown here.

Terminal window
kiyesi report card [flags]

Examples

Terminal window
kiyesi report card
kiyesi report card --this-week
Flag What it does
--json print the result as JSON, for scripts
--this-week this week so far, instead of last week

Alerts

kiyesi alerts

Show where alerts go, and what is open now.

Terminal window
kiyesi alerts [flags]

Examples

Terminal window
kiyesi alerts
kiyesi alerts test # send a test message to every channel
Flag What it does
--json print the result as JSON, for scripts

kiyesi alerts test

Send a test message to every alert channel.

Terminal window
kiyesi alerts test

kiyesi mute

Silence a server's alerts for a set time. Every mute ends.

Terminal window
kiyesi mute <server> <30m|2h|1d|off>

Examples

Terminal window
kiyesi mute checkout-api-prod 30m
kiyesi mute checkout-api-prod off

Incidents and work

kiyesi incidents

Open incidents with their likely source and status.

Lists incidents, newest first: each failure grouped from its symptoms, with the likely source and how sure Kiyesi is. Open one with: kiyesi incident <id>

Terminal window
kiyesi incidents [flags]

Examples

Terminal window
kiyesi incidents
kiyesi incidents --status all
Flag What it does
--json print the result as JSON, for scripts
--status open, fixed or all (default open)

kiyesi incident

One incident: the likely source, the evidence, the timeline and the fix.

Terminal window
kiyesi incident <id> [flags]

Examples

Terminal window
kiyesi incident INC-12
Flag What it does
--json print the result as JSON, for scripts

kiyesi mine

Everything assigned to you, and what nobody owns yet.

Lists the incidents, findings, browser errors, jobs and database warnings given to you, then those without an owner. Take one with: kiyesi assign <ref> me

Terminal window
kiyesi mine [flags]

Examples

Terminal window
kiyesi mine
kiyesi mine --all
Flag What it does
--all also list what everyone else owns
--json print the result as JSON, for scripts

kiyesi assign

Give an incident, finding, error, job or database warning to someone.

Gives one piece of work to a teammate, by name, or to you with "me". They are told on their own alert channel, with the evidence, the fix and your note. With only the reference, says who Kiyesi suggests and why.

Terminal window
kiyesi assign <ref> <teammate> [flags]

Examples

Terminal window
kiyesi assign INC-12
kiyesi assign INC-12 Amaka --note "Started after 3.8.1"
kiyesi assign job-3f9a1c me
Flag What it does
--note a note they see with the alert

kiyesi ack

Acknowledge an incident or any other work, so your team sees someone is on it.

Terminal window
kiyesi ack <ref>

Examples

Terminal window
kiyesi ack INC-12
kiyesi ack job-3f9a1c

kiyesi resolve

Mark an incident or any other work fixed, and save what fixed it.

Marks an incident fixed. The note shows first the next time the same failure happens.

Terminal window
kiyesi resolve <ref> --note "what fixed it" [flags]

Examples

Terminal window
kiyesi resolve INC-12 --note "Rolled back to 2.13.4, added the missing check"
Flag What it does
--note what fixed it, in a line

Team and your account

kiyesi team

List teammates: role, what they can see, what they work on.

Terminal window
kiyesi team [flags]

Examples

Terminal window
kiyesi team
kiyesi team invite seun@example.com --role member --area backend
Flag What it does
--json print the result as JSON, for scripts

kiyesi team access

Set one person's role, where it applies and when it ends.

Sets a teammate's role, the projects it applies in (all of them unless you name some), servers left out, and the day it ends. It applies on their next click. Asks for the code from your authenticator app.

Terminal window
kiyesi team access <person> [flags]

Examples

Terminal window
kiyesi team access kemi@example.com --role "Frontend contractor" --projects Storefront --until 2026-11-30
kiyesi team access Bola --role client --projects "Demo client" --for-good
Flag What it does
--code the code from your authenticator app, instead of typing it when asked
--for-good access with no end date
--leave-out servers to leave out, separated by commas
--projects projects it applies in, separated by commas; kept as they are when left out
--role the role's name, such as member or "Frontend contractor"
--until the day access ends, such as 2026-11-30

kiyesi team invite

Invite someone by email into a role.

Emails an invite that works once, for 7 days. They choose a password and set up an authenticator app. Only an owner can invite owners and admins. Inviting an owner, an admin or anyone who manages the team or its settings asks for the code from your authenticator app.

Terminal window
kiyesi team invite <email> [flags]

Examples

Terminal window
kiyesi team invite seun@example.com --role member --area backend
Flag What it does
--area what they work on: frontend, backend, database or devops
--code the code from your authenticator app, for an owner, an admin or a manager
--role the role's name, such as member or "Frontend contractor"; kiyesi team roles lists them (default member)

kiyesi team leave

Leave the team these commands are for.

Your open work goes back to Unassigned, and you need a new invite to come back. A team's only owner makes someone else an owner first.

Terminal window
kiyesi team leave [flags]

Examples

Terminal window
kiyesi team leave
Flag What it does
--yes do not ask first

kiyesi team roles

List the roles and what each one allows.

Terminal window
kiyesi team roles [flags]

Examples

Terminal window
kiyesi team roles
Flag What it does
--json print the result as JSON, for scripts

kiyesi team use

Choose which of your teams commands are for.

Someone in several teams chooses one; commands then show only that team. Without a name, lists your teams and which one is in use.

Terminal window
kiyesi team use [team]

Examples

Terminal window
kiyesi team use
kiyesi team use Globex

kiyesi projects

Your projects, which group servers, checks and status pages.

Terminal window
kiyesi projects [flags]

Examples

Terminal window
kiyesi projects
kiyesi projects rename Checkout Payments
kiyesi projects delete Old
Flag What it does
--json print the result as JSON, for scripts

kiyesi projects delete

Delete a project once nothing is left in it.

Deletes an empty project. While servers, checks, status pages, reports or people's access are still in it, it says what is left, and deletes nothing.

Terminal window
kiyesi projects delete <name>

Examples

Terminal window
kiyesi projects delete Old

kiyesi projects rename

Give a project a new name.

Terminal window
kiyesi projects rename <name> <new name>

Examples

Terminal window
kiyesi projects rename Checkout Payments

kiyesi activity

Who did what, newest first.

The activity log: every change anyone made, sign-ins, and what Kiyesi did by itself, such as an escalation. Kept 12 months.

Terminal window
kiyesi activity [flags]

Examples

Terminal window
kiyesi activity
kiyesi activity --limit 100
Flag What it does
--json print the result as JSON, for scripts
--limit how many lines, up to 100 (default 30)

kiyesi sessions

Where you are signed in: each browser and kiyesi command.

Terminal window
kiyesi sessions [flags]

Examples

Terminal window
kiyesi sessions
kiyesi sessions end 2
kiyesi sessions end --others
Flag What it does
--json print the result as JSON, for scripts

kiyesi sessions end

Sign out one session, by its number in kiyesi sessions, or every other.

Terminal window
kiyesi sessions end <number> [flags]

Examples

Terminal window
kiyesi sessions end 2
kiyesi sessions end --others
Flag What it does
--others every session but this one

kiyesi credit

Your team's credit: the balance, days left, and what used it.

One credit is one server for one day. Top up in the dashboard, under Credit: nothing renews by itself and no card is kept.

Terminal window
kiyesi credit [flags]

Examples

Terminal window
kiyesi credit
Flag What it does
--json print the result as JSON, for scripts

kiyesi credit topup

Open the Credit page in the browser, to top up.

You pay on Flutterwave's page, in the dashboard's Credit screen: the terminal never handles a card.

Terminal window
kiyesi credit topup

Examples

Terminal window
kiyesi credit topup

Your code

kiyesi hook

Check each push for malicious packages and hidden code before it leaves this computer.

A git pre-push hook that checks what each push adds, on this computer, with the rules of Kiyesi's pull-request check: malicious packages, lockfile tampering, hidden code, install scripts and risky workflows. It is free and needs no account. A malicious package, hidden code or a tampered lockfile stops the push, with the fix; install scripts and workflow advice are shown and the push goes on. git push --no-verify skips the check, as it skips any hook. The malicious-package list is kept in your cache folder and refreshed when it is over 6 hours old: a push waits at most 3 seconds for an answer, and 30 for a new list to arrive. Offline, the copy is used and its age is shown. Nothing from your repository is sent anywhere. Once a day, Kiyesi sends anonymous counts: how many pushes were checked and stopped, findings by rule, and the name and version of each malicious package stopped, with a random number for this computer. Never a repository, file, branch or person. kiyesi hook usage off, KIYESI_NO_USAGE=1 or DO_NOT_TRACK=1 turns it off.

Terminal window
kiyesi hook

Examples

Terminal window
kiyesi hook install
kiyesi hook status
kiyesi hook usage off stop the anonymous counts
git push --no-verify skip the check for one push

kiyesi hook install

Add Kiyesi's pre-push hook to this repository.

Adds a pre-push hook to the repository: each git push is checked first. A pre-push hook already there is kept, and runs after Kiyesi's check; kiyesi hook uninstall puts it back as it was. When the repository keeps its hooks in a folder of its own (core.hooksPath, as Husky sets it), nothing is changed: Kiyesi prints the line to add to that hook.

Terminal window
kiyesi hook install [flags]

Examples

Terminal window
kiyesi hook install
kiyesi hook install --path ~/code/shop
Flag What it does
--path the repository, or any folder in it (default .)

kiyesi hook status

Whether this repository's pushes are checked, and how old the malicious-package list is.

Terminal window
kiyesi hook status [flags]

Examples

Terminal window
kiyesi hook status
kiyesi hook status --json
Flag What it does
--json print the hook and the list as JSON, for scripts
--path the repository, or any folder in it (default .)

kiyesi hook uninstall

Remove Kiyesi's pre-push hook, and put back the one it kept.

Terminal window
kiyesi hook uninstall [flags]

Examples

Terminal window
kiyesi hook uninstall
Flag What it does
--path the repository, or any folder in it (default .)

kiyesi hook update

Get the newest malicious-package list now.

Gets the newest malicious-package list from Kiyesi, as each push does when its copy is over 6 hours old. No account is needed.

Terminal window
kiyesi hook update

Examples

Terminal window
kiyesi hook update

kiyesi hook usage

Turn the anonymous counts on or off, or say whether they are on.

Once a day Kiyesi sends anonymous counts of what the hook did: pushes checked and stopped, findings by rule, and the name and version of each malicious package stopped, with a random number for this computer. Never a repository, file, branch, line or person. Off forgets the number and the counts; on again starts with a new number. KIYESI_NO_USAGE=1 or DO_NOT_TRACK=1 also turn it off.

Terminal window
kiyesi hook usage [on|off] [flags]

Examples

Terminal window
kiyesi hook usage
kiyesi hook usage off
kiyesi hook usage --json
Flag What it does
--json print whether the counts are on as JSON, for scripts

Your terminal

kiyesi update

Install the newest kiyesi, after checking its signature.

Downloads the newest release from get.kiyesi.dev, checks its signature with the release key built into this program and the file's checksum, then replaces this program in one step and restarts the agent if it runs. Nothing is changed if any check fails. Updates never happen by themselves.

Terminal window
kiyesi update [flags]

Examples

Terminal window
kiyesi update --check
sudo kiyesi update
sudo kiyesi update --back
Flag What it does
--back put back the version that ran before the last update
--check only say whether a newer version is out

Other

kiyesi badge

The grade badge for a project's README: turn it on and print the line to paste.

A small image that shows the server's grade and links to Kiyesi. It shows the grade only, never the server's name, and is off until you turn it on. --off stops it at once; turning it on again gives it a new address.

Terminal window
kiyesi badge <server> [flags]

Examples

Terminal window
kiyesi badge checkout-api-prod
kiyesi badge checkout-api-prod --off
Flag What it does
--json print the result as JSON, for scripts
--off turn the badge off

kiyesi breach-check

Look for signs that someone already got into this server. Nothing leaves the server.

Answers one question: has someone already got in? It compares the system's programs with the packages they came from, and looks for crypto miners, programs run from temporary folders, autostart entries that download and run code, a second root account, a library loaded into every program, and history or sign-in logs turned off. Each sign says what it means and what to do. Two notes cost no points and ask you to confirm a change was your team's: a login account added since the last scan, and login keys changed in the last 7 days. For changed keys it shows the SSH sign-ins within a day of the change, with the key each used, to compare with sudo kiyesi keys and your own key. Comparing every program with its package can take a minute on a small server. It only reads, needs root, and sends nothing. The same check runs in every scan.

Terminal window
kiyesi breach-check [flags]

Examples

Terminal window
sudo kiyesi breach-check
sudo kiyesi breach-check --json # exit 1 when there is a sign of a break-in
Flag What it does
--json print the result as JSON, for scripts

kiyesi compare

Set two servers that should be alike side by side, and list what differs.

Compares two servers you can see, from what their agents last sent: the system and kernel, SSH and firewall settings, open ports, running services, packages and their versions, containers and their images, timed jobs and failing checks. Only what differs is listed, with a count of what is the same.

Terminal window
kiyesi compare <server> <server> [flags]

Examples

Terminal window
kiyesi compare web-1 web-2
kiyesi compare web-1 web-2 --json
Flag What it does
--json print the comparison as JSON

kiyesi drill

Send a practice incident through the escalation steps, and see who was reached.

Each person in the escalation steps gets a message marked PRACTICE on the channel a real incident would use, one minute apart. The result says who was reached, how fast each acknowledged, and which channel failed and why. It never shows on a status page and uses no credit.

Terminal window
kiyesi drill [flags]

Examples

Terminal window
kiyesi drill
kiyesi drill --last
kiyesi drill --no-wait
Flag What it does
--json print the result as JSON, for scripts
--last show the last drill's result
--no-wait start it and do not wait for the steps

kiyesi explain

A plain paragraph about an incident, for a client or a manager.

Written from the same pattern as the fix, with no technical terms and no server, file or teammate's name. No AI. Read it before you send it.

Terminal window
kiyesi explain <id> [flags]

Examples

Terminal window
kiyesi explain INC-11
kiyesi explain INC-11 | pbcopy
Flag What it does
--json print the result as JSON, for scripts

kiyesi fix

List what to fix on this server, with the commands to review and run (needs sudo).

Scans this server, then lists each problem with the commands that fix it, worst first, for you to review and run yourself. Kiyesi never changes the server: not this command, not the agent, not the dashboard. Names narrow the list to what those fixes cover: certificates, docker-cleanup, firewall, login-protection, secret-files, ssh-password, ssh-root, updates. Changes made by kiyesi fix before 0.40.0 can still be listed and put back: sudo kiyesi fix undo.

Terminal window
kiyesi fix [name...] [flags]

Examples

Terminal window
sudo kiyesi fix every problem, with its commands
sudo kiyesi fix ssh-password only what that fix covers
sudo kiyesi fix --json the same, as JSON
Flag What it does
--config the settings file (default /etc/kiyesi/config.yaml)
--json print the list as JSON

kiyesi fix undo

List what kiyesi fix changed before 0.40.0, and the commands that put one back (needs sudo).

Before 0.40.0, kiyesi fix could make a change after a yes, and kept a record of each. Alone, this lists those changes, newest first, with their ids. With an id, it prints the commands that put that change back as it was, for you to review and run. Kiyesi changes nothing.

Terminal window
kiyesi fix undo [id] [flags]

Examples

Terminal window
sudo kiyesi fix undo
sudo kiyesi fix undo 7f3a
Flag What it does
--config the settings file (default /etc/kiyesi/config.yaml)
--json print the list, or the commands, as JSON

kiyesi guard

The safe way to make a risky change: what works now, and each step to review and run.

Kiyesi changes nothing and runs nothing. It reads how this server is now: the grade, the failed services, the containers, and whether the server's own sites answer. Then it prints the safe way to make your change, step by step, for you to review and run: keep a copy of /etc and the package list, make the change, check the same things again, and if something broke, see what changed, put back the settings you choose and restart what failed.

Terminal window
kiyesi guard -- <command> [flags]

Examples

Terminal window
sudo kiyesi guard -- apt-get upgrade
sudo kiyesi guard --check http://127.0.0.1:3000/health -- ./deploy.sh
sudo kiyesi guard list
sudo kiyesi guard undo 7f3a
Flag What it does
--check an address on this server to check now and after, such as http://127.0.0.1:3000/health (repeat for more)
--config the settings file (default /etc/kiyesi/config.yaml)
--no-restore leave out the steps that put the settings back

kiyesi guard list

List the last guarded runs on this server.

Terminal window
kiyesi guard list [flags]

Examples

Terminal window
sudo kiyesi guard list
Flag What it does
--json print the runs as JSON

kiyesi guard undo

Show how to put /etc back as it was before one guarded run.

Lists every settings file that changed since that run began, including changes made after it, and the commands that put each back from guard's copy, for you to review and run. Kiyesi changes nothing.

Terminal window
kiyesi guard undo <id> [flags]

Examples

Terminal window
sudo kiyesi guard undo 7f3a
Flag What it does
--config the settings file (default /etc/kiyesi/config.yaml)

kiyesi job

Tell Kiyesi how a timed job went, so a failed or missed run alerts you.

Terminal window
kiyesi job

kiyesi job done

Record that a timed job just ran, with its exit code.

Put it after the job's command in your crontab or systemd timer, with kiyesi job start before it. The job runs on its own, as it always did; this only records how it went, and the agent sends it. Kiyesi never starts the job. It finds the schedule from the same line, so a run that does not come in time is called missed. The run is joined to the start kiyesi job start noted, for its length; --started (seconds since 1970, from date +%s) gives it instead.

Terminal window
kiyesi job done --name <job> --exit <code> [flags]

Examples

Terminal window
0 4 * * * /usr/local/bin/kiyesi job start --name nightly-backup; /opt/scripts/backup.sh; /usr/local/bin/kiyesi job done --name nightly-backup --exit $?
ExecStopPost=/usr/local/bin/kiyesi job done --name nightly-backup --exit $EXIT_STATUS
Flag What it does
--exit the job's exit code: $? right after its command, or $EXIT_STATUS in ExecStopPost
--name the job's name, such as nightly-backup
--started when the job began, in seconds since 1970 (date +%s)

kiyesi job start

Record that a timed job is starting, before its command.

Put it before the job's command in your crontab or systemd timer, and kiyesi job done after it. It only records the start, so a run that does not start in time is called missed, and one still going long after its usual time is called running long. Kiyesi never starts the job.

Terminal window
kiyesi job start --name <job> [flags]

Examples

Terminal window
0 4 * * * /usr/local/bin/kiyesi job start --name nightly-backup; /opt/scripts/backup.sh; /usr/local/bin/kiyesi job done --name nightly-backup --exit $?
ExecStartPre=/usr/local/bin/kiyesi job start --name nightly-backup
Flag What it does
--name the job's name, such as nightly-backup

kiyesi keys

List who can sign in to this server with an SSH key, and how to take one out.

Lists every SSH key that opens this server, by account: its fingerprint, type and comment, and when its file last changed. The keys themselves are never shown or sent. On a connected server the same list feeds the dashboard's Access map, which shows each key across all your servers.

Terminal window
kiyesi keys [flags]

Examples

Terminal window
sudo kiyesi keys
sudo kiyesi keys remove SHA256:JQ6b… # where it is, and the commands to take it out
Flag What it does
--json print the keys as JSON

kiyesi keys remove

Show where one SSH key is on this server, and the commands to take it out.

Finds the key with this fingerprint in every authorized_keys file on this server and prints, for each file, the command that takes its line out, for you to review and run. Kiyesi changes nothing. It warns when the key is the last one you sign in with.

Terminal window
kiyesi keys remove <fingerprint> [flags]

Examples

Terminal window
sudo kiyesi keys remove SHA256:JQ6bTs0Wp5uD9IhzbSPDx3VfmHmzSj0Ep0e2p8KQhXk
Flag What it does
--config the settings file (default /etc/kiyesi/config.yaml)
--json print where the key is, and the commands, as JSON

kiyesi mcp

Let your own AI assistant read Kiyesi, with your access (an MCP server).

Runs an MCP server on this computer for an AI assistant such as Claude, Cursor, VS Code or Windsurf. It answers from Kiyesi with your login and your role, and only reads: servers, findings, incidents, alerts, logs, metrics, history and uptime. An owner must first allow AI assistants for the team, in the dashboard: Team and security, AI assistants. Your assistant starts it; you do not run it by hand. Sign in first with kiyesi login.

Terminal window
kiyesi mcp

Examples

Terminal window
claude mcp add kiyesi -- kiyesi mcp
# Cursor, VS Code and others: a server named kiyesi, command kiyesi, argument mcp

kiyesi passport

The server's passport: what runs on it, ports, jobs, people and how-to.

Written by Kiyesi from what the agent sees, and rewritten after every scan, for a handover or a client's question. It never shows passwords, keys or tokens. Add --pdf to save it, or --share for a read-only link that lasts 7 days.

Terminal window
kiyesi passport <server> [flags]

Examples

Terminal window
kiyesi passport checkout-api-prod
kiyesi passport checkout-api-prod --pdf
kiyesi passport checkout-api-prod --share
Flag What it does
--json print the result as JSON, for scripts
--pdf save it as a PDF in this folder
--share make a read-only link that lasts 7 days

kiyesi preflight

Safe to deploy? Go or wait, with the reasons and what to do first.

Six checks on what Kiyesi already holds for the server: memory, disk, backup age, certificate, open incidents on it, and the last deploy's verdict. It exits with 0 for go and 1 for wait, so a deploy pipeline can use it. It only advises and never stops a deploy by itself. In CI, set KIYESI_DEPLOY_TOKEN. A server that sent no figures in the last 5 minutes is a reason to wait.

Terminal window
kiyesi preflight [server] [flags]

Examples

Terminal window
kiyesi preflight checkout-api-prod
kiyesi preflight on a connected server: this one
kiyesi preflight checkout-api-prod --json
Flag What it does
--api the Kiyesi API, with a deploy token (default https://api.kiyesi.dev)
--json print the result as JSON, for scripts

kiyesi renewals

What runs out soon: domains, certificates and your own dates.

Lists the expiry calendar, soonest first: the domains and certificates found from your uptime checks, and the dates your team added. Kiyesi warns 30, 7 and 1 day before each. Add a date in the dashboard, on Renewals.

Terminal window
kiyesi renewals [flags]

Examples

Terminal window
kiyesi renewals
kiyesi renewals --json
Flag What it does
--json print the list as JSON, for scripts

kiyesi verify

Check a Kiyesi health certificate is real, unchanged and still valid.

Checks a health certificate's signature with Kiyesi's public key, built into this program, so a downloaded certificate file is checked with no network at all. Given its link or id instead, it also asks the service whether it was revoked.

Terminal window
kiyesi verify <file, link or id> [flags]

Examples

Terminal window
kiyesi verify kiyesi-certificate-web-1-3jtDKL.json
kiyesi verify https://kiyesi.dev/verify/?id=Qm9yX3pXnFv2kTr8aLdE1c0b
Flag What it does
--json print the result as JSON