Indexed
Reference

Config commands

indexed config get, set, list, and validate — plus configuration keys and environment overrides.

Config commands

Reference for every indexed config * subcommand (see indexed config --help), configuration keys, and environment overrides. For global indexed options, see Other commands — global options (top-level). For narrative setup and tuning, see the Configuration guide.

The CLI registers exactly four subcommands: get, set, list, and validate. There is no config init, config inspect, config update, or config delete.


The config file

Indexed reads one config.toml, not a global-plus-workspace merge. Which file is read depends on the resolved storage mode:

Storage modeConfig file
Global (default)~/.indexed/config.toml
Local (--local, or a [workspace] mode = "local" preference)./.indexed/config.toml in the current working directory

Every key has a built-in default, so the file is optional: Indexed runs without a config.toml and only reads values you have overridden. There is no command that scaffolds one — indexed init creates the data directories and downloads the model, and indexed config set creates the resolved config.toml on first write.


indexed config list

Display the resolved configuration (defaults, the config file, and environment overrides).

indexed config list [section] [flags]
Argument / flagTypeRequiredDefaultDescription
sectionstringNo—Optional: sources, core, logging, mcp, performance
--show-defaults / --defaults / -dflagNooffShow all values including defaults

Examples:

indexed config list
indexed config list sources
indexed config list --defaults

JSON: use the global --simple-output flag:

indexed --simple-output config list

indexed config get

Read a single value from the resolved configuration by dot path. Sensitive values (tokens, passwords) are masked.

indexed config get <key>

Examples:

indexed config get core.v1.indexing.chunk_size
indexed config get sources.files.ocr_enabled
indexed --simple-output config get core.v1.embedding.model_name

indexed config set

Set a value in the resolved config.toml (global by default; ./.indexed/config.toml in local mode). The file is created if it does not exist.

indexed config set <key> <value> [flags]
Argument / flagTypeRequiredDefaultDescription
keystringYes—Config key path (e.g., core.v1.indexing.chunk_size)
valuestringYes—New value (auto-coerced)
--dry-runflagNooffPreview the change without saving

Sensitive keys (connector tokens and passwords) are written to .env next to the resolved config.toml, not into config.toml.

Example:

indexed config set core.v1.indexing.chunk_size 1024
indexed config set core.v1.indexing.chunk_size 1024 --dry-run

indexed config validate

Validate the active configuration against registered validation rules. Prints errors by section and exits with status 1 if validation fails.

indexed config validate

Run this after manually editing config.toml (see the Configuration guide) to catch typos before they cause indexing errors.


Configuration Keys

Indexing

KeyTypeDefaultDescription
core.v1.indexing.chunk_sizeint512Maximum number of tokens per chunk (1–4096)
core.v1.indexing.chunk_overlapint50Number of overlapping tokens between consecutive chunks (must be less than chunk_size)

Embedding

KeyTypeDefaultDescription
core.v1.embedding.model_namestring"all-MiniLM-L6-v2"Sentence Transformers model to use for embeddings
core.v1.embedding.providerstring"sentence-transformers"Declared provider (sentence-transformers, openai, voyage)
core.v1.embedding.batch_sizeint128Batch size for embedding generation
KeyTypeDefaultDescription
core.v1.search.max_docsint10Maximum documents returned per collection (1–100); --limit overrides for one run
core.v1.search.max_chunksint30Maximum chunks returned
core.v1.search.score_thresholdfloatunsetMaximum squared-L2 distance (lower is closer; 0–4). Unset disables the cutoff.

v2 engine

KeyTypeDefaultDescription
core.v2.search.max_docsint10Maximum documents returned by v2 collections
core.v2.search.score_thresholdfloat0.0Minimum cosine similarity (0–1); 0 disables
core.v2.rerank.enabledboolfalseEnable cross-encoder reranking for v2 searches
core.v2.rerank.modelstring"cross-encoder/ms-marco-MiniLM-L-6-v2"Cross-encoder model (downloaded on first use)
core.v2.rerank.top_nint10Results kept after reranking

Files connector

Keys below belong in a [sources.files] table in config.toml. With indexed config set, use the full dot path (for example, sources.files.ocr_enabled true).

