any framework

REST API

Integrate Neptrix governance into any custom agent or framework with a single POST request before each action.

API key required

You need a Neptrix API key to complete this setup. API keys come with hosted beta access, and the hosted platform is currently in closed beta. Join the waitlist for access.

Installation

  1. 1Replace YOUR_API_KEY with your key
  2. 2Modify the plan fields to match your agent’s action
  3. 3Send the request before each agent action
  4. 4Check the response: ALLOW, BLOCK, ESCALATE, or MODIFY
Add this configuration toTerminal
Terminal
1curl -X POST https://qpthort-backend-production.up.railway.app/plans/submit \
2 -H "x-api-key: YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "plan_id": "plan-001",
6 "agent_id": "my-agent",
7 "task_id": "task-001",
8 "action_type": "WRITE",
9 "action_detail": {
10 "target": "/path/to/file",
11 "operation": "create",
12 "data_scope": ["SOURCE_CODE"],
13 "reversible": true,
14 "estimated_duration": "short"
15 },
16 "reasoning": "Creating a new configuration file",
17 "confidence": 0.9
18 }'

Replace YOUR_API_KEY with your API key. Join the waitlist for hosted access.

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.

The hosted platform is in closed beta.

Join the waitlist for first access when it reopens - or download the desktop beta and govern your agents on your own machine today.