52 points · by jcs · 2w ago · 24 comments
Coral is an open-source, self-hosted gateway that sits between your agents and the systems they work on. Agents call tools by writing short TypeScript programs that they can save as custom tools to reuse.
You can publish custom tools for groups of agents, so your team’s library of tools adapts to your unique systems, data and use cases. Custom tools help agent performance and give more precise units of permission control.
Here’s a short demo: https://www.youtube.com/watch?v=p0PKOlHLyVI
We started on this while building an AI SRE. To investigate an incident, the agent had to connect the dots across an ocean of telemetry data and undocumented relationships across internal and external systems. It took broad permissions, a lot of tokens and it would start from scratch the next time.
We built Coral so that the agent remembers the route. Once a task succeeds, the agent writes the steps that worked into a program and saves it as a custom tool. Next time, the agent finds that custom tool in the same search as standard provider tools (e.g. Datadog, Slack), and reuses it. It started with SRE, but we (and our early users) now use Coral for agent work across the org.
For our tasks across GitHub, Linear and Slack with Opus 5.5, custom tools help agents work 29% faster, at 31% lower cost (tasks here: https://withcoral.com/docs/examples/custom-tools).
Coral builds on code mode, adding custom tools, policy controls and managed identities. Each program runs in a V8 isolate with no network access or credentials. Coral checks every tool call against workspace policy before attaching credentials and forwarding it to the provider. You can configure each provider to use the caller’s own account, so teammates can share tools without sharing API tokens. (e.g. https://withcoral.com/blog/slackbot-works-better-with-coral)
Coral is written in Rust, and you can run it as a desktop app or as a shared server. The core is Apache 2.0 and has no limits on users, agents or volume. Everything I've described here is in the OSS edition. SAML, SCIM, and org-wide governance features will be available soon under an enterprise licence.
We'd love for you to try it and share your feedback. You can download it here https://withcoral.com/download.
I'll be in the comments here and on Slack: https://withcoral.com/slack
Looks like this is already used in real world by your customers. Any learnings you can share for deployment?
- Starting locally with the desktop app helps is a great way to figure out Coral out before investing in the shared server deployment. The shared server needs you to bring your own IdP, among other things.
- Don't design custom tools up front. Let agents discover what they need, but keep the human in the loop to review additions/updates.
- Decide how you want your users to authenticate with the upstream provider (shared token vs. as themselves). Most prefer the latter when possible, and accept users will need to complete a one off OAuth flow for each provider. We're working on ID-JAG support to streamline this step.
At the moment, we see teams solve this in two opposite ways:
- building their own generic artefact host (essentially a host for the html/css) and letting users (employees) create whatever they want. Coral handles all the data access and policy on the backend
- the other way is a much more limited form factor, essentially a set of HTML templates, for creating dashboards or mini widgets. Again, all data access is offloaded to Coral.
Both work really nicely.
How to prompt a user/agent to visit this page is a fun on. Short version: we started with MCP elicitation, but harnesses today implement it wildly differently. Claude Desktop has had an issue open since August where it just auto answers "decline" on every elicitation (https://github.com/anthropics/claude-code/issues/89858). Under some settings, Codex does the opposite.
Now we return the URL in the tool call response as the next action, and where supported, send a prettier approval dialogue as an MCP App.
> Don't solicit upvotes, comments, or submissions. Users should vote and comment when they run across something they personally find interesting—not for promotion.