Coral: open-source gateway where agents write their own tools
Coral is an open-source gateway that you can self-host, and it sits between AI agents and the systems they work with. It works with any agent that supports MCP[1] and with any system that has an API. You can install it as a desktop app for macOS, Linux or Windows, or run a shared server with Docker Compose or Kubernetes. A provider can be picked from a catalog or added from your own OpenAPI[2] document or MCP server.
Coral checks every call against your policy before it reaches the system. For each tool you can allow it, block it, or require a person to approve that exact call and its arguments. Agents write short TypeScript programs that run in a sandbox[3] with no secrets and no network access. Coral stores the credentials and adds them to each call, so agents never hold them.
When a program works, the agent saves it as a private custom tool, and a workspace owner can publish it as a shared tool for the whole team. In a benchmark of 34 tasks, custom tools cut tokens by 37%, cost by 31% and time by 29%. Coral is licensed under the Apache License 2.0, and Coral Enterprise adds SSO with SAML, SCIM provisioning, advanced RBAC and an immutable audit log.
Read the original github.comDiscussion
Discussion
Commenters are mostly positive: several have used or tested Coral and plan to try or evaluate it, and one says granular controls will matter more as agents get write access. One commenter asks about lessons from deploying it at customers, and no answer is given in the comments.
Links from the post and discussion
- Short demo video from the author's post youtube.com
- Tasks behind the custom tools benchmark withcoral.com
- Post on how a Slackbot works better with Coral withcoral.com
Sources
-
GitHub
Show HN: Coral – Open-source gateway where agents write their own tools




