Search docs
Use PromptVeil
Coding-agent setup
Use the local prompt hook on a supported host. Native hook installation needs a POSIX shell. Check the compatibility matrix before depending on a particular client, OS, or authentication mode.
Install a native guard
Install the CLI first. Preview and inspect the proposed change before applying it. Use the agent name from the following table in each command.
| Agent | Name | Where to verify |
|---|---|---|
| Claude Code | claude-code | Restart and review the UserPromptSubmit guard under /hooks. |
| Codex | codex | Restart and review and trust the PromptVeil entry under /hooks. |
| Cursor Agent Chat | cursor | Check the local Agent Chat configuration and run a synthetic prompt. |
| Gemini CLI | gemini | Restart and verify the BeforeAgent hook with a synthetic prompt. |
promptveil install claude-code
promptveil install claude-code --apply
promptveil doctor claude-code
Verify and remove the guard
Send an ordinary synthetic prompt first, then use the fictional customer-support example. The native guard should pause the flagged submission. Run the prompt through the CLI and resubmit the protected text. To remove the hook, run promptveil uninstall claude-code --apply with your actual agent name.
Optional Codex relay
The relay handles supported text and inline PNG/JPEG requests through a dedicated local provider configuration. Attach an image normally in the routed Codex session, or use codex exec --image ./fixture.png. The relay scans and re-encodes supported images automatically before forwarding. Native prompt hooks still check prompt text. See the relay installation and verification steps and the privacy boundary.
Other coding agents
A client that supports a configurable OpenAI Responses API endpoint can use the same automatic protection path if it sends inline PNG or JPEG data. Point that client at the loopback relay using base URL http://127.0.0.1:8787/v1 and the relay token. The relay holds the upstream OpenAI API key separately. Verify the client and attachment flow with fictional data before relying on it.
The relay handles OpenAI Responses requests. Other endpoints and provider protocols need their own integration. Native hooks can only inspect the data each client exposes, and a client may send attachments outside its prompt hook. Use the protected image from the browser composer with any client that accepts PNG attachments.