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. API keys come with Neptrix for teams, our hosted platform, which is in closed beta. Request access.
Installation
- 1Copy the configuration below
- 2Create or open .windsurf/settings.json in your project root
- 3Replace YOUR_API_KEY with your key
- 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. Request access to Neptrix for teams.
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.
Neptrix for teams is in closed beta.
Request access to Neptrix for teams, or ask for Neptrix Hub and govern your agents on your own machine.
