kjarni-cli 0.7.0

Kjarni from the shell: classification, embeddings, reranking, search, chat, summarization, translation and speech-to-text as commands, and an MCP server for AI agents. Same output as PyTorch.
Documentation
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/martian-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/martian-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Kjarni brand: night, ink, paper, and the orange core. */
:root {
  --bg: #0f1114;
  --bg2: #16181c;
  --bg3: #1e2126;
  --bg4: #262a30;
  --well: #0b0d0f;
  --border: #2c2f36;
  --border-strong: #3a3e46;
  --text: #f4f2ed;
  --text2: #d6d3cc;
  --muted: #9a978f;
  --subtle: #76746e;
  --core: #e4572e;
  --core-hover: #f06a42;
  --core-soft: rgba(228, 87, 46, 0.12);
  --core-line: rgba(228, 87, 46, 0.45);
  --accent: #f0724a;
  --ok: #7fb685;
  --bad: #e5735f;
  --ink: #16181c;

  --sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial,
    sans-serif;
  --mono: 'Martian Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --code: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --radius: 12px;
  --column: 760px;
  --sidebar: 280px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}

#app {
  height: 100%;
}

button,
textarea,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--accent);
}

::selection {
  background: var(--core);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono {
  font-family: var(--mono);
}

/* The cursor in the mark is the core: it blinks, 1s on and 1s off. */
@keyframes kj-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes kj-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes kj-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes kj-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rendered replies. */
.prose {
  color: var(--text);
  overflow-wrap: anywhere;
}
.prose > * + * {
  margin-top: 0.75em;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 1.2em;
}
.prose h1 {
  font-size: 1.35em;
}
.prose h2 {
  font-size: 1.2em;
}
.prose h3,
.prose h4 {
  font-size: 1.05em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.3em;
}
.prose li::marker {
  color: var(--subtle);
}
.prose strong {
  font-weight: 650;
}
.prose code {
  font-family: var(--code);
  font-size: 0.88em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}
.prose pre {
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
}
.prose blockquote {
  border-left: 2px solid var(--border-strong);
  padding-left: 14px;
  color: var(--text2);
}
.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  font-size: 0.94em;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
}
.prose th {
  background: var(--bg2);
  font-weight: 600;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
}