KeyTypeDefaultDescription
sources.files.pathstring—Root directory to index (-p / --path overrides for a single index create run)
sources.files.include_patternslist["*"]Patterns for files to include (glob or regex; prefix ! to exclude, e.g. ["*", "!*.pyc"])
sources.files.fail_fastboolfalseStop indexing on the first file read error
sources.files.respect_gitignorebooltrueHonor .gitignore and skip common noise directories
sources.files.excluded_dirslist.git, node_modules, .venv, …Directory names pruned before traversal
sources.files.change_trackingstring"auto"Change detection: auto, git, content_hash, mtime, or none
sources.files.ocr_enabledbooltrueEnable OCR for scanned PDFs and images
sources.files.table_structurebooltrueExtract table structure from documents
sources.files.code_chunkingbooltrueUse AST-aware chunking for supported code languages
sources.files.max_chunk_tokensint512Maximum tokens per chunk in the parsing module

There is no persistent sources.files.exclude_patterns key and no sources.files.excluded_extensions key. Exclusion at create time is the repeatable --exclude regex flag; include_patterns supports !-prefixed exclusions for a configured source.


Precedence

Indexed resolves one config file plus the environment. From lowest to highest priority:

  1. Built-in defaults
  2. The resolved config.toml (~/.indexed/config.toml or ./.indexed/config.toml, chosen by storage mode — never both merged)
  3. .env files (the resolved root's .env, then ./.env for gaps only)
  4. INDEXED__… environment variables and connector credential variables
  5. CLI flags on the current command

Environment Variable Overrides

Any configuration key can be overridden with an environment variable using the pattern:

INDEXED__<section>__<subsection>__<key>=<value>

Double underscores (__) separate each level of the config hierarchy. Environment variables override values from config files.

Examples:

export INDEXED__core__v1__indexing__chunk_size=1024
export INDEXED__core__v1__indexing__chunk_overlap=100
export INDEXED__core__v1__embedding__model_name="paraphrase-multilingual-MiniLM-L12-v2"

Connector Credentials

Connectors read credentials from the environment (or from .env), and indexed config set writes sensitive values to .env. CLI flags for indexed index create are in Index commands; this section lists the env vars.

VariableUsed byDescription
ATLASSIAN_EMAILJira Cloud, Confluence CloudAtlassian account email
ATLASSIAN_TOKENJira Cloud, Confluence CloudAtlassian API token
JIRA_TOKENJira Server/DCBearer or personal access token
JIRA_LOGINJira Server/DCUsername (with JIRA_PASSWORD)
JIRA_PASSWORDJira Server/DCPassword (with JIRA_LOGIN)
CONF_TOKENConfluence Server/DCBearer or personal access token
CONF_LOGINConfluence Server/DCUsername (with CONF_PASSWORD)
CONF_PASSWORDConfluence Server/DCPassword (with CONF_LOGIN)
OUTLINE_API_TOKENOutlineOutline API token
GITHUB_TOKENGitHubGitHub token; falls back to gh auth token

Connector schemas also accept a token / api_token value in config.toml or via --token, so environment-only is the recommended path rather than a hard restriction.

See Jira, Confluence, Outline, and GitHub for setup and troubleshooting.

Keep secrets out of version control

Use .indexed/.env (or your shell) for secrets — not config.toml. Add .env to .gitignore if you keep one in a repo directory.


Example Config File

~/.indexed/config.toml
[core.v1.indexing]
chunk_size = 512
chunk_overlap = 50

[core.v1.embedding]
model_name = "all-MiniLM-L6-v2"

[sources.files]
path = "./documents"
include_patterns = ["*.md", "*.pdf"]
respect_gitignore = true
change_tracking = "auto"
ocr_enabled = true

[core.v2.rerank]
enabled = false

Data directory

Indexed stores data under ~/.indexed/ (or ./.indexed/ with --local):

~/.indexed/
├── config.toml
└── data/
    └── collections/<name>/
        ├── manifest.json
        ├── documents.json
        ├── chunks.json
        └── index.faiss

See What is Indexed for how local data is used.

On this page