🔧 Công cụ lập trình•Mã nguồn mở•Đang hoạt động

CrabTrap

Proxy HTTP/HTTPS đặt giữa AI agents và internet để áp policy, chặn request nguy hiểm và ghi audit log đầy đủ cho mọi outbound call.

#crabtrap
Danh mục
🔧 Công cụ lập trình
Giá
Mã nguồn mở
GitHub Stars
⭐ 792
Ngôn ngữ
Go
License
MIT
Ngày thêm
2026-04-23
Tóm tắt từ README GitHub
CrabTrap An HTTP/HTTPS proxy that sits between AI agents and external APIs, evaluating every outbound request against security policies before it reaches the internet. If you run AI agents that call external services — Slack, Gmail, GitHub, or anything else — CrabTrap gives you guardrails. It intercepts every outbound HTTP/HTTPS request, checks it against deterministic rules and an LLM-based policy judge, and either forwards it or blocks it with a reason. Every request and decision is logged to PostgreSQL for a complete audit trail. Quickstart CrabTrap runs as a Docker container alongside PostgreSQL. See QUICKSTART.md for the full walkthrough — the short version: The proxy listens on , the admin UI is at and you can login to it with the $admin token. How It Works 1. Agent connects — set and to point at CrabTrap 2. TLS termination — CrabTrap generates a per-host certificate from a custom CA and decrypts the request 3. Static rules — the request is matched against URL pattern rules (prefix, exact, or glob). If a rule matches, the decision is immediate — no LLM call. Deny rules always take priority over allow. 4. LLM judge — if no static rule matches, the request is evaluate
Xem thêm từ README.md

Đánh giá chi tiết

Tổng quan

CrabTrap là một HTTP/HTTPS proxy đặt giữa AI agents và các external APIs, với mục tiêu kiểm soát outbound traffic bằng security policies trước khi request ra internet. Thay vì để agent tự do gọi Slack, Gmail, GitHub hay bất kỳ API nào khác mà không có lớp giám sát, CrabTrap đóng vai trò cổng kiểm duyệt, kiểm tra từng request qua static rules và một lớp LLM judge trước khi quyết định cho qua hay chặn lại.

Điểm mạnh của dự án này là nó giải một vấn đề rất thật trong agent security: khi agent được cấp khả năng gọi HTTP thì rủi ro không còn nằm ở prompt nữa, mà nằm ở quyền hành động với hệ thống ngoài. CrabTrap thêm guardrails có thể audit được, có SSRF protection, rate limiting, TLS interception và lưu toàn bộ quyết định vào PostgreSQL. Với team nghiêm túc về AI safety và production governance, đây là một tool rất đáng chú ý.

Tính năng chính

  • Chặn hoặc cho phép outbound HTTP/HTTPS requests theo policy
  • Kết hợp static rules và LLM judge để đánh giá request
  • Ghi audit log đầy đủ cho mọi request, decision và response
  • Có SSRF protection, rate limiting, circuit breaker và fallback policy
  • Dùng như một lớp guardrail nằm trước các external APIs mà agent được phép gọi

Ai nên dùng

Hợp với team vận hành AI agents trong môi trường production, đặc biệt khi agent có khả năng gọi API ngoài và cần lớp kiểm soát/audit rõ ràng.

Hạn chế

  • Setup phức tạp hơn nhiều so với việc cho agent gọi thẳng HTTP
  • TLS interception và proxy layer đòi hỏi hiểu vận hành, chứng chỉ và network flow
  • Giá trị lớn nhất chỉ có khi bạn thật sự quan tâm security, governance và compliance cho agent traffic
CrabTrap | Atlas for AI