Kiva CLITerminal-first, agent-ready
Operate KIVA from the command line
Sign in once, then manage data, schemas, automations and AI agents from one terminal. Run the commands yourself, hand the job to the agents built into the CLI, or let your own coding agent run them for you.
Install
Kiva CLI is the npm package @kivacore/cli. Once it is installed, the command is kiva.
npm install -g @kivacore/clipnpm add -g @kivacore/clicurl -fsSL https://kiva.sh/install | shKiva CLI needs Node.js 24.11 or newer. The install script checks the Node.js version and then runs the npm install for you; it installs nothing else. Bring the CLI up to date later with kiva update.
Sign in
The CLI signs in with the OAuth2 device flow. No password, token or API key goes into the terminal.
kiva auth loginkiva auth who --jsonThe CLI prints a link and a code. Open the link, approve it in your browser, and the CLI finishes on its own. Settings live in a .kiva/ folder of the project; add -g right after kiva to keep the sign-in in ~/.kiva/ and use it in every folder.
kiva -g auth loginkiva -g auth tenants list --jsonCommands
Each group has its own subcommands. The help of a command is always the current reference.
- kiva auth
- Sign in with the OAuth2 device flow, switch accounts and tenants.
- kiva apps
- Create, clone and list apps, and manage their actions and AI tools.
- kiva ds
- Read, create, update and delete data records, with comments and files.
- kiva dsql
- Query with read-only logical SQL, or ask in plain language.
- kiva studio
- Manage data sources, fields, enums, data views, forms and templates.
- kiva automation
- Build automations with their triggers and action nodes.
- kiva agent
- Design custom AI agents with their tools, data sources and deployments.
- kiva connect
- Discover connectors and run their actions through managed provider auth.
- kiva discover
- Explore the OpenAPI spec of your tenant: namespaces, paths, entities.
- kiva curl
- Send an authenticated request to any KIVA API path.
kiva <command> --helpkiva <command> --llms--help prints the flags and arguments of a command. --llms prints a machine-readable manifest of a command tree for an agent. Add --json to any command for structured output.
Examples
Read records, ask a question in plain language, inspect a schema.
List the apps in the active tenant.
kiva apps list --jsonRead records from a data source.
kiva ds list crm contacts --columns "name,email,status" --limit 20Ask a question and get the rows back.
kiva dsql ask "open deals by stage" --jsonInspect the schema of an app.
kiva studio list-data-sources --appSlug crm --expand fields --jsonLook up an endpoint in the tenant OpenAPI spec.
kiva discover endpoint /v1/users/me --json
Built-in agents
Other SaaS and PaaS CLIs wait for an agent to drive them. Kiva CLI comes with two of its own. Type what you want straight after kiva, and one of them opens with it as the first message.
kiva "summarize what changed in this repo this week"kiva "create a purchasing management app for my company"The CLI picks the agent from the prompt: Kiva Coding Agent when you ask to build or change software, Kiva Work Agent for everything else. To choose yourself, name the agent with kiva work "<prompt>" or kiva code "<prompt>". Once you are signed in, both run on the Kiva AI Gateway: no AI provider account or API key is needed. You can also use your own API key or subscription.
Kiva skills
The Kiva skills teach a coding agent how to design data sources, automations, webforms, queries, agents and more.
kiva agent-skills statuskiva agent-skills installkiva agent-skills updateThese commands manage the skills in the current folder. To install them for one agent on the whole computer, use the setup for your agent.