.kiwi/ state.
When to use multi-space
- Separate team wikis on one host (engineering vs product).
- Per-tenant isolation in self-hosted deployments.
- A default space plus dynamically provisioned workspaces.
Configure spaces
- config.toml
- CLI flags
.kiwi/config.toml
The first registered space is the default — requests without a space identifier route there.
Request routing
Resolution order:Space admin API
Dynamic spaces persist to
.kiwi/spaces.json under the first space’s root and restore on restart.
See Spaces API for curl examples.
Per-space auth
Withauth.type = "perspace", API keys scope to a single space:
.kiwi/config.toml
MCP
Use--space <name> when the knowledge root hosts multiple configured spaces:
Related documentation
Configuration
[[spaces]] config syntax.Spaces API
REST CRUD for space management.