@@ -34,7 +34,7 @@ write it.
3434
3535When an agent task needs shared env, check the relevant Infisical project/path
3636first. Do not recreate workspace ` .env ` symlinks, devbox-env generated files,
37- or 1Password service-account refresh stacks.
37+ token caches, or 1Password service-account refresh stacks.
3838
3939For services and agents:
4040
@@ -71,9 +71,9 @@ One-time setup:
7171The helper prompts locally for the Infisical domain, project ID, environment,
7272Universal Auth client ID, and Universal Auth client secret. Use the client ID
7373shown under the machine identity's Universal Auth method, not the machine
74- identity ID shown in the identity details panel. Humans should source the
75- initial client ID/secret from their secret manager, usually 1Password or
76- Infisical, and enter them locally. Do not paste them into agent chat.
74+ identity ID shown in the identity details panel. Humans should source those
75+ values from their secret manager, usually 1Password or Infisical, and enter them
76+ locally. Do not paste them into agent chat.
7777
7878It writes non-secret selectors to ` ~/.config/uinaf/devbox.env ` and machine
7979credentials to ` ~/.config/uinaf/infisical-machine.env ` . Both files must be mode
@@ -86,27 +86,31 @@ Routine command-boundary use:
8686
8787``` sh
8888./scripts/secrets/infisical-devbox-run.sh -- sh -c '
89+ mkdir -p "$HOME/.config/example"
8990 infisical export \
9091 --domain "$INFISICAL_DOMAIN" \
9192 --token "$INFISICAL_TOKEN" \
9293 --projectId "$INFISICAL_PROJECT_ID" \
9394 --env "$INFISICAL_ENV" \
94- --path "/example-devbox/openclaw -env" \
95+ --path "/example-devbox/runtime -env" \
9596 --format dotenv \
96- --output-file "$HOME/.openclaw/ .env" \
97+ --output-file "$HOME/.config/example/runtime .env" \
9798 --silent
99+ chmod 600 "$HOME/.config/example/runtime.env"
98100'
99-
100- chmod 600 " $HOME /.openclaw/.env"
101101```
102102
103- For non-OpenClaw services, replace the output file with the runtime-specific
104- file or run the service command through ` infisical-devbox-run.sh ` .
103+ Replace the output file with the runtime-specific file or run the service
104+ command through ` infisical-devbox-run.sh ` .
105105
106106Do not create additional hidden helper scripts, token caches, shell exports, or
107107runtime dotenv refresh stacks outside this contract. If another unattended
108108refresh mechanism becomes necessary, document and verify that mechanism first.
109109
110+ If setup fails with ` Invalid credentials ` , check that the ID came from the
111+ Universal Auth method. The machine identity ID in the details panel is not a
112+ Universal Auth client ID and cannot mint a token.
113+
110114## Agent SSH Key Storage
111115
112116Devbox agent SSH keys may be stored as Infisical secrets. This keeps the key in
@@ -229,7 +233,7 @@ INFISICAL_CLIENT_SECRET=...
229233```
230234
231235Keep both files out of Git. Do not create repo-local workspace ` .env ` symlinks
232- for agent/OpenClaw runtime env.
236+ for agent runtime env.
233237
234238If a devbox identity does not run process-compose, set
235239` PROCESS_COMPOSE_ENABLED=0 ` in its local config so verification does not
0 commit comments