mate
llms.txt112 starsChanged 42 days agoApache-2.0View on GitHub
MATE is a self-hosted, open-source control layer for AI agents in production, on Google ADK or LangGraph. Agents, their models, prompts, tools and who may use them are configured in a web dashboard, without a code change or a redeploy. It adds workspaces for several organisations on one installation, cost in US dollars with budgets and alerts, approvals before sensitive tool calls, guardrails, evals and a Playground, an embeddable chat widget, Slack, MCP, A2A and an OpenAI-compatible API, and an…
- Reads credentials
The file
Files
# MATE > MATE is a self-hosted, open-source control layer for AI agents in production, on Google ADK or LangGraph. Agents, their models, prompts, tools and who may use them are configured in a web dashboard, without a code change or a redeploy. It adds workspaces for several organisations on one installation, cost in US dollars with budgets and alerts, approvals before sensitive tool calls, guardrails, evals and a Playground, an embeddable chat widget, Slack, MCP, A2A and an OpenAI-compatible API, and an audit trail toward the EU AI Act. Source: https://github.com/antiv/mate (Apache 2.0). Run it with `docker run -p 8000:8000 -e AUTH_PASSWORD=change-me -e GOOGLE_API_KEY=your-key ghcr.io/antiv/mate:latest` and open http://localhost:8000. The links below are the documentation in the repository, as Markdown. Each page starts with a short YAML header (title, summary, and the code it covers). The reference pages are generated from the code. ## User guides - [Getting started](https://raw.githubusercontent.com/antiv/mate/main/docs/user/getting-started.md): Sign in, find your way around the three spaces, create a first agent and talk to it. - [Help in the dashboard](https://raw.githubusercontent.com/antiv/mate/main/docs/user/help.md): Ask the built-in help agent how to do something; it answers from this documentation. - [Agents](https://raw.githubusercontent.com/antiv/mate/main/docs/user/agents.md): Create and configure agents, connect them into a tree, and control who can use them. - [Workflow (graph) agents](https://raw.githubusercontent.com/antiv/mate/main/docs/user/workflow-agents.md): Route between sub-agents with a graph: conditional edges, routers, retries and approval. - [Agents you already run elsewhere](https://raw.githubusercontent.com/antiv/mate/main/docs/user/external-agents.md): Put an agent that runs outside MATE under MATE's roles, guardrails, evals and usage tracking. - [Fallback model](https://raw.githubusercontent.com/antiv/mate/main/docs/user/fallback-model.md): Answer from a second model when an agent's own model fails. - [Tools and MCP servers](https://raw.githubusercontent.com/antiv/mate/main/docs/user/tools-and-mcp.md): Give an agent built-in tools, connect external MCP servers, and require approval before a tool runs. - [Subagent delegation](https://raw.githubusercontent.com/antiv/mate/main/docs/user/subagent-delegation.md): Let an agent split a task and run temporary helper agents in parallel. - [Approvals](https://raw.githubusercontent.com/antiv/mate/main/docs/user/approvals.md): Approve or reject the tool calls agents paused on when nobody was chatting, and look up every decision. - [Memory blocks](https://raw.githubusercontent.com/antiv/mate/main/docs/user/memory-blocks.md): Shared, named notes that agents read and update, with history and restore. - [File search (RAG)](https://raw.githubusercontent.com/antiv/mate/main/docs/user/file-search.md): Give an agent documents to search when it answers. - [Instructions loaded from memory blocks](https://raw.githubusercontent.com/antiv/mate/main/docs/user/dynamic-instructions.md): Keep an agent's instruction short and load the detailed rules from memory blocks at run time. - [Work Room](https://raw.githubusercontent.com/antiv/mate/main/docs/user/work-room.md): Chat with agents, return to earlier conversations, and use the coding and browser panels. - [Triggers](https://raw.githubusercontent.com/antiv/mate/main/docs/user/triggers.md): Run an agent on a schedule or from a webhook and send the result somewhere. - [Templates](https://raw.githubusercontent.com/antiv/mate/main/docs/user/templates.md): Start from a ready-made set of agents, keep it in sync, and turn your own agents into a template. - [Evals](https://raw.githubusercontent.com/antiv/mate/main/docs/user/evals.md): Test cases that score an agent's answers, so you can tell whether a change made it better or worse. - [Website widget](https://raw.githubusercontent.com/antiv/mate/main/docs/user/widget.md): Put an agent on a website as a chat button, and control where it may be embedded. - [Slack](https://raw.githubusercontent.com/antiv/mate/main/docs/user/slack.md): Let people talk to an agent by mentioning it in a Slack channel or messaging it directly. - [Rate limits and budgets](https://raw.githubusercontent.com/antiv/mate/main/docs/user/rate-limits.md): Cap how many requests, tokens and dollars a user, an agent, a project or the whole workspace may use, and choose what happens at the cap. - [Users and roles](https://raw.githubusercontent.com/antiv/mate/main/docs/user/users-and-roles.md): Who counts as an administrator, how roles open agents to people, and how user records are created and cleaned up. - [Workspaces](https://raw.githubusercontent.com/antiv/mate/main/docs/user/workspaces.md): Give another team or customer its own agents, people, budget and logs on the same installation, from creating the workspace to suspending it. - [Personal access tokens](https://raw.githubusercontent.com/antiv/mate/main/docs/user/personal-access-tokens.md): Create a token to call your agents from other tools, through the OpenAI-compatible API or as MCP servers, and revoke it when you are done. - [Guardrails](https://raw.githubusercontent.com/antiv/mate/main/docs/user/guardrails.md): Automatic checks on what people send an agent and on what it answers, and the log of every time one fired. - [Usage and audit logs](https://raw.githubusercontent.com/antiv/mate/main/docs/user/usage-and-audit.md): See how much your agents are used and how well they answer, and the record of who changed what. - [Alerts](https://raw.githubusercontent.com/antiv/mate/main/docs/user/alerts.md): Be told by webhook, Slack, Discord or email when an agent starts failing, keeps falling back to its fallback model, guardrails fire repeatedly, or a token or dollar budget is nearly used up. - [Sessions and traces](https://raw.githubusercontent.com/antiv/mate/main/docs/user/sessions-and-traces.md): Look inside a conversation to see what an agent was asked, which tools it called and what the model returned. - [Trace Replay](https://raw.githubusercontent.com/antiv/mate/main/docs/user/trace-replay.md): Play a traced conversation back on the Visual Builder canvas to see which agent ran when, on which model, and for how long. - [Agent Builder Wizard and shop orders](https://raw.githubusercontent.com/antiv/mate/main/docs/user/wizard.md): Let prospects build and try an agent on your website, then follow up on the leads and orders that come in. - [Settings](https://raw.githubusercontent.com/antiv/mate/main/docs/user/settings.md): Server-wide defaults an admin sets in the dashboard, the default image model and model prices. - [Model groups](https://raw.githubusercontent.com/antiv/mate/main/docs/user/model-groups.md): An agent names a group, such as group/coding, and a platform administrator says which models are in it. - [EU AI Act](https://raw.githubusercontent.com/antiv/mate/main/docs/user/eu-ai-act.md): What the AI Act asks of someone running an agent, and what MATE does and does not do about it. - [Demo: Murder at the Villa](https://raw.githubusercontent.com/antiv/mate/main/docs/user/demo-murder-mystery.md): A murder-mystery game built from MATE agents, as a worked example. ## Developer guides - [Architecture](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/architecture.md): The two server processes, what each owns, and the path one chat message takes through them. - [Agent runtime](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/agent-runtime.md): How an agent row becomes a running agent, which callbacks wrap every model call, and how the ADK and LangGraph runtimes differ. - [LangGraph runtime](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/langgraph-runtime.md): Run the agent server on LangGraph instead of ADK: how it works, what is supported, what differs. - [Writing a tool](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/writing-a-tool.md): Add a built-in tool: the module, its registration in the tool factory, the dashboard switch, tests and docs. - [Authentication and access control](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/auth-and-access.md): Every way a caller proves who they are, and the separate layers that decide what they may do. - [Single sign-on setup](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/sso-setup.md): Set up Google and GitHub sign-in, restrict who may sign in, and secure sessions. - [Content-Security-Policy](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/content-security-policy.md): What the CSP allows, how to move from report-only to enforce, and how to add a host. - [Dashboard components](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/dashboard-components.md): The m- classes, the shared table and the dialog helper that new dashboard pages are built from. - [OpenAI-compatible API and MCP exposure](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/openai-api-and-mcp.md): Call MATE agents from tools that speak the OpenAI chat-completions protocol or MCP. - [OpenAI-compatible API: clients and details](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/openai-compatibility.md): Configure coding assistants against MATE, with personal access tokens and tool calling in detail. - [A2A (agent-to-agent)](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/a2a.md): Expose MATE agents over the A2A protocol. - [Exposed MCP servers](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/mcp-servers.md): The MCP servers MATE serves (images, Google Drive, agents): endpoints, tools and client setup. - [Database and migrations](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/database-and-migrations.md): The three supported databases, how the schema is migrated, and how to add a migration without breaking a dialect. - [Trigger engine](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/trigger-engine.md): How triggers are scheduled, authenticated, executed and routed, and where to extend them. - [Upgrading from 1.x to 2.0](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/upgrading-to-2.0.md): What to do before, during and after moving a 1.x installation to 2.0, what the first start changes, and how to go back. - [Approval requests](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/approvals.md): How a require_confirmation pause is recorded, answered once by whoever may answer it, resumed, announced, expired and cancelled, on both runtimes. - [Deployment](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/deployment.md): Run MATE locally, in Docker and in production, and package one agent as a standalone application. - [Standalone build](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/standalone-build.md): Package one agent tree as a desktop application: build steps, options and limits. - [Releases and maintenance branches](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/releases.md): How a release is cut from a tag, and how a patch for an older minor version is made on a release branch. - [Browser tests](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/browser-tests.md): The test that opens every dashboard page in headless Chromium, what it counts as broken, and how to run it. - [Tracing](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/tracing.md): Turn on OpenTelemetry tracing, view traces in the dashboard and export them. - [Template format](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/template-format.md): The JSON format of an agent template, name substitution on import, and remote template sources. - [Agent Builder Wizard: setup and internals](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/agent-wizard.md): Embed options, partners, tiers, site analysis, trial lifecycle and settings of the wizard. - [Alerts: evaluation and payloads](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/alerts.md): How alert rules are evaluated, what each condition reads, and the payload a webhook receives. - [Evals: methods, runs and API](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/evals.md): How eval methods score, how the agent is run for a test, and the eval API. - [Browser automation setup](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/browser-automation.md): Set up the server-side browser tool and its live view. - [Code executor setup](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/code-executor.md): What the code executor tool runs, where, and how to contain it. - [Image generation](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/image-generation.md): How the image tool picks a model, which keys it needs, and where generated images are stored. - [Artifact storage](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/artifact-storage.md): Where files that agents produce are stored, how ARTIFACT_SERVICE picks the backend, and how each backend lays out keys and versions. - [Documentation system](https://raw.githubusercontent.com/antiv/mate/main/docs/dev/documentation.md): How the docs are generated, checked for drift, served in the dashboard and searched. ## Reference - [Configuration reference](https://raw.githubusercontent.com/antiv/mate/main/docs/reference/configuration.md): Every environment variable MATE reads, with defaults and where it is used. - [HTTP API reference](https://raw.githubusercontent.com/antiv/mate/main/docs/reference/api.md): Every HTTP route, grouped by server and area, with a summary and where it lives. - [Tool reference](https://raw.githubusercontent.com/antiv/mate/main/docs/reference/tools.md): Every tool type an agent can enable through tool_config, and where it is implemented. - [Database reference](https://raw.githubusercontent.com/antiv/mate/main/docs/reference/database.md): Every table and column from the ORM models, plus the migration history per dialect. ## Optional - [README](https://raw.githubusercontent.com/antiv/mate/main/README.md): features, screenshots and quick start - [Changelog](https://raw.githubusercontent.com/antiv/mate/main/CHANGELOG.md): what changed in each release - [.env.example](https://raw.githubusercontent.com/antiv/mate/main/.env.example): every environment variable, commented
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

