Kiva CLI AppTerminal-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.

One terminal control plane for the full KivaCore Platform

Kiva CLI brings sign-in, data, schemas, automations, AI agents, queries, connectors and the API into one command. Every command prints its own help and returns JSON on request.

Sign-in

Sign-in, accounts and tenants

The CLI signs in with the OAuth2 device flow: it prints a link and a code, you approve it in your browser, and no password, token or API key goes into the terminal. 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.

OAuth2 device flowAccount switchingTenant switching
kiva auth login

kiva auth who --json

kiva -g auth tenants list --json
Data + schemas

Data and schemas

`kiva studio` manages data sources, fields, enums, data views, forms and templates. `kiva ds` reads, creates, updates and deletes data records, with comments and files.

Data sources and fieldsData views and formsRecords, comments and files
kiva studio list-data-sources --app-slug crm --expand fields --json

kiva ds list crm contacts --columns "name,email,status" --limit 20
Discover + call

OpenAPI discovery and direct API access

`kiva discover` explores the OpenAPI spec of your tenant: namespaces, paths and entities. `kiva curl` sends an authenticated request to any KIVA API path.

Tenant OpenAPI specEndpoint lookupAuthenticated requests
kiva discover endpoint /v1/users/me --json

kiva curl /v1/users/me -i
Built-in agents

Two agents come with the install

Type what you want straight after kiva and the CLI picks the agent: Kiva Coding Agent (`kiva code`) when you ask to build or change software, Kiva Work Agent (`kiva work`) for everything else. Once you are signed in, both run on the Kiva AI Gateway, with no AI provider account or API key. You can also use your own API key or subscription.

Kiva AI GatewayPlan mode and code reviewBrowser automation
kiva "create a purchasing management app for my company"

kiva code "add CSV export to the orders page"

kiva work "which deals closed this month, by owner?"
Meet the built-in agents on kiva.sh
Apps + automations

Apps, automations and AI agents

`kiva apps` creates, clones and lists apps and manages their actions and AI tools. `kiva automation` builds automations with their triggers and action nodes. `kiva agent` designs custom AI agents with their tools, data sources and deployments.

Apps, actions and AI toolsAutomations and triggersCustom AI agents
kiva apps list --json

kiva automation list --appSlug crm --json

kiva agent list --appSlug crm --json
Queries + connectors

Queries and connectors

`kiva dsql` queries with read-only logical SQL, or answers a question in plain language. `kiva connect` discovers connectors and runs their actions through managed provider auth.

Logical SQLPlain-language questionsConnectors
kiva dsql ask "open deals by stage" --json

kiva connect list-connectors --json
Install

Install and start in minutes

Kiva CLI is the npm package @kivacore/cli; once it is installed, the command is kiva. It 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.

Step-by-step setup for Claude Code, Codex, Antigravity and other agents: kiva.sh

Every command, with examples: kiva.sh/cli

Local or global settingsJSON output for agentsKiva skills for your agents
Install
npm install -g @kivacore/cli
pnpm add -g @kivacore/cli
Or with the install script
curl -fsSL https://kiva.sh/install | sh
Sign in and add the skills
kiva auth login

kiva auth who --json

kiva agent-skills install
Headless architecture

A headless surface for humans and agents

Kiva CLI gives people, scripts, and AI agents governed terminal access to tenant context, data, and platform workflows without a custom UI.

Human-triggeredAgent-triggeredSame governed runtime
Human operators use the CLI for speed

Use the CLI for setup, debugging, schema work, tenant switching, and direct platform inspection.

Agents use the CLI as a controlled runtime surface

Agents read `--help` for the exact flags, `--llms` for a machine-readable manifest of a command tree and `--json` for structured output, while tenant context, permissions and execution rules stay enforced.

Keep Kiva Coding Agent and CLI workflows in the same development context.

Using Claude Code, Codex or Antigravity? Start with one line from kiva.sh.

