---
title: thv secret provider
hide_title: true
description: Reference for ToolHive CLI command `thv secret provider`
last_update:
  author: autogenerated
slug: thv_secret_provider
mdx:
  format: md
---

## thv secret provider

Set the secrets provider directly

### Synopsis

Configure the secrets provider directly.

Note: The "thv secret setup" command is recommended for interactive configuration.

Use this command to set the secrets provider directly without interactive prompts,
making it suitable for scripted deployments and automation.

		Valid secrets providers:
		  - encrypted: Full read-write secrets provider using AES-256-GCM encryption
		  - 1password: Read-only secrets provider (requires OP_SERVICE_ACCOUNT_TOKEN)
		  - environment: Read-only secrets provider from TOOLHIVE_SECRET_* env vars

```
thv secret provider <name> [flags]
```

### Options

```
  -h, --help   help for provider
```

### Options inherited from parent commands

```
      --debug   Enable debug mode
```

### SEE ALSO

* [thv secret](thv_secret.md)	 - Manage secrets

