Files
kit/cli/flags/index.html
T

82 lines
3.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Global Flags | Kit</title>
<meta name="description" content="Complete reference for all Kit CLI flags.">
<link rel="canonical" href="/cli/flags">
<link rel="stylesheet" href="/assets/index-Di_r5hA0.css">
<script type="module" src="/assets/index-x9KNE3Ca.js"></script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Global Flags","description":"Complete reference for all Kit CLI flags.","url":"https://go-kit.dev/cli/flags","isPartOf":{"@type":"WebSite","name":"Kit","url":"https://go-kit.dev"}}</script>
</head>
<body>
<div id="tome-root"></div>
<div data-pagefind-body style="display:none"><h1>Global Flags</h1>
# Global Flags
All flags can be passed to the root `kit` command.
## Model and provider
| Flag | Short | Default | Description |
|------|-------|---------|-------------|
| `--model` | `-m` | `anthropic/claude-sonnet-latest` | Model to use (provider/model format) |
| `--provider-api-key` | — | — | API key for the provider |
| `--provider-url` | — | — | Base URL for provider API |
| `--tls-skip-verify` | — | `false` | Skip TLS certificate verification |
## Session management
| Flag | Short | Default | Description |
|------|-------|---------|-------------|
| `--session` | `-s` | — | Open specific JSONL session file |
| `--continue` | `-c` | `false` | Resume most recent session for current directory |
| `--resume` | `-r` | `false` | Interactive session picker |
| `--no-session` | — | `false` | Ephemeral mode, no persistence |
## Behavior
These flags control Kit's behavior. When a prompt is passed as a positional argument, Kit runs in non-interactive mode.
| Flag | Short | Default | Description |
|------|-------|---------|-------------|
| `--quiet` | — | `false` | Suppress all output (non-interactive only) |
| `--json` | — | `false` | Output response as JSON (non-interactive only) |
| `--no-exit` | — | `false` | Enter interactive mode after prompt completes |
| `--max-steps` | — | `0` | Maximum agent steps (0 for unlimited) |
| `--stream` | — | `true` | Enable streaming output |
| `--compact` | — | `false` | Enable compact output mode |
| `--auto-compact` | — | `false` | Auto-compact conversation near context limit |
## Extensions
| Flag | Short | Default | Description |
|------|-------|---------|-------------|
| `--extension` | `-e` | — | Load additional extension file(s) (repeatable) |
| `--no-extensions` | — | `false` | Disable all extensions |
| `--prompt-template` | — | — | Load a specific prompt template by name |
| `--no-prompt-templates` | — | `false` | Disable prompt template loading |
## Generation parameters
| Flag | Short | Default | Description |
|------|-------|---------|-------------|
| `--max-tokens` | — | `8192` | Base cap for output tokens. Auto-raised per-model up to 32768 when the model's catalog ceiling is higher and no explicit value is set. |
| `--temperature` | — | `0.7` | Randomness 0.01.0 |
| `--top-p` | — | `0.95` | Nucleus sampling 0.01.0 |
| `--top-k` | — | `40` | Limit top K tokens |
| `--stop-sequences` | — | — | Custom stop sequences (comma-separated) |
| `--frequency-penalty` | — | `0.0` | Penalize frequent tokens (0.02.0) |
| `--presence-penalty` | — | `0.0` | Penalize present tokens (0.02.0) |
| `--thinking-level` | — | `off` | Extended thinking level: off, none, minimal, low, medium, high |
## System
| Flag | Short | Default | Description |
|------|-------|---------|-------------|
| `--config` | — | `~/.kit.yml` | Config file path |
| `--system-prompt` | — | — | System prompt text or file path |
| `--debug` | — | `false` | Enable debug logging |</div>
</body>
</html>