Skip to content

vibe trust / untrust

The trust and untrust commands manage the trust status of configuration files.

Terminal window
# Trust configuration files
vibe trust
# Untrust configuration files
vibe untrust

vibe uses SHA-256 hash verification to ensure configuration files haven’t been tampered with. This prevents malicious scripts from running through hooks.

  1. First time: Run vibe trust to register the hash of .vibe.toml and .vibe.local.toml
  2. Subsequent runs: vibe verifies the hash before running any hooks
  3. File changes: If the file changes, you’ll need to re-run vibe trust

Registers the current configuration files as trusted by storing their SHA-256 hashes.

Terminal window
$ vibe trust
Trusted .vibe.toml (hash: abc123...)
Trusted .vibe.local.toml (hash: def456...)
  • .vibe.toml (if exists)
  • .vibe.local.toml (if exists)

Removes trust for configuration files in the current repository.

Terminal window
$ vibe untrust
Untrusted .vibe.toml
Untrusted .vibe.local.toml

If a configuration file has been modified since trusting:

Terminal window
$ vibe start feat/new-feature
Error: .vibe.toml hash mismatch.
The file has been modified since last trusted.
Run 'vibe trust' to re-trust the file.

vibe stores multiple hashes per file (up to 100), so you can switch between branches without re-trusting (as long as you’ve trusted each branch’s version at least once).