AgentHub
AgentHub solves a real problem in AI-native development: how do you give an AI coding assistant access to production resources without losing control of what it can do?
- Category
- AI infrastructure tool
- Status
- deployed
- Role
- Founder · Product Engineer · AI Integration Lead
- Built with
- Next.js, TypeScript, Tailwind CSS, Clerk, Supabase, Model Context Protocol
What it does
A reverse proxy that sits between AI coding clients and Model Context Protocol servers. Every tool call passes through authentication, an SSRF firewall, and a policy engine, and every outcome, allowed or blocked, is written to an audit log. Policies are set per tool as allow, block, read-only, or require-approval, and approval requests go out over Slack with a five-minute window.
The problem it addresses
AI coding assistants need access to databases, APIs, and infrastructure to be genuinely useful. Giving them broad access creates real security and compliance risks.
Key decisions
- Design around least-privilege access. Agents get the minimum access required for each task.
- Make audit trails a first-class feature so every action is traceable.
- Human approval gates for high-risk operations rather than blocking all sensitive access.
Built with
Next.js, TypeScript, Tailwind CSS, Clerk, Supabase, Model Context Protocol.
Known limitations
- This is a founder-built personal project, not a production enterprise tool.
- Policy enforcement is limited to the integrations currently supported.
- Security properties have not been formally audited.
What this demonstrates
- The hardest part of secure agent design is defining the right granularity of access policies.
- Audit trails are only useful if they are easy to read, not just technically present.
Demo video
No demo video yet. Explore the live demo or repository to see this project in action.
Why this exists
AI coding assistants became useful the moment they could touch real systems. That is also the moment they became a security problem.
Under the Model Context Protocol, each tool an assistant can use runs as its own server, typically on a local port, usually with no authentication, no access control, and no record of what was called. When an assistant can run a database write, delete a file, or make an outbound API call, no record stops being an inconvenience. You cannot answer who approved this, or whether anyone agreed to it in advance.
How it works
AgentHub sits between the AI client and the tool servers as a reverse proxy. Every call passes through authentication, a security boundary, and a policy engine, and every outcome, allowed or blocked, is written to an audit log.
Policies are set per tool and there are four levels: allow, block, read-only, and require-approval. Read-only is the interesting one, because it detects write operations by naming convention and blocks them without needing a hand-written rule for every tool in the catalogue.
The security boundary blocks request forgery attempts at the point where they matter. Private IP ranges, cloud metadata endpoints, internal hostnames, and shell metacharacters in tool arguments.
When a tool is set to require approval, the request pauses, a pending record is created, the approver is notified with the tool name and the arguments, and the call waits. If nobody answers inside five minutes, it does not run.
The audit log records the user, the tool, the arguments, the response status, the caller's address, and which administrator approved it.
The decision that shaped the product
Making approval a gate rather than a wall.
The secure default in this category is to deny everything sensitive, which is safe and useless. A developer whose assistant cannot read the staging database gets no value, turns the gateway off, and a security tool that gets turned off protects nothing.
So high-risk operations pause instead of failing. The assistant keeps working, a human gets a decision they can make in ten seconds, and the access stays narrow. Reviewability mattered as much as enforcement. An audit trail that only a security engineer can parse gets opened once, during an incident. An audit trail that reads like a log gets looked at.
What it does not do
Enforcement covers the integrations currently supported, not every tool server that exists. The security properties have not been formally audited. This is a founder-built project rather than a product with a compliance certificate attached to it.
What to take from this
If you give an agent access to production, the useful questions are what it can reach, what it can do once it gets there, and who finds out afterwards. Least privilege is the easy part. Knowing what happened is the part that gets skipped.