Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs(agent-vault/proxies): clarify enrollment steps

Adrian Kahali11e34cda8261
diff --git a/docs/documentation/platform/agent-vault/proxies.mdx b/docs/documentation/platform/agent-vault/proxies.mdx
index 5d209c2dc9..57c09e49d4 100644
--- a/docs/documentation/platform/agent-vault/proxies.mdx
+++ b/docs/documentation/platform/agent-vault/proxies.mdx
@@ -82,19 +82,19 @@ The commands look like this:
### Command flags
-Here's a list of available flags for the [`infisical agent-vault proxy`](/cli/reference#agent-vault-proxy) command:
+The enrollment command uses these flags:
-| Option | What it sets |
-|--------|--------------|
-| `--enrollment-token` | The one-time token from the **Enrollment Token** dialog. You can set `INFISICAL_AGENT_VAULT_ENROLLMENT_TOKEN` instead |
-| `--domain` | Your Infisical instance URL. It defaults to Infisical Cloud (US), and the commands in the dialog already include your instance's URL |
-| `--port` | The port the proxy listens on. It defaults to `17323` |
-| `--data-dir` | Where the proxy keeps its state. See [state directory](#state-directory) |
+- `--enrollment-token` is the one-time token from the **Enrollment Token** dialog. Instead of passing the flag, you can set the token in the `INFISICAL_AGENT_VAULT_ENROLLMENT_TOKEN` environment variable.
+- `--domain` is your Infisical instance URL. It defaults to Infisical Cloud (US), so you need it for EU Cloud or a self-hosted instance. If you prefer, you can set the URL in the `INFISICAL_DOMAIN` environment variable instead of passing the flag
<Note>
Other users on the machine can read anything on a command line. To keep the enrollment token off it, put `INFISICAL_AGENT_VAULT_ENROLLMENT_TOKEN=<enrollment-token>` in a file with mode `0600`, and pass the file with `--env-file` for Docker or `EnvironmentFile=` for systemd. You can delete the file once the proxy has enrolled.
</Note>
+<Info>
+ For the proxy's other flags, such as the port and the state directory, check out the [`agent-vault proxy` CLI reference](/cli/reference#agent-vault-proxy).
+</Info>
+
### State directory
When the proxy enrolls, it generates its own certificate authority and saves it with its enrollment in a state directory at `~/.infisical/agent-vault` (or `/etc/infisical/agent-vault` if you run the proxy as the root user on the machine).