Skip to main content

CLI Reference

This file is generated from the canonical repository documentation. Do not edit it directly.

Generated from internal/cli. The serve-ops command is an accepted alias for serve; new usage should use serve.

akritas serve​

FlagDefaultDescription
-address127.0.0.1:8090HTTP listen address
-alert-sources-config(empty)provider alert source configuration; empty disables provider-specific webhook routes
-alert-storedata/audit/alerts.jsonlappend-only JSONL alert, incident and investigation-job store; empty disables alert ingestion
-api-key-envAKRITAS_API_KEYenvironment variable containing inbound Bearer API key
-audit-logdata/audit/akritas.jsonlappend-only JSONL run and audit log; empty disables persistence
-base-urlhttp://127.0.0.1:8080/v1upstream OpenAI-compatible API ending in /v1
-change-validator(repeatable)opt-in executable validator: go-vet, go-test or yamllint; may be repeated
-config(empty)strict JSON service configuration; AKRITAS_CONFIG provides the default path
-max-context-tokens40000conservative host-counted context token limit per Run
-max-iterations12maximum upstream model calls per Run
-max-model-tokens16384maximum aggregate model output tokens per Run
-max-retrieved-context-bytes131072maximum retrieved context bytes per Run
-max-tokens1024default response token limit
-max-tokens-limit4096hard response token limit
-max-tool-calls8maximum read-only tool calls per chat request
-max-tool-result-bytes2097152maximum aggregate tool result bytes per Run
-mcp-config(empty)MCP configuration; only authorized read tools are exposed
-modelakritasmodel ID exposed by this server
-notifications-config(empty)incident notification and bot adapter configuration; empty disables both
-public-url(empty)externally reachable Akritas base URL used in notification links
-rag-index(empty)local RAG index; empty disables RAG
-request-timeout10mupstream request and generation timeout
-response-languageenBCP 47 language tag for model-generated prose; the Web UI remains English
-result-runes800maximum runes in each RAG excerpt
-search-top-k5default and maximum RAG results
-skills-dirskillsdirectory of selectively loaded */SKILL.md operational skills; empty disables skills
-system-instructionsinstructions/SYSTEM.mdUTF-8 Markdown file with global model instructions
-temperature0.2default model sampling temperature
-upstream-api-key-envOPENAI_API_KEYenvironment variable containing upstream API key
-upstream-model(empty)upstream model ID; empty discovers the first model
-workspace(repeatable)allowed change workspace as name=directory; flag may be repeated
-workspace-config(empty)strict JSON workspace catalog; roots are relative to the config file

akritas serve-ops​

FlagDefaultDescription
-address127.0.0.1:8090HTTP listen address
-alert-sources-config(empty)provider alert source configuration; empty disables provider-specific webhook routes
-alert-storedata/audit/alerts.jsonlappend-only JSONL alert, incident and investigation-job store; empty disables alert ingestion
-api-key-envAKRITAS_API_KEYenvironment variable containing inbound Bearer API key
-audit-logdata/audit/akritas.jsonlappend-only JSONL run and audit log; empty disables persistence
-base-urlhttp://127.0.0.1:8080/v1upstream OpenAI-compatible API ending in /v1
-change-validator(repeatable)opt-in executable validator: go-vet, go-test or yamllint; may be repeated
-config(empty)strict JSON service configuration; AKRITAS_CONFIG provides the default path
-max-context-tokens40000conservative host-counted context token limit per Run
-max-iterations12maximum upstream model calls per Run
-max-model-tokens16384maximum aggregate model output tokens per Run
-max-retrieved-context-bytes131072maximum retrieved context bytes per Run
-max-tokens1024default response token limit
-max-tokens-limit4096hard response token limit
-max-tool-calls8maximum read-only tool calls per chat request
-max-tool-result-bytes2097152maximum aggregate tool result bytes per Run
-mcp-config(empty)MCP configuration; only authorized read tools are exposed
-modelakritasmodel ID exposed by this server
-notifications-config(empty)incident notification and bot adapter configuration; empty disables both
-public-url(empty)externally reachable Akritas base URL used in notification links
-rag-index(empty)local RAG index; empty disables RAG
-request-timeout10mupstream request and generation timeout
-response-languageenBCP 47 language tag for model-generated prose; the Web UI remains English
-result-runes800maximum runes in each RAG excerpt
-search-top-k5default and maximum RAG results
-skills-dirskillsdirectory of selectively loaded */SKILL.md operational skills; empty disables skills
-system-instructionsinstructions/SYSTEM.mdUTF-8 Markdown file with global model instructions
-temperature0.2default model sampling temperature
-upstream-api-key-envOPENAI_API_KEYenvironment variable containing upstream API key
-upstream-model(empty)upstream model ID; empty discovers the first model
-workspace(repeatable)allowed change workspace as name=directory; flag may be repeated
-workspace-config(empty)strict JSON workspace catalog; roots are relative to the config file

