> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# anona-compute vault allowed-hosts

> Replace the hosts a secret may be sent to

```text
Replace the hosts a secret may be injected to
(PUT /v1/vault/secrets/{name}/allowed-hosts).

The list is replaced, not added to. Narrowing it takes effect in seconds: the
host agents poll for narrowed authorization and drop the cached value, rather
than waiting out its TTL.

A secret stored before allowed hosts existed has none recorded, and nothing may
use it until this command sets a list.
```

## Usage

```text
anona-compute vault allowed-hosts <name> [flags]
```

## Flags

| Flag | Type | Description |
| - | - | - |
| `--help`, `-h` | | help for allowed-hosts |
| `--host` | stringArray | a host this secret may be sent to (repeatable; required) |

Global flags (`--api-key`, `--api-url`, `--json`, `--output`, `--profile`, `--request-timeout`, `--verbose`) work on every command; see [anona-compute](/docs/cli/reference/anona-compute.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.