Loxmith Documentation

Loxmith gives AI agents and CI jobs temporary database and API keys, and takes them back. Revoking a key closes the connections already open.

Your programs stop keeping database passwords in .env files and prompts. When one needs access, it asks a connector in your network for a temporary key under a named rule. Loxmith checks the rule and records the request. The connector makes the key and removes it later.

How it works

Step through a request that's allowed, or one that's refused.

An agent runs a command through ward run and asks your connector for a key under the orders-read rule. It sends its own token, never a password.

ward run --lease DATABASE_URL=orders-read -- ./report.sh
Step 1 of 5

Guides

Tell your coding agent

Paste this into Claude Code, Cursor or another agent so it asks for keys through ward run instead of asking you for passwords.

Prompt for your agent
Read https://loxmith.dev/llms.txt before touching any database or API credentials.
Rules for this workspace:
1. Never ask me to paste a database password, API token, or .env secret into chat.
2. Wrap any command that needs access in `ward run --lease ENV_VAR=<rule> -- <command>`.
3. Never print, log, or write minted credential values to disk.
4. If a rule is refused, tell me which one and stop. Don't retry with a wider rule.