akritas simulate-change​

FlagDefaultDescription
-api-key-envOPENAI_API_KEYenvironment variable containing the API key; empty disables authentication
-base-urlhttp://127.0.0.1:8080/v1OpenAI-compatible API base URL ending in /v1
-file(repeatable)repository file relative to root; flag may be repeated
-max-tokens1600maximum response tokens
-model(empty)model ID; empty discovers the first /v1/models entry
-print-promptfalseprint the exact system and user prompts without calling the model
-request(empty)change request file relative to root
-request-timeout10mOpenAI HTTP request timeout
-response-languageenBCP 47 language tag for model-generated prose
-root(empty)snapshot root directory
-system-instructionsinstructions/SYSTEM.mdUTF-8 Markdown file with global model instructions
-temperature0model sampling temperature

akritas import-local​

FlagDefaultDescription
-extensionsbuilt-in text/code extensionscomma-separated extensions, or * for every UTF-8 file
-gziptruecompress shards with gzip
-input(empty)root directory recursively scanned for text files
-license(empty)license or ownership declaration stored in every document
-max-documents0maximum accepted documents; 0 means unlimited
-maximum-file-mb16skip individual files larger than this
-minimum-runes100skip normalized documents shorter than this
-outputdata/corpus-localempty output directory
-shard-mb64maximum uncompressed JSONL MiB per shard
-source(empty)stable source name stored in every document
-validation-percent2deterministic held-out percentage in [0,100)

akritas build-corpus​

FlagDefaultDescription
-gziptruecompress shards with gzip
-jsonl(repeatable)document JSONL or JSONL.GZ input; may be repeated
-outputdata/corpusempty output directory
-shard-mb64maximum uncompressed JSONL MiB per shard
-text(repeatable)UTF-8 text file stored as one document; may be repeated

akritas build-rag-index​

FlagDefaultDescription
-chunk-runes1200maximum runes per searchable chunk
-manifest(empty)source corpus manifest
-max-documents0optional document limit; zero means all
-output(empty)binary RAG index output
-overlap-runes150overlap between adjacent chunks
-verifytrueverify corpus shard hashes

akritas search-rag​

FlagDefaultDescription
-jsonfalseprint machine-readable JSON
-load(empty)binary RAG index
-query(empty)search query
-top-k5maximum search results

akritas inspect-rag-index​

FlagDefaultDescription
-jsonfalseprint machine-readable JSON
-load(empty)binary RAG index

akritas list-rag-documents​

FlagDefaultDescription
-id(empty)case-insensitive document ID substring
-jsonfalseprint machine-readable JSON
-limit50maximum documents to print, up to 10000
-load(empty)binary RAG index
-offset0number of matching documents to skip
-preview-runes0optional first-chunk preview length
-source(empty)case-insensitive source substring
-title(empty)case-insensitive title substring

akritas mcp-victoriametrics​

FlagDefaultDescription
-account-id(empty)optional VictoriaMetrics AccountID header
-base-urlhttp://127.0.0.1:8428/prometheusVictoriaMetrics read API root before /api/v1
-bearer-token-env(empty)environment variable containing a bearer token
-debugfalselog bounded VictoriaMetrics error response details to stderr
-max-response-bytes192*1024maximum decompressed VictoriaMetrics JSON response size
-password-env(empty)environment variable containing a basic-auth password
-project-id(empty)optional VictoriaMetrics ProjectID header
-request-timeout15stimeout for each VictoriaMetrics HTTP request
-username-env(empty)environment variable containing a basic-auth username