Let's get you set up
Follow the steps for your platform. Most installs take under 10 minutes — and one deleted line undoes everything if you change your mind.
Your Guardrails API key
gr_your_key_hereKeep this secret — it identifies your company. It's also in your dashboard under Settings.
Where does your AI live?
Open a terminal in your project
Windows: open your project folder in File Explorer, click the address bar, type cmd and press Enter.
Mac: open Terminal, then type cd (with a space), drag your project folder onto the window, press Enter.
Find where your AI client is created
Run this to locate the file (works in any terminal with git, or use your editor's search for new Anthropic or new OpenAI):
# Windows (cmd) findstr /s /n "new Anthropic new OpenAI" *.js *.ts # Mac/Linux grep -rn "new Anthropic\|new OpenAI" --include="*.ts" --include="*.js" .
Add the proxy settings
Open that file in your editor. You'll see something like the "before". Make it match the "after" — your real key is already filled in:
// BEFORE
const client = new Anthropic({
apiKey: process.env.ANTHROPIC_API_KEY,
})
// AFTER
const client = new Anthropic({
apiKey: process.env.ANTHROPIC_API_KEY,
baseURL: 'https://aegisguardrails.com/anthropic',
defaultHeaders: {
'X-Audit-Key': 'gr_your_key_here',
'X-Provider-Key': process.env.ANTHROPIC_API_KEY, // your existing Anthropic key (starts with sk-ant-)
},
})process.env.ANTHROPIC_API_KEY means "read my Anthropic key from the .env file." If your project doesn't use a .env file, you can paste the key directly instead: 'X-Provider-Key': 'sk-ant-your-key-here'
Using OpenAI? Same change, but the URL ends in /openai.
Restart your app
# however you normally run it, e.g. npm run dev
Confirm it's working
Use your app — ask the AI anything. Then open your console → Audit Events. Your call appears within seconds; after ~30s its status flips to committed (sealed on the blockchain).
✓ How you'll know it worked
Make one AI call from your app, then open your compliance console. The call appears under Audit Events within seconds. After ~30 seconds the status turns committed— your record is permanently sealed on the Verilink'ed blockchain. From then on, every AI conversation is provable.
Saves a personalized file for the platform selected above, with your API key already filled in.