Build with Kiva Coding Agent and Kiva No-Code Agent

Build KIVA apps with Kiva Coding Agent and Kiva No-Code Agent

KIVA apps are built by KIVA’s own agents. Kiva No-Code Agent shapes the architecture and the data model, Kiva Coding Agent builds the screens and the code, and you review every step.

build.kiva.app

Studio, Kiva Coding Agent and Kiva No-Code Agent in the browser, for apps, portals, agents and custom interfaces.

Open build.kiva.app

Kiva Desktop App

A focused workspace for your apps, with Kiva Agent and Kiva Coding Agent right next to them.

See the Desktop App

In your terminal

Start Kiva Coding Agent in your project folder and describe the app you want.

kiva code "Build a customer portal for our orders"
Try it with Kiva Coding Agent

“Build a customer portal where clients sign in and see their orders and invoices, and show me each step.”

Bring your own model

Once you are signed in, Kiva Coding Agent runs on the Kiva AI Gateway, on build.kiva.app and in the terminal: no AI provider account and no API key. In the terminal you can also use your own API key (Anthropic, OpenAI, Google, Azure OpenAI, Amazon Bedrock, DeepSeek or any OpenAI-compatible endpoint) or a ChatGPT or GitHub Copilot subscription you already pay for.

Where Claude Code and Codex fit

Use Claude Code or Codex with the Kiva CLI to work with your data: ask questions, update records, create webforms and automations. Building KIVA apps stays with Kiva Coding Agent and Kiva No-Code Agent.

Your own project on the Kiva API?

If KIVA is the backend of your own React, Vue, Svelte or Next.js project, @kivacore/cli sets it up from a KIVA starter, with KIVA sign-in and a .env ready for local development.

kiva apps create --name "My App" --slug my-app --local-development
See the Kiva API

What You Can Run

Kiva CLI App is for real terminal workflows: onboarding a project, switching tenants, shaping schema, inspecting the API, running data tasks, and supporting both human and agent-driven automation without juggling multiple tools.

Common workflows

Three high-value patterns technical teams run with Kiva CLI App.

Bootstrap operator context

Sign in with the OAuth2 device flow, pick the tenant to work in and keep the sign-in for every folder with -g.

Shape schema and query live data

List data sources, update fields and enums, query records with filters and formulas, and call tenant-specific endpoints from the same shell flow.

Hand the job to the built-in agents

Ask Kiva Work Agent about your data or have Kiva Coding Agent build and check software, with plan mode, code review and browser automation, for work that needs more than a raw REST client.

Frequently asked questions about Kiva CLI App

What is Kiva CLI App?+

Kiva CLI App (@kivacore/cli) is the command line for the KIVA platform. It signs in to KIVA, manages data, schemas, webforms, automations and custom AI agents, runs DSQL queries, and comes with two agents of its own: Kiva Coding Agent (kiva code) and Kiva Work Agent (kiva work). AI agents such as Claude Code and Codex can run the same workspace commands, with the Kiva skills that teach them how.

When should developers use Kiva CLI App?+

Developers should use it when they want fast terminal workflows for platform setup, schema management, discovery, data operations, or AI-assisted operator tasks without moving across multiple tools.

What can teams ship with Kiva CLI App?+

Teams can ship data models, webforms, automations, custom AI agents, admin scripts and record operations, by hand or with Claude Code or Codex, and build KIVA apps with Kiva Coding Agent.

How does Kiva CLI App fit with other KIVA developer tools?+

It works alongside the REST API and KIVA apps as one of the headless control surfaces in KIVA, and it can run as a local MCP server over stdio. Humans can use it interactively, and agents can call it from terminal-based workflows while the same tenant context, permissions, and execution rules remain in force.

Use the terminal as your control plane for the KivaCore Platform

Install Kiva CLI, sign in, and move from discovery to data, schemas and the built-in agents without leaving your terminal.