mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
82 lines
3.6 KiB
HTML
82 lines
3.6 KiB
HTML
<!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-8qR0kq1Z.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` | — | `4096` | Maximum tokens in response |
|
||
| `--temperature` | — | `0.7` | Randomness 0.0–1.0 |
|
||
| `--top-p` | — | `0.95` | Nucleus sampling 0.0–1.0 |
|
||
| `--top-k` | — | `40` | Limit top K tokens |
|
||
| `--stop-sequences` | — | — | Custom stop sequences (comma-separated) |
|
||
| `--frequency-penalty` | — | `0.0` | Penalize frequent tokens (0.0–2.0) |
|
||
| `--presence-penalty` | — | `0.0` | Penalize present tokens (0.0–2.0) |
|
||
| `--thinking-level` | — | `off` | Extended thinking level: off, 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> |