Codex

OpenAI Codex fetches scoped credentials from Clavitor through clavitor-cli — or calls HTTPS APIs without seeing the secret at all through the local credential proxy (127.0.0.1:1983) — under a dedicated client (default quota: 3 distinct entries per minute, 10 per hour; search capped at 5 matching titles; cannot list the vault). Free plans include 1 agent and 10 entries; paid plans include 3 agents per user and unlimited entries.

1. Enroll the CLI

Create a scoped CLI client in the vault (agent setup) — named for example "Codex" — and run clavitor-cli init '<blob>' on the machine where Codex runs, entering the enrollment key at the prompt rather than on the command line:

clavitor-cli init '<blob>'

Paste the blob between the quotes, then the key at the prompt.

2. Give Codex the instructions

Append the built-in instructions directly to your project's AGENTS.md with clavitor-cli skill print >> AGENTS.md (clavitor-cli skill install auto-detects only Claude Code and OpenClaw). To read them first:

clavitor-cli skill print

Codex reads project instructions from AGENTS.md. Append the printed text there:

clavitor-cli skill print >> AGENTS.md

The instructions tell the agent to fetch one credential at a time, only when it needs it, to find the exact title with clavitor-cli find, and never to make a secret the output of a command. Claude Code summarises them.

What it looks like

Codex resolves the exact entry title with clavitor-cli find and substitutes the key inline with $(clavitor-cli get …) — or pipes clavitor-cli render directly into a program's stdin — so no secret is written to disk or echoed to output:

clavitor-cli find openrouter
curl -H "Authorization: Bearer $(clavitor-cli get OpenRouter --field key)" https://openrouter.ai/api/v1/models

For a config file with several secrets, Codex uses render and pipes the result into the program:

clavitor-cli render app.config.json | myapp --config -

Limits worth knowing

The AGENTS.md instructions are guidance for the model; the vault itself enforces four hard boundaries — entry scopes, the read quota (default 3 distinct entries/minute, 10/hour; locked on a second hourly overrun within 2 hours), IP pinning, and blocking all Identity-encrypted fields.

  • Codex can read only the entries in the client's scopes, and in those only the title, the web addresses and credential-encrypted fields. Identity-encrypted fields stay closed.
  • The read quota applies, and a client that keeps going over its limit is locked until you unlock it.
  • Scope the client accordingly.