json config

Windsurf

Add a JSON config block to .windsurf/settings.json. Restart Windsurf and governance is live.

API key required

You need a Neptrix API key to complete this setup. Sign up free to get one.

Installation

  1. 1Copy the configuration below
  2. 2Create or open .windsurf/settings.json in your project root
  3. 3Replace YOUR_API_KEY with your key
  4. 4Restart Windsurf to apply
Add this configuration to.windsurf/settings.json
.windsurf/settings.json
1{
2 "governance": {
3 "preToolUse": {
4 "endpoint": "https://qpthort-backend-production.up.railway.app/hooks/claude-code/pre-tool-use",
5 "headers": {
6 "x-api-key": "YOUR_API_KEY"
7 }
8 }
9 }
10}

Replace YOUR_API_KEY with your API key. Sign up to get your key.

How it works

1

Agent proposes action

Before each tool call, your agent sends the proposed action to Neptrix for evaluation.

2

Neptrix evaluates

Constitutional governance rules evaluate the action. The decision is logged to your audit trail.

3

Decision returned

ALLOW, BLOCK, ESCALATE, or MODIFY. Agents auto-discover — no registration needed.

Ready to govern your agents?

Create a free account, generate an API key, and have governance running in under 5 minutes.

Get started for free