Configuration Guide
Configuration Guide
By the end of this guide, you will understand how to initialize and inspect your workspace, change and remove configuration values, manage connector credentials securely, understand the storage layout, and tune advanced options like chunk size and the embedding model.
This page is the walkthrough. For command flags, every config key in table form, and the INDEXED__… override pattern, use the Config commands reference (indexed config --help lists subcommands; each has its own --help).
Initialize
There is no config init. indexed init is the setup command: it creates the data directories under ~/.indexed/ (data/collections/, data/caches/), validates the resolved configuration, and downloads the default embedding model. It does not write config.toml or .env.example — every config key has a default, and the file only exists once you set something.
indexed initUse --skip-model to create directories and validate config without downloading the model, --model / -m to choose a different embedding model, and --force / -f to re-download a cached model. See indexed init --help.
To write configuration, use indexed config set (below) or create the resolved config.toml by hand.
Inspect
View the resolved configuration (defaults, the single config.toml, and environment overrides):
indexed config listShow a single section or include every default:
indexed config list sources
indexed config list --defaultsRead one value by dot path:
indexed config get core.v1.indexing.chunk_sizeMachine-readable JSON:
indexed --simple-output config listChange Values
indexed config set writes to the resolved config.toml — ~/.indexed/config.toml in global mode, or ./.indexed/config.toml in local mode (see storage modes). The file is created on first write.
Set a configuration value by its full key path:
indexed config set core.v1.indexing.chunk_size 1024Preview a change without applying it:
indexed config set core.v1.indexing.chunk_size 1024 --dry-runSensitive keys (connector tokens and passwords) are written to .env next to the resolved config.toml, not into config.toml.
There is no config delete and no config update command. To remove a key, delete its line from config.toml and run indexed config validate; to reset it, set it back to the documented default.
Validate the active configuration against the CLI’s validation rules (exits with status 1 if there are errors):
indexed config validateRun validate after manual edits to config.toml to catch typos before they cause indexing errors.
Precedence: One Config File, Then Environment
Indexed resolves one config.toml — global or local, chosen by storage mode — plus the environment. It does not merge a global and a workspace file. From lowest to highest priority:
- Built-in defaults (lowest)
- The resolved
config.toml:~/.indexed/config.toml, or./.indexed/config.tomlwhen local storage is active .envfiles: the resolved root’s.envfirst, then./.envfor values not already set- Environment variables — including
INDEXED__…overrides and connector credential variables - CLI flags on the command you run (highest)
Storage mode is selected by the global --local flag, a stored [workspace] mode preference, or the presence of a local .indexed/config.toml.
Environment Variable Overrides
Any configuration key can be overridden at runtime using the INDEXED__<section>__<key> pattern. Double underscores (__) separate each level of the config hierarchy.
export INDEXED__core__v1__indexing__chunk_size=1024
export INDEXED__core__v1__embedding__model_name="all-MiniLM-L6-v2"Environment variables override values from config files. This is useful for CI pipelines and Docker deployments where you want to inject settings without modifying the config file.
Connector Credentials
Connector credentials are read from the environment or .env (or from a connector token field if you put one in config). Names and usage are in Config commands — Connector credentials; CLI flags are in Index commands (indexed index create jira --help / indexed index create confluence --help).
| Variable | Used by | Description |
|---|---|---|
ATLASSIAN_EMAIL | Jira Cloud, Confluence Cloud | Atlassian account email |
ATLASSIAN_TOKEN | Jira Cloud, Confluence Cloud | Atlassian API token |
JIRA_TOKEN | Jira Server/DC | Bearer or personal access token |
JIRA_LOGIN | Jira Server/DC | Username (with JIRA_PASSWORD) |
JIRA_PASSWORD | Jira Server/DC | Password (with JIRA_LOGIN) |
CONF_TOKEN | Confluence Server/DC | Bearer or personal access token |
CONF_LOGIN | Confluence Server/DC | Username (with CONF_PASSWORD) |
CONF_PASSWORD | Confluence Server/DC | Password (with CONF_LOGIN) |
OUTLINE_API_TOKEN | Outline | Outline API token |
GITHUB_TOKEN | GitHub | GitHub token; falls back to gh auth token |
For token setup, Cloud vs Server/DC behavior, and troubleshooting auth, see the Jira and Confluence connector guides.
Keep credentials out of version control
Put secrets in .indexed/.env next to the resolved config.toml (or export them in your shell) — never in config.toml and never committed. indexed config set writes sensitive keys to that .env for you.
# Jira or Confluence Cloud (typical)
ATLASSIAN_EMAIL=your-email@company.com
ATLASSIAN_TOKEN=your_api_token_here
# Jira Server/DC (example)
# JIRA_TOKEN=your_pat_here
# Confluence Server/DC (example)
# CONF_TOKEN=your_pat_hereStorage Layout
All Indexed data lives at ~/.indexed/:
~/.indexed/
├── config.toml # Your configuration
└── data/
└── collections/
├── my-docs/
│ ├── manifest.json # Source path, connector type, timestamps
│ ├── documents.json # Document metadata (title, ID, source path)
│ ├── chunks.json # Actual text chunks — treat as sensitive
│ └── index.faiss # Binary vector index
└── eng-tickets/
├── manifest.json
├── documents.json
├── chunks.json
└── index.faissCheck disk usage for a specific collection:
du -sh ~/.indexed/data/collections/my-docs5.1M /Users/you/.indexed/data/collections/my-docsDo not manually edit collection files
Do not manually edit, move, or rename individual files within a collection directory. The four files (manifest.json, documents.json, chunks.json, index.faiss) must stay in sync. If a collection becomes corrupted, remove it with indexed index remove <name> --force and recreate it.
The data directory location (~/.indexed/data/) is not currently configurable via a config key. To move it to another location (e.g., a different disk), use a symlink:
mv ~/.indexed/data /path/to/new/location
ln -s /path/to/new/location ~/.indexed/dataAdvanced Options
Chunk Size and Overlap
Chunk size controls how many tokens each embedded segment contains. Smaller chunks produce more precise retrieval — a narrow question is more likely to land on the exact answer. Larger chunks provide more context per result — useful when answers span several paragraphs.
The defaults (chunk_size = 512, chunk_overlap = 50) work well for most use cases. Increase chunk size if results feel too narrow; decrease it if results are losing their focus.
# Larger chunks (more context per result)
indexed config set core.v1.indexing.chunk_size 1024
indexed config set core.v1.indexing.chunk_overlap 100
# Smaller chunks (more precise retrieval)
indexed config set core.v1.indexing.chunk_size 256
indexed config set core.v1.indexing.chunk_overlap 25After changing chunk size, existing collections must be re-indexed — the stored vectors were generated with a different chunk size and will produce inconsistent results if mixed with new ones:
indexed index create files -c my-docs -p ./docs --forceEmbedding Model
The default embedding model is all-MiniLM-L6-v2 — a 80 MB sentence-transformers model that balances retrieval quality with speed and size. It runs locally via ONNX Runtime.
Any model from the sentence-transformers collection on HuggingFace can be used:
indexed config set core.v1.embedding.model_name "paraphrase-multilingual-MiniLM-L12-v2"Changing the model invalidates all existing collections
Each embedding model produces vectors in a different mathematical space. If you change the model, you must re-index all existing collections — searching with mixed models produces garbage results. Run indexed index create ... --force for each collection after changing the model.
Stick with all-MiniLM-L6-v2 unless you have a specific reason to change — for example, multilingual content (use paraphrase-multilingual-MiniLM-L12-v2) or domain-specific retrieval.
Caching
Indexed caches parsed document representations so that re-indexing (e.g., after adding files) doesn't re-parse documents that haven't changed. The cache is used by default.
Bypass the cache when source files have changed but their timestamps are stale (e.g., after a git checkout that preserved mtimes):
indexed index create files -c my-docs -p ./docs --no-cacheRe-enable the cache explicitly (it is on by default):
indexed index create files -c my-docs -p ./docs --use-cache