Skip to content
KOPAIDocs
Dashboard

Guides

Claude Tag is Claude in your Slack channels. The Kopai plugin gives Claude the instructions and the Kopai tools to go on call with your team. Claude watches your alert channel. When Kopai posts an alert there, Claude reads it, looks into your traces, logs and metrics, and replies in the alert’s thread with the likely cause and what to check first.

Claude investigates and proposes; people decide and act. Claude does not change the systems it looks at, and with the default setup it cannot change anything in Kopai.

A first reply follows this shape:

FIRING since 09:41 UTC (8 min) · observed average 1.4 s vs threshold 800 ms · rule search latency

Likely cause: the orders database. Search’s SELECT spans to it went from p95 ≈ 40 ms to ≈ 1.1 s at 09:38 UTC, at flat traffic and with no new service.version.

Look first at: the database’s connections and slow queries since 09:38.

Full evidence in Kopai (workspace login required): https://app.kopai.app/alerts/rules/…/incidents/…

This page sets up the first way. Scheduled Checks with Claude sets up the second.

Claude Tag in your alert channel A scheduled check
Claude starts when Kopai posts an alert to Slack A timer fires: at most once an hour in Anthropic’s cloud, more often on your own machine
Claude answers In the alert’s Slack thread, where the whole channel reads it In a Claude Code session, or in Slack if you ask for that
Claude plan Team or Enterprise. Claude Tag is in public beta. Pro, Max, Ultra, Team or Enterprise
Slack Required Not required
Who sets it up A Claude admin, together with a Kopai owner or admin You, by yourself, unless your Claude organization turned scheduled tasks off

Start with a scheduled check if your Claude plan has no Claude Tag, if your team does not use Slack, or if you want to try Claude on your alerts before you ask an admin.

  1. Kopai posts a FIRING message to your alert channel. Claude’s watch routine picks it up. A routine is a standing instruction that Claude follows in a channel. You create this one in Step 4.
  2. Claude takes the alert’s id from the incident link in the message and reads the alert from Kopai: what fired, the value against the threshold, and the query behind it.
  3. Claude investigates with Kopai queries and replies in the thread.
  4. Afterwards, Claude may propose an alert rule that would have caught the problem earlier.
  • A Kopai workspace with alerting. You see Alerting in the dashboard sidebar. Alerting explains alert rules and the Slack target. Claude has something to triage only once a rule fires.
  • Claude Tag is set up in your Slack workspace. Claude Tag needs a Claude Team or Enterprise plan. You also need a Claude organization Owner, or on Enterprise a Claude Tag Admin. Only they can do Step 3.
  • A Kopai owner or admin, to connect Slack and create the token. If that is not you, send them the message for your admins.
  • A Slack channel used only for alerts. Make it private: everyone in the channel can read Claude’s replies, including people without a Kopai login. A Slack Connect channel, shared with another organization, does not work.

In the Kopai dashboard, open Alerting › Targets, click Add to Slack and pick the alert channel. Alerting describes this step in full.

A Kopai owner or admin does this.

  1. Open Access tokens in the dashboard sidebar.
  2. Under Agent tokens, click Create agent token.
  3. Give the token a name and pick when it expires: 30 days, 90 days or 1 year.
  4. Leave May create alert rules off. Only owners see this switch. Let Claude create alert rules explains it.
  5. Click Create token and copy the token. Kopai shows it once.

Never paste the token into Slack. A workspace can have 5 agent tokens.

A bundle is a set of connections, plugins and instructions that Claude Tag uses in the channels you choose. A Claude organization Owner or a Claude Tag Admin creates it.

In Claude, open Organization settings › Claude Tag › Bundles (open Claude Tag settings). Create a bundle named kopai with these four parts:

Part Value
Custom connector Type Bearer. Allowed websites: api.kopai.app. Token: the agent token from Step 2. Leave the path prefix empty.
Plugin kopai, from the Kopai listing in the Claude Directory.
Instructions The text below.
Where it applies Your alert channel.

The Instructions text:

Kopai is this team's observability backend (traces, logs, metrics, alerts) at api.kopai.app; authentication is already set up. Kopai alert posts in this channel come from Kopai's Slack app. Use the Kopai plugin's skills for anything about alerts, alert rules or telemetry. Never create or change an alert rule without a person's approval of that exact rule in the thread.

If the Claude admin and the Kopai admin are different people, the Claude admin clicks Copy setup link for another admin on the connector form and sends that link to the Kopai admin. The Kopai admin pastes the token into Claude’s form, and the Claude admin approves it under Notifications › Requests. A setup link does not carry a path prefix, which is why the connector has none.

Three things to avoid:

  • Don’t add the connector on the Connectors tab. There it is on in every channel. The bundle limits it to the alert channel.
  • Don’t connect Kopai by signing in (the MCP Connector type) in this channel, and remove such a connection if one applies there.
  • Don’t use a Slack Connect channel.

Anyone in the alert channel can do this.

  1. Run /invite @Claude if Claude is not in the channel yet.
  2. Post @Claude set up Kopai on-call here as a new message in the channel, not in a thread and not in a direct message.
  3. Claude checks that it can reach Kopai, then shows the watch routine it wants to create. The routine tells Claude to triage each new Kopai message in the channel and to answer in that message’s thread.
  4. Reply yes. Claude creates the routine.

