Registry / llm-agents / krave-cli

krave-cli

JSON →
library2.1.1jsnpmunverified

A terminal-native AI coding assistant CLI that connects to proprietary AI models (Krave 4.1 and Krave 4.2) for real-time code generation, debugging, file management, and system automation. Currently at version 2.1.1, released on npm with a focus on CLI-based development. It operates directly in the shell, providing real system access through tools like bash, writefile, spawn, webSearch, and webFetch. Key differentiators: dual-model architecture, autonomous subagents, persistent session management with auto-save/resume, and zero runtime dependencies. Requires Node.js >=18.0.0 and a terminal with Unicode/ANSI color support.

npm install krave-cli
INSTALL
IMPORT
SIG · KRAVE-CLI
K
krave-cli
llm-agentsjavascriptv2.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import krave from 'krave-cli'
var krave = require('krave-cli')
ESM-only since v2. CommonJS require throws ERR_REQUIRE_ESM.
krave
krave()
new krave()
Function call, not constructor. No named exports.
type KraveOptions
import type { KraveOptions } from 'krave-cli'
import { KraveOptions } from 'krave-cli'
KraveOptions is a TypeScript type, not a value. Use import type.

Demonstrates ESM import of Krave CLI, configuration with API key, model selection, session path, and tool enabling.

#!/usr/bin/env node import krave from 'krave-cli'; const options = { apiKey: process.env.KRAVE_API_KEY ?? '', model: 'krave-4.2', sessionPath: './my-session.json', tools: ['bash', 'writefile', 'spawn'] }; krave(options).then(() => { console.log('Session ended.'); }).catch(err => { console.error('Krave error:', err.message); process.exit(1); });
krave --version
Debug
Known issues
breakingESM-only package — require() will throw ERR_REQUIRE_ESM
fix
Use import statement instead of require(). If using CommonJS, use dynamic import: import('krave-cli').then(m => m.default(...)).
affects: >=2.0.0
breakingNode.js >=18 required — older versions will fail to start
fix
Update Node.js to version 18 or later.
affects: >=2.0.0
deprecatedkrave-4.0 model is deprecated and may be removed in a future version
fix
Switch to krave-4.1 or krave-4.2.
affects: >=2.0.0
gotchaAPI key must be set via environment variable KRAVE_API_KEY or passed in options; otherwise CLI will exit with an authentication error.
fix
Set KRAVE_API_KEY environment variable before running krave.
affects: >=1.0.0
Errors
Common errors & fixes
ERR_REQUIRE_ESM: require() of ES Module not supported
Using CommonJS require() to import krave-cli, which is ESM-only since v2.
fix
Replace require('krave-cli') with dynamic import: const { default: krave } = await import('krave-cli');
Error: KRAVE_API_KEY is not set
Missing API key environment variable.
fix
Set KRAVE_API_KEY in your shell: export KRAVE_API_KEY='your-api-key'
Error: Node version must be >=18.0.0
Running krave-cli on an older Node.js version.
fix
Upgrade Node.js to version 18 or later using nvm or your package manager.
Upgrade
Version history
2.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources
krave-cli — npm install krave-cli · libregistry