Skip to content

Configuration

TokenSave works with defaults after installation. Keep project-specific indexing choices in .tokensave/config.json; machine-wide preferences belong in ~/.tokensave/config.toml. Avoid committing generated database files.

TokenSave respects .gitignore by default. To add project-specific exclusions, use .tokensave/config.json:

{
"exclude": ["**/build/**", "**/obj/**", "bin/**"]
}

Hidden directories are pruned by default. If you intentionally need a hidden source directory, explicitly include it and its descendants:

{
"include": [".github", ".github/**"]
}

Add .tokensave/ to .gitignore so local indexes are not committed.

Use tokensave install --agent <agent> to select an integration. Most agent configurations are global by default; --local uses project-scoped configuration where supported. For example:

Terminal window
tokensave install --local --agent opencode

Do not put credentials in the project configuration. TokenSave’s code index and retrieval run locally; optional public token telemetry is separate. See privacy and the maintained agent integration guide.