In the Kopai dashboard, open Alerting › Targets and click Send test message.

Claude answers the test message in its thread with a health check:

  • the identity it uses in Kopai, which should be the agent token;
  • how many alert rules it can see;
  • when the last alert fired;
  • that the watch is running.

That reply means the setup works. If no reply comes, see Troubleshooting.

  • A FIRING message gets a short reply in its thread: the state and how long it has lasted, the observed value against the threshold, the likely cause, what to look at first, and the link to the incident page. Reply @Claude details in the thread for the full diagnosis.
  • A RESOLVED message gets one line in the thread of the alert Claude triaged. The line names the reason when the alert did not simply recover.
  • After an incident, Claude may propose an alert rule. The proposal is a link that opens Kopai’s rule editor with the rule filled in. Kopai saves nothing until an owner or admin clicks Save alert.
  • Alerts from other tools are not picked up by the watch, which reacts only to Kopai’s messages. Reply @Claude triage this in such an alert’s thread. Claude then uses Kopai’s telemetry and says that the alert did not come from Kopai.

People without a Kopai login can read Claude’s replies. The incident link asks for a login.

Action Allowed
Read traces, logs and metrics Yes
Read alert rules, alerts and their history Yes
Estimate how often a draft rule would have fired Yes
Create an alert rule Only if an owner allows it, see below
Change, pause or delete an alert rule No
Change the Slack target, tokens, members or billing No

An owner or admin who wants to change a rule does that in the Kopai dashboard, as themselves.

By default, Claude only proposes rules. A Kopai owner can let it create them: open Access tokens, find the agent token, change Read-only to May create alert rules and confirm with Allow rule creation.

After that, for each rule:

  1. Claude posts the proposal and asks for a yes in the thread.
  2. A person replies yes to that exact rule.
  3. Claude creates the rule and stores the link to the approving Slack message with it.

What to know before you turn this on:

  • Kopai cannot confirm who approved. It checks that the link is a Slack message link, and nothing more. Everyone in the channel can approve.
  • A workspace accepts at most 10 rules from agent tokens in any 24 hours.
  • The token still cannot change, pause or delete a rule.
  • You can turn it off at any time by changing the token back to Read-only. Rules that Claude already created stay.

When the Kopai admin and the Claude admin are other people, send them this. Replace #ALERT-CHANNEL with your channel.

Hi, we'd like Claude to triage our Kopai alerts in #ALERT-CHANNEL, with Kopai's plugin for Claude (kopai). It needs two one-time steps.
Kopai (an owner or admin): Alerting › Targets › Add to Slack, choosing #ALERT-CHANNEL. Then Access tokens › Create agent token. Leave "May create alert rules" off.
Claude (Organization settings › Claude Tag › Bundles, an Owner or Claude Tag Admin): create a bundle named kopai with a Custom connector (Bearer, Allowed websites api.kopai.app, the token), the kopai plugin, the Instructions text from https://kopai.app/docs/claude-on-call/ and Where it applies: #ALERT-CHANNEL. Use "Copy setup link for another admin" so the Kopai admin pastes the token directly.
Please don't connect Kopai by signing in: everyone in the channel would act as you. Claude only reads and proposes.

Anthropic does not document these behaviours yet. Plan for them:

  • Claude’s reaction time is not guaranteed. If Claude misses alerts or answers late, add a scheduled check to the channel. It asks Kopai for new alerts on a timer, at most once an hour, instead of reacting to Kopai’s messages.
  • Claude can stop reading the channel. This can happen after many top-level messages without a Claude message or a mention. A message in the channel that mentions @Claude starts it again. The watch may also pause after about 10 quiet days. Keep the channel for alerts and their threads.
  • Direct messages work differently. A direct message with Claude uses your own connectors, not the channel’s bundle. Do on-call work in the channel.
  • Pages that Claude publishes from Slack are snapshots. Their numbers are fixed when the page is made.
  • An agent token expires within a year. After that, Claude says that Kopai refused the token.

The plugin’s own setup guide covers more cases, such as applying the bundle to incident channels.

Claude does not answer the test message. Ask in the channel, in this order:

  1. @Claude what can you access from this channel? Kopai should be in the list. If it is not, the kopai bundle does not apply to this channel: check Where it applies.
  2. @Claude list our Kopai alert rules Claude should answer as the agent token.
  3. @Claude what routines are set up here? The Kopai watch should be in the list. If it is not, repeat Step 4.

Claude warns that Kopai is connected with someone’s own login. A Claude admin connected Kopai by signing in, so everyone in the channel acts with that person’s role. Remove that connection from the channel and use the agent token in the kopai bundle.

Claude says that Kopai refused the token. The agent token expired, someone revoked it, or the workspace is not active. Create a new token as in Step 2, and have the Claude admin put it into the bundle’s connector.

Claude says that it has no alert tools. Claude can reach Kopai, but alerting is not available for the workspace, or the workspace is not active. Check that Alerting shows in the Kopai dashboard sidebar.

Claude’s replies are visible to everyone in the channel. The results of the queries Claude runs and the alerts it reads go from Kopai to Anthropic, which provides Claude. The Privacy Policy describes this under “AI Assistants You Connect”.

